Shader.bindMaterial

Binds diffuse, normal, and specular textures to the shader

class Shader
final
void
bindMaterial
(
Material material
)
in { assert (material, "Cannot bind null material."); assert (material.diffuse && material.normal && material.specular, "Material must have diffuse, normal, and specular components."); }

Meta