Shader¶
Inherits: Resource < Reference < Object
Inherited By: VisualShader
Category: Core
Brief Description¶
A custom shader program.
Methods¶
Texture | get_default_texture_param ( String param ) const |
Mode | get_mode ( ) const |
bool | has_param ( String name ) const |
void | set_default_texture_param ( String param, Texture texture ) |
Description¶
This class allows you to define a custom shader program that can be used for various materials to render objects.
Method Descriptions¶
- Mode get_mode ( ) const
Returns the shader mode for the shader, either MODE_CANVAS_ITEM, MODE_SPATIAL or MODE_PARTICLES