Class GIRSMRenderPluginMaterial
Hierarchy (View Summary)
- WebXRSpatialLayerType
- GIRSMRenderPluginMaterial
Constructors
constructor
-
Parameters
- material: any
Returns GIRSMRenderPluginMaterial
Properties
output Texture Height
outputTextureHeight: number
The height of the output texture.
output Texture Width
outputTextureWidth: number
The width of the output texture.
texture GI Contrib
textureGIContrib: InternalTexture
The texture containing the global illumination contribution.
Static ReadonlyName
Name: "GIRSMRender"
Defines the name of the plugin.
Methods
bind For Sub Mesh
-
Binds the material data for a sub mesh
Parameters
- uniformBuffer: UniformBuffer
the uniform buffer to update
Returns void
- uniformBuffer: UniformBuffer
get Class Name
-
Returns string
get Custom Code
-
getCustomCode(
shaderType: string,
shaderLanguage: ShaderLanguage,
): { [name: string]: string } | nullGets custom shader code for the plugin
Parameters
- shaderType: string
the type of shader (vertex or fragment)
- shaderLanguage: ShaderLanguage
the shader language
Returns { [name: string]: string } | null
the custom shader code
- shaderType: string
get Samplers
-
Gets the samplers used by the plugin
Parameters
- samplers: string[]
the list of samplers to update
Returns void
- samplers: string[]
get Uniforms
-
Returns { fragment: string; ubo: { name: string; size: number; type: string }[] }
is Compatible
-
Gets a boolean indicating that the plugin is compatible with a give shader language.
Returns boolean
true if the plugin is compatible with the shader language
prepare Defines
-
Prepares the defines used by the plugin
Parameters
- defines: MaterialGIRSMRenderDefines
the defines to prepare
Returns void
- defines: MaterialGIRSMRenderDefines
Plugin used to render the global illumination contribution.