defold (official)
defold/asset-pbr
A base metallic-roughness PBR material with vertex and fragment shaders under
/defold-pbr. The shaders read glTF material data populated by the model
component and light data from Defold's built-in light components.
No Lua API — content, shaders, build-time tooling or engine-side native code only.
- GitHub: defold/asset-pbr — pinned to
0.1.0(released while Defold 1.12.4 was current)- Pick a release from defold/asset-pbr releases and add its Source code (zip) URL (or a packaged
.zipasset, if the library ships one) togame.projectunder[project]dependencies, then Fetch Libraries in the Defold editor. - Assign
/defold-pbr/pbr.materialto any model that should use the shader. - Include
pbr_lighting.glslfrom an extension shader to add its own lighting terms.
- Pick a release from defold/asset-pbr releases and add its Source code (zip) URL (or a packaged
Engine APIs
Models draw through a render script that sets the camera view and projection
with render and camera. The material applies
to model components.