Questions tagged [unity-shader-graph]
Unity Shader Graph is a Unity tool that allows users to create shaders using a drag-and-drop graphical interface without writing any code.
112 questions
1
vote
0
answers
45
views
What is the best way to move a mask in a shader in a square path in Unity Shader Graph?
I would like to make the square move strictly along a square trajectory. The square will later be used to mask the main sprite.
How to achieve this result? How to move the square along the square's ...
0
votes
2
answers
194
views
Color local shader graph UVs for texture atlas
I'm going to use a texture atlas for my upcoming project, and am trying to find a way to create a color overlay for only a specific section of my texture.
Below what I'm trying to accomplish, only for ...
1
vote
0
answers
78
views
How to create a laser in discontinuous lines?
Via Shader Graph, how to create a shader that, applied to a continuous line renderer, transforms it into this:
0
votes
0
answers
111
views
How to project textures on to the mesh and overlap them like in Let’s Play Pottery?
I want to learn how to project textures on to the mesh and overlap them like in Let’s Play Pottery. I have an idea for game. I created Models, 3d viewer but I can’t figure out how to implement texture ...
1
vote
1
answer
693
views
How to add "Visual Effect" as an active target in a Unity 6 shader graph?
I've just started learning and getting into shader graphs in Unity and I was just watching some tutorials on Youtube and realized that in the video, when he created the shader graph, he could add &...
0
votes
1
answer
371
views
Set Shader Graph out position in clip space
Is it possible to set the output vertex position in a space other than object space?
1
vote
0
answers
91
views
My shadergraph animation gets extremely faster during in the actual game compared to the editor
Currently I'm using a shadergraph for an animated material, for some reason as long as I don't have any input it works as intended and with the correct speed, while if I do any action/input the ...
0
votes
0
answers
197
views
How to add a toon / cel shader to a URP 3D project?
I'm new to Unity and I've been frustrated for the last 5 days. I'm trying to apply a toon / cel shader to my object which I've imported from Blender. It already has a default material called ...
0
votes
2
answers
589
views
How would I make my water shader ripple?
I can easily make a basic water shader, and create a script that detects when something touches the water, but does anyone know how I would actually trigger a ripple in shader graph? I'm not asking ...
0
votes
1
answer
256
views
How does vector raised to the power of another vector work?
I was watching this tutorial and at timestamp 3:03 he did this:
This blows my mind because I didn't expect that to actually work, how the heck does that work ???? For example, if I have vector (2, 3, ...
0
votes
0
answers
49
views
Problem with light in Unity2D
I'm new to working with lights in Unity, I watched a lot of tutorials and decided to use URP. It seems like I have everything set up, but when I set the lighting, the light doesn’t fall on the ...
0
votes
1
answer
662
views
Gradient from white to transparent instead shows as white to black
I need how to make a gradient that smoothly transitions from white to transparent for a 2D sprite via a URP shader graph.
It seems like I’m already set up and everything should work, but for some ...
0
votes
1
answer
759
views
Make night sky with moon
I want to make skybox with moon (texture 2d) with shader graph and be able to modify moon radius.
Moon Texture 2d :
0
votes
1
answer
679
views
Cubemap rotation
I have a skybox with stars cubemap
So, how can I rotate stars cubemap on Z axis using "Rotate About Axis"?
3
votes
1
answer
3k
views
How can I map a texture around a sphere without a seam?
I am attempting to wrap a texture around a sphere without any warping using Unity's Shader Graph. I have been following this StackExchange answer, and have semi-successfully converted their shader ...
0
votes
1
answer
3k
views
How to rotate a mesh in shader graph?
I want to rotate a mesh in a way that the Z axis arrow always points towards the camera. For a script I would do something like this:
...
0
votes
1
answer
649
views
How can I remove dither effect on player's shadow?
I am trying to make a dithering effect on the player so that when the camera comes below or very close to the player he will be dotted or transparent like in Genshin Impact. So, I followed a tutorial ...
0
votes
0
answers
2k
views
Unity Shader Graph Alpha Clip Threshold not acting as expected
EDIT: I have tried opening the shader in an empty project to test if there were some strange settings in the project, but it is the same issue.
I am creating a power bar which wipes from left to right....
0
votes
0
answers
180
views
Blend different size textures in Shader Graph
Say I've got a character model where part of the face has two UV maps: one's mapped to the generic body texture, the other covers a small area on the face to allow for a highly detailed tattoo.
I want ...
3
votes
1
answer
6k
views
How to deal with insane amount of shader variants waiting to be compiled in Unity >= 2021.2 / URP >= 12?
Since Unity 2021.2.0b7 (that is, URP 12.0.0), there has been a well known problem with absurd number of shader variants wanting to be compiled for even a somewhat simple shader (i.e. shaders generated ...
0
votes
0
answers
241
views
Single pixel disappears in outlining shader
I've recently (11 hours ago, to be precise😅) started to work with shaders and it's going pretty well. I've created a simple shader to create an outline and I tested it on a simple object to see how ...
1
vote
0
answers
640
views
(URP Shader Graph) Why can´t I connect a float into another float 'slot'? Are there different types of floats?
So, here I´m just trying to take in a Vector3 (resulting from multiplying some noise and a sample texture) and putting it as the vertex position, but for some ...
1
vote
1
answer
3k
views
Unity Shaders: Why is it recommended to use Time to animate things inside of a shader instead of DeltaTime?
In the "Built-in shader variables" section of the Unity Manual, underneath the Time header, there is a table that provides information about each time variable: _Time; _SinTime; _CosTime; ...
0
votes
0
answers
305
views
In Unity Shader graph Get object top left corner position and it's color through it
I have a Shader graph in which I am using "Scene Color" node to do processing on camera feed, It is Unity AR foundation project
Until now I was passing color to be used using a property,
Now ...
0
votes
0
answers
270
views
Shader from urp shader graph turns gray on webgl1 build
When I build my game while graphics API is set to webgl1 the shader is just a gray texture.
It works fine if graphics API is set to webgl2 but I need it to work on webgl1.
Can shader graph shader ...