-
Notifications
You must be signed in to change notification settings - Fork 0
tutorial_shader_materials
For the most common cases, Fixed Materials are enough to create the desired textures or look and feel. Shader materials are a step beyond that adds a huge amount of flexibility. With them, it is possible to:
- Create procedural texures.
- Create complex texture blendings.
- Create animated materials, or materials that change with time.
- Create refractive effects or other advanced effects.
- Create special lighting shaders for more exotic materials.
- Animate vertices, like tree leaves or grass.
- And much more!
Traditionally, most engines will ask you to learn GLSL, HLSL or CG, which are pretty complex for the skillset of most artists. Godot uses a simplified version of a shader language that will detect errors as you type, so you can see your edited shaders in real-time. Additionally, it is possible to edit shaders using a visual graph editor (NOTE: Currently disabled! work in progress!).
Create a new ShaderMaterial in some object of your choice. Go to the "Shader" property, then create a new "Shader":

Edit the newly created shader, and the shader editor will open:
