dash ~master (2014-11-19T20:54:00Z)
Home
Dub
Repo
Shader.bindMaterial
dash
graphics
shaders
shaders
Shader
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
Source
See Implementation
dash
graphics
shaders
shaders
Shader
constructors
this
functions
bindAmbientLight
bindDirectionalLight
bindMaterial
bindPointLight
bindUI
bindUniform1f
bindUniform1ui
bindUniform2f
bindUniform3f
bindUniformMatrix4fv
bindUniformMatrix4fvArray
compile
setEyePosition
shutdown
Binds diffuse, normal, and specular textures to the shader