ShaderMaterial

Inherits: Material < Resource < Reference < Object

Category: Core

Brief Description

A material that uses a custom Shader program.

Properties

Shadershader

Methods

Variantget_shader_param ( String param ) const
boolproperty_can_revert ( String name )
Variantproperty_get_revert ( String name )
voidset_shader_param ( String param, Variant value )

Description

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.

Tutorials

Property Descriptions

Setterset_shader(value)
Getterget_shader()

The Shader program used to render this material.

Method Descriptions

Returns the current value set for this material of a uniform in the shader.




Changes the value set for this material of a uniform in the shader.