Shader
Inherits: Resource < RefCounted < ObjectDescription
A shader implemented in the Godot shading language. A custom shader program saved with the .gdshader extension.Properties
Returns the shader’s code as the user has written it.
Methods
get_mode
get_shader_uniform_list
set_default_texture_parameter
Constants
- MODE_SPATIAL =
0- Mode used to draw all 3D objects - MODE_CANVAS_ITEM =
1- Mode used to draw all 2D objects - MODE_PARTICLES =
2- Mode used to calculate particle information - MODE_SKY =
3- Mode used for drawing skies - MODE_FOG =
4- Mode used for volumetric fog effect
Example Usage
- GDScript
- C#