Skip to Content
defold-typescript libraries
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)
    1. Pick a release from defold/asset-pbr releases and add its Source code (zip) URL (or a packaged .zip asset, if the library ships one) to game.project under [project] dependencies, then Fetch Libraries in the Defold editor.
    2. Assign /defold-pbr/pbr.material to any model that should use the shader.
    3. Include pbr_lighting.glsl from an extension shader to add its own lighting terms.

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.

On this page