Update shader material page for Godot 3.1
BIN
tutorials/shading/img/shader_create.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 8.1 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 5.6 KiB |
BIN
tutorials/shading/img/visual_shader_editor.png
Normal file
|
After Width: | Height: | Size: 8.7 KiB |
@@ -36,10 +36,25 @@ Create a new ShaderMaterial in some object of your choice. Go to the
|
||||
|
||||
.. image:: img/shader_material_create.png
|
||||
|
||||
Edit the newly created shader, and the shader editor will open:
|
||||
Next, click on the shader material to see its properties. From here you
|
||||
can create a shader or visual shader. Regular shaders use code to set
|
||||
their properties while a visual shader uses a node based workflow.
|
||||
|
||||
There is no way to convert between the two, so if you decide you want to
|
||||
change to a visual shader or vice versa, you will have to start from scratch.
|
||||
|
||||
Choose one of them and you can start editing your shader.
|
||||
|
||||
.. image:: img/shader_create.png
|
||||
|
||||
If you create a regular shader click on it and the shader editor will open.
|
||||
|
||||
.. image:: img/shader_material_editor.png
|
||||
|
||||
If you create a visual shader the visual shader editor will open automatically.
|
||||
|
||||
.. image:: img/visual_shader_editor.png
|
||||
|
||||
Converting to ShaderMaterial
|
||||
----------------------------
|
||||
|
||||
@@ -48,3 +63,8 @@ ParticlesMaterial to ShaderMaterial. To do so, go to the material properties
|
||||
and select the convert option.
|
||||
|
||||
.. image:: img/shader_material_convert.png
|
||||
|
||||
.. note::
|
||||
|
||||
Using the convert option will turn the SpatialMaterial into a ShaderMaterial
|
||||
with a text shader, not a visual shader.
|
||||