Questions tagged [shader-graph]
115 questions
4
votes
1 answer
Unity, how to set the shader tag "DisableBatching" = "True" in the Shader Graph?
I am creating my first shader using the the Shader Graph, and I am seeing weird behaviour with my vertex positions when I have several objects in the scene using the Shader/Material I have created.
It looks like Unity is batching the objects, not…

fguillen
- 36,125
- 23
- 149
- 210
4
votes
1 answer
Unity PBR Shader not showing up on Sphere
I am using HDRP.
I have this PBR Shader Graph:
But the result I get is this:
The Shader is not showing up on the sphere at all.

Jakovich132
- 63
- 3
3
votes
1 answer
How can I fix these gaps in my outline shader?
My game uses very low-poly models for most of its geometry, and my current outline shader, which inverts normals and "scales up" the material, doesn't really cut it for this. Admittedly I have very little experience with shader graph but I'm trying…

obieFM
- 63
- 10
3
votes
0 answers
Emission broken in Lit Shader Graph (Unity 2021.2.7f1)
I'm trying to create a simple emissive Lit Shader Graph and I'm coming across several issues.
Emission doesn't appear to work. Not "working bad" or not "unnatural", Bloom has nothing to do with the issue - it's NOT working. Color stays on the Base…

Demyan Rudenko
- 41
- 3
3
votes
2 answers
How to make a list of gameObjects disappear animated? (or how to fix weird behaviour when setting alpha value)
I am trying to make a list of gameObjects disappear when the player enters a room, the best way I could think about doing it, was changing the material alpha frame by frame. If there is an alternative to this method that is more performatic, please…

Matt DF
- 61
- 5
3
votes
1 answer
Worldspace 2d texture displacemet in Unity Shader Graph
I am working on a 2d top-down game. I have an object that moves on a single large texture and casts shadow on it (just a blurry dark sprite). However I found out that since my texture has bumps, rocks, creases etc. it looks like the shadow sprite…

Mozmarto
- 73
- 1
- 7
2
votes
1 answer
Basic twirl shader 2D pulls other sprites in spritesheet
I've been trying to achieve a basic twirl shader effect and I'm pretty close to achieve it. I'm new to shaders and dont understand what's going on here.
I have a spritesheet with several characters, example below:
And I created this twirl…

Jorge Santos
- 546
- 1
- 7
- 17
2
votes
1 answer
Understanding Buffer and SetBuffer method in Unity
I don't understand why the _Positions property of ComputeShader was given as a parameter of material.SetBuffer.
I thought SetSomething(property, value) method give value to property.
But in this case, _Positions property is a ComputeShader's…

y202100
- 27
- 6
2
votes
0 answers
shader graph always displaying a pink texture
I am definitely quite new to shader graphs, or just shaders in general. I had decided to follow a tutorial by code monkey to try and figure out shader graphs but havent been able to make it past step one due to this. It should just be transparent.…

Chuck
- 195
- 1
- 7
2
votes
0 answers
How to use material.SetColorArray with Shader Graph?
A Material material has 2 methods: material.SetColorArray and material.GetColorArray.
How do I use these things if my material wraps a shader made in Shader Graph?

Daniel
- 7,357
- 7
- 32
- 84
2
votes
0 answers
Unity shader graph slow
Unity 2020.3.12f1
HDRP
Whenever I add a single node in Shader Graph, the progress bar "compiling shader" takes around 20 seconds to complete. Multiply that by dozens of nodes and we're talking a very long time.
Is there any way to speed this up?…

gatzkerob
- 877
- 2
- 12
- 32
2
votes
0 answers
How to get wave height in specific point
I can't come up with how can I get wave height from my ocean shader created in the shader graph. I am thinking about using the time value set from the script instead of shader time to control it, but what should I do later? Try to get position on…

Wolfik
- 286
- 2
- 7
- 22
2
votes
1 answer
PBR shader is too transparent
I have this shader:
And this is the result:
How can I make the grass less transparent, I swaped over from HDRP to URP and there is only PBR shader i know how to use.

Jakovich132
- 63
- 3
2
votes
2 answers
Get/Set Time value from Unity shader Graph
I have creating a pulsating shiny effect with the following as nodes:
Abs(Time * speed) => sine
I have an oscillating value between 0 and 1 but the problem is that the value may start from anything between 0 and 1 depending on the Time value.
I am…

fafase
- 467
- 3
- 10
2
votes
0 answers
Unity vs_4_0 instruction error when trying to set vertex normal in PBR shader graph
I'm trying to create a ocean PBR shader using Universal Render Pipeline's PBR Shader Graph, but when I try to assign the normal in master, it throws the errors:
Assertion failed on expression: '0 ==…

ghsoares
- 53
- 2
- 7