All Questions
Tagged with unity-shader-graph shaders
48 questions
1
vote
0
answers
39
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
3
answers
464
views
How to use a Shader Graph to layer a texture over a sprite without being affected by the sprite's alpha?
I have a hexagon sprite MainTex over which I want to render an outline texture SecondaryTex independent of the alpha value of the MainTex. Since I have a fairly large grid with many hexagons, two ...
0
votes
0
answers
96
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 ...
0
votes
1
answer
242
views
Water shader Breaks on Build
A custom shader I made is breaking on build.
Here's what it's supposed to look like:
Yet, on the build it looks like this. The surface is completely flat, all details are gone, and sometimes the ...
0
votes
0
answers
55
views
Why do my shaders render differently in the simulator?
I am using simple shaders on the cards in my game. The shader is assigned as a material to a white image the covers the whole card.
They render as intended in the scene view, but do not in IOS ...
0
votes
0
answers
183
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
1
answer
792
views
Creating a pinch distortion shader
I'm attempting to recreate this effect using a shader in Unity, using version 2023 with HDRP:
The effect appears to be pinching pixels behind the object the shader is applied to and dragging them ...
1
vote
1
answer
460
views
Unity shader to give thickness to flat plane
I have this hexagonal grate floor:
Which is a flat plane with the following shader:
The hex lattice created using the method by Andrew Hung. Albedo and metallic/smoothness shader are just simple ...
0
votes
1
answer
229
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, ...
3
votes
1
answer
1k
views
If UV coordinate is Vector2, then why does UV node in shader graph output Vector4?
I'm new to shader, so please pardon my lack of knowledge. I am trying to understand what does UV node do in shader graph. I tried searching on google and in https://docs.unity3d.com/Packages/com.unity....
0
votes
1
answer
628
views
Cubemap rotation
I have a skybox with stars cubemap
So, how can I rotate stars cubemap on Z axis using "Rotate About Axis"?
1
vote
0
answers
104
views
How to create intersection shader that simulates squishing?
I want to create a shader that will make spheres/circles look like a blob when colliding.
I don't understand shadergraph at all, but I tried to follow intersection shader tutorials.
The problem is ...
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
0
answers
881
views
How to make shader graph RenderTexture deform effect more accurate?
I have followed a PolyToots tutorial (https://www.youtube.com/watch?v=3T8cKTQrMxk) to make a 'rug deform' effect.
This is great except for that the vertices aren't deforming faithfully enough to ...
0
votes
0
answers
105
views
Get vertices back from shadergraph?
I am making waterwaves in shadergraph and i want to make a boat that will bop around on those waves, but to do that i need to get those vertices back into the CPU.
I am unable to replicate those waves ...