Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
ShaderMaterial¶
Inherits: Material < Resource < Reference < Object
Un material que utiliza un programa personalizado Shader.
Descripción¶
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 ShaderMaterial
s cannot emit light when used in a GIProbe. Only emissive SpatialMaterials can emit light in a GIProbe.
Tutoriales¶
Propiedades¶
Métodos¶
get_shader_param ( String param ) const |
|
property_can_revert ( String name ) |
|
property_get_revert ( String name ) |
|
void |
set_shader_param ( String param, Variant value ) |
Descripciones de Propiedades¶
Shader shader
Setter |
set_shader(value) |
Getter |
get_shader() |
El programa Shader utilizado para renderizar este material.
Descripciones de Métodos¶
Devuelve el valor actual establecido para este material de un uniforme en el shader.
Devuelve true
si la propiedad identificada por name
puede ser revertida a un valor por defecto.
Devuelve el valor por defecto de la propiedad material con el name
dado.
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.