-
To create a shader go to: Panel Graph Editor -> Asset -> Create Shader
-
Right click in canvas and select a node type (check out the section below to see the available nodes)
-
Modify the shader as you wish
-
Node Graph Editor:
- Drag node
- Hover node
- Select node (doble-click)
- Drag spline from a socket
- Connect splines from output socket's node to input socket's node and vice-versa
- Right click in the node to delete it
- Right click in the spline to delete it
- Right click + ALT in the socket to disconnect a link from 2 nodes
-
Modify values in Inspector panel selecting a node
-
Press on Compile Button to recompile shader and see new changes
-
Unity Exporter
- Press on Export -> Export to Unity Button to generate a unity .shader file format where you can find it in Shaders/ShaderLab folder path
- Drag & drog .shader file in Unity
- Create a material to set up the shader on it and enjoy :D
Available nodes:
Constant
- Float node
- Vector2 node
- Vector3 node
- Vector4 node
- Color node
- Time node
Math
- Add node
- Subtract node
- Multiply node
- Divide node
Texture
- Texture node
- Texture Sampler node
Geometry
- UV node
- Tiling & Offset node
- Panner
- Parallax Oclusion
Master
- Unlit