M - The type of shader parameterspublic interface R2ShaderLightSingleUsableType<M extends R2LightSingleReadableType> extends R2ShaderUsableType<M>
| Modifier and Type | Method and Description |
|---|---|
void |
onReceiveBoundGeometryBufferTextures(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g,
R2GeometryBufferUsableType gbuffer,
com.io7m.jcanephora.core.JCGLTextureUnitType unit_albedo,
com.io7m.jcanephora.core.JCGLTextureUnitType unit_specular,
com.io7m.jcanephora.core.JCGLTextureUnitType unit_depth,
com.io7m.jcanephora.core.JCGLTextureUnitType unit_normals)
Set the bound geometry buffer textures for the current shader.
|
void |
onReceiveValues(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g,
R2ShaderParametersLightType<M> light_parameters)
Set light values.
|
onActivate, onDeactivate, onValidate, shaderID, shaderParametersType, shaderProgramvoid onReceiveBoundGeometryBufferTextures(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g,
R2GeometryBufferUsableType gbuffer,
com.io7m.jcanephora.core.JCGLTextureUnitType unit_albedo,
com.io7m.jcanephora.core.JCGLTextureUnitType unit_specular,
com.io7m.jcanephora.core.JCGLTextureUnitType unit_depth,
com.io7m.jcanephora.core.JCGLTextureUnitType unit_normals)
Set the bound geometry buffer textures for the current shader.
This method will be called exactly once between calls to R2ShaderUsableType.onActivate(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type)
and R2ShaderUsableType.onValidate().
g - An OpenGL interfacegbuffer - The geometry bufferunit_albedo - The texture unit to which the geometry buffer's
albedo/emissive texture is boundunit_specular - The texture unit to which the geometry buffer's
specular texture is boundunit_depth - The texture unit to which the geometry buffer's
depth/stencil texture is boundunit_normals - The texture unit to which the geometry buffer's
normalvoid onReceiveValues(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g,
R2ShaderParametersLightType<M> light_parameters)
Set light values.
This method will be called once for each light that uses the current shader.
This method will be called after a call to R2ShaderUsableType.onActivate(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type)
and before a call to R2ShaderUsableType.onValidate().
g - An OpenGL interfacelight_parameters - The light parametersCopyright © 2016 <code@io7m.com> http://io7m.com