Skip to content

Commit e4a36fe

Browse files
authored
Merge pull request #10531 from skyace65/VisualShaderUpdate
Update using visual shaders page for 4.4
2 parents d83d55a + 09c21f1 commit e4a36fe

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed
316 Bytes
Binary file not shown.
71.2 KB
Binary file not shown.

tutorials/shaders/visual_shaders.rst

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ in the dropdown, then give it a name.
3535
.. image:: img/visual_shader_create2.webp
3636

3737
Click on the visual shader you just created to open the Shader Editor.
38-
The layout of the Shader Editor comprises two parts:
39-
the upper toolbar and the graph itself.
38+
The layout of the Shader Editor comprises four parts, a file list on
39+
the right, the upper toolbar, the graph itself, and a material preview
40+
on the right that can be toggled off
4041

4142
.. image:: img/visual_shader_editor2.webp
4243

@@ -54,7 +55,8 @@ From left to right in the toolbar:
5455
nodes you have selected as efficiently and cleanly as possible.
5556
- The Manage Varyings button opens a dropdown that lets you add or remove a
5657
varying.
57-
- The last icon shows the generated shader code corresponding to your graph.
58+
- The show generated code button shows shader code corresponding to your graph.
59+
- The last icon toggles the material preview on or off.
5860

5961
.. note::
6062

@@ -228,3 +230,18 @@ The ``Switch`` node returns a vector if the boolean condition is ``true`` or
228230
to a true boolean, all components of the vector should be non-zero.
229231

230232
.. image:: img/vs_switch.webp
233+
234+
Mesh Emitter
235+
~~~~~~~~~~~~
236+
237+
The ``Mesh Emitter`` node is used for emitting particles from mesh vertices. This is
238+
only available for shaders that are in ``Particles`` mode.
239+
240+
Keep in mind that not all 3D objects are mesh files. a glTF file can't be dragged
241+
and dropped into the graph. However, you can create an inherited scene from it,
242+
save the mesh in that scene as it's own file, and use that.
243+
244+
.. image:: img/vs_meshemitter.webp
245+
246+
You can also drag and drop obj files into the graph editor to add the node
247+
for that specific mesh, other mesh files will not work for this.

0 commit comments

Comments
 (0)