ShaderMaterial
A material that uses a custom Shader program.
A material that uses a custom Shader program to render either items to screen or process particles. You can create multiple materials for the same shader but configure different values for the uniforms defined in the shader.
Note: Due to a renderer limitation, emissive s cannot emit light when used in a . Only emissive SpatialMaterials can emit light in a .
Tutorials
Methods
The program used to render this material.
Method Descriptions
- get_shader_param ( String param ) const
Returns the current value set for this material of a uniform in the shader.
- property_can_revert ( String name )
Returns if the property identified by can be reverted to a default value.
- property_get_revert ( String name )
Returns the default value of the material property with given .
Changes the value set for this material of a uniform in the shader.
Note: must match the name of the uniform in the code exactly.