Class RSMCreatePluginMaterial
Hierarchy (View Summary)
- WebXRSpatialLayerType
- RSMCreatePluginMaterial
Constructors
constructor
-
Create a new RSMCreatePluginMaterial
Parameters
- material: any
Parent material of the plugin
Returns RSMCreatePluginMaterial
- material: any
Properties
light
light: any
Defines the light that should be used to generate the RSM textures.
Static ReadonlyName
Name: "RSMCreate"
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,
): Nullable<{ [pointName: string]: string }>Gets custom shader code for the plugin
Parameters
- shaderType: string
the type of shader (vertex or fragment)
- shaderLanguage: ShaderLanguage
the shader language
Returns Nullable<{ [pointName: string]: string }>
the custom shader code or null
- 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: MaterialRSMCreateDefines
the defines to prepare
Returns void
- defines: MaterialRSMCreateDefines
Plugin that implements the creation of the RSM textures