14
2018
QuickStart: Unity Visual Shader Editor
tl;dr, use beta10+, install Render-pipelines-lightweight with Package Manager, create/rendering/lightweight pipeline asset, assign it to graphics settings, create/shader/unlit graph, double click to edit in visual editor!
Install & Use Visual Shader Editor
– Download and install Unity Beta : https://unity3d.com/unity/beta-download
– Create New Empty Project
– Window / Package Manager, Go to All Packages tab, Select Render-pipelines-lightweigth and click Install (ShaderGraph is included in this package)
– Right click on project window, Create/Rendering/LightWeight Pipeline Asset
– Edit/Project Settings/Graphics, Assign your Scriptable Rendering Pipeline asset here (otherwise your shader graph shaders are all pink)
– Create New Shader Graph: Right click on project window, select Create/Shader/Unlit Graph
– Select the created shader, Double Click it to open in Shader Editor, or click “Open in shader editor” in inspector
– Now you can start building your shader!
– Click + in the blackboard (left side) to add properties to the material (then drag & drop those properties into node canvas to use them)
– Right click over node canvas to add shader nodes
– Click save asset to save changes to shader, then create material and assign your shader to it, and assign that material to some 3D object in scene
To use texture:
– Add Property > Texture
– Drag & Drop the property into node canvas
– Right click on node canvas, Create Node/Texture/Sample Texture 2D
– Connect texture property into texture sampler
– Connect texture sampler output into master color
Resources
– Forum feedback thread: https://forum.unity.com/threads/feedback-wanted-shader-graph.511960/
– Github & wiki : https://github.com/Unity-Technologies/ShaderGraph
– Examples: https://github.com/keijiro/ShaderGraphExamples , https://github.com/RubenCUR/ShaderGraph-Examples , https://github.com/UnityTechnologies/ShaderGraph_ExampleLibrary
– Tutorial : “Intro To Shader Graph” https://www.youtube.com/watch?v=fFTBgHOP2JA
Related Posts
1 Comment + Add Comment
Leave a comment
Recent posts
- [GreaseMonkey] Unity Forum Fixer
- UnityHub: Make Hub application background Translucent
- Customize SpriteShapeRenderer quality (but has issues)
- Editor tool: Copy selected gameobject’s names into clipboard as rows (for Excel)
- Editor tool: Replace string in selected gameobject’s names
- UnityHub: Enable built-in Login Dialog (no more browser login/logout issues!)
- Use TikTok-TTS in Unity (with WebRequest)
- Create Scene Thumbnail Image using OnSceneSaved & OnPreviewGUI
- webgl+javascript TTS
- Using Moonsharp (LUA) + Unity Webgl
- Using 3D gameobject prefabs with Unity Tilemap + NavMesh Surface
- Custom Unity Hub Project Template Preview Image/Video (using HTML+CSS in package description)
Recent Comments
- Vector3 maths for dummies! on
- UnityHub: Make Hub application background Translucent on
- UnityHub: Make Hub application background Translucent on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- [Asset Store] Point Cloud Viewer & Tools on
- [Asset Store] Point Cloud Viewer & Tools on
- ffmpeg stream raw video into Unity Texture2D on
How to set up Unity Shader Graph – Creating a Basic Shader