ShaderMaterial

Inherits: Material < Resource < Reference < Object

A material that uses a custom Shader program.

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

Properties

ShaderShader

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.


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.

Doc ID missing

Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 1970-01-01 at 00:00:00. It’s the English Stable version because it’s what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.