Inherits: Material < Resource < Reference < Object
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.
Shader | shader |
Variant | get_shader_param ( String param ) const |
bool | property_can_revert ( String name ) |
Variant | property_get_revert ( String name ) |
void | set_shader_param ( String param, Variant value ) |
Setter | set_shader(value) |
Getter | get_shader() |
The Shader program used to render this material.
Returns the current value set for this material of a uniform in the shader.
Returns true
if the property identified by name
can be reverted to a default value.
Returns the default value of the material property with given name
.
Changes the value set for this material of a uniform in the shader. Note: param
must match the name of the uniform in the code exactly.
© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.2/classes/class_shadermaterial.html