Skip to content

Commit cf83c8f

Browse files
committed
Added VFX graph support, and bumped version up to 1.0.0 since everything is implemented.
1 parent 55462aa commit cf83c8f

File tree

5 files changed

+27
-7
lines changed

5 files changed

+27
-7
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#if HAS_VFX_GRAPH
2+
using UnityEngine;
3+
using UnityEngine.Rendering;
4+
5+
namespace UnityEditor.Rendering.Universal
6+
{
7+
internal class VFXShaderGraphSimpleLitGUI : ShaderGraphSimpleLitGUI
8+
{
9+
protected override uint materialFilter => uint.MaxValue & ~(uint)Expandable.SurfaceInputs;
10+
}
11+
}
12+
#endif

Plugins/UniversalShaderGraphExtensions/Editor/UniversalTargetExtensions/ShaderGUI/VFXShaderGraphSimpleLitGUI.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Plugins/UniversalShaderGraphExtensions/Editor/UniversalTargetExtensions/Targets/UniversalSimpleLitSubTarget.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public override void Setup(ref TargetSetupContext context)
103103
var gui = typeof(ShaderGraphSimpleLitGUI);
104104
#if HAS_VFX_GRAPH
105105
if (TargetsVFX())
106-
gui = typeof(VFXShaderGraphLitGUI);
106+
gui = typeof(VFXShaderGraphSimpleLitGUI);
107107
#endif
108108
context.AddCustomEditorForRenderPipeline(gui.FullName, universalRPType);
109109
}

README.MD

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ This plugin simply adds a Simple Lit material (SubTarget) to the Universal targe
33
If Unity ever implements the Simple Lit master node themselves, it should be an in-place replacement for this. To the point where you'll likely even get code conflicts.
44

55
## Dependencies
6-
* Should work on Unity version 2021.2 or higher, with URP version 12 or higher
6+
* Works on Unity version 2021.2 or higher, with URP version 12 or higher
77

88
## How to install
99
* Go to Package Manager in Unity
@@ -15,7 +15,4 @@ If Unity ever implements the Simple Lit master node themselves, it should be an
1515
Once it's been installed, it should simply be a matter of just making a Shader Graph (there's an option in the Asset Creation menu for SIMPLE LIT SHADERGRAPH, near LIT SHADERGRAPH) and choosing the Material "Simple Lit". Basically the same way you'd make a Lit or Unlit shadergraph, instead just choose Simple Lit.
1616

1717
### Example
18-
![Shader Graph](https://i.imgur.com/r4LI0g5.png)
19-
20-
## Known issues
21-
* VFX modifications have not been made, but should just be a missing GUI that needs to be created
18+
![Shader Graph](https://i.imgur.com/r4LI0g5.png)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "com.zallist.universal-shadergraph-extensions",
33
"displayName": "Universal Shader Graph Extensions",
4-
"version": "0.0.5",
4+
"version": "1.0.0",
55
"documentationUrl": "https://github.com/zallist/UnityShaderGraphExtensions",
66
"licensesUrl": "https://github.com/Zallist/unity-universal-shadergraph-extensions/blob/main/LICENSE",
77
"description": "This plugin simply adds a Simple Lit material (SubTarget) to the Universal target for Shader Graph"

0 commit comments

Comments
 (0)