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
0
votes
1
answer
3k
views
Making a crosshatching effect in Unity Shader Graphs
I'm learning Shader Graph and am trying to experiment with toon shading effects. One thing I'd love to do is make a traditional art styled crosshatching effect either inside shadows or at the edge of ...
0
votes
1
answer
2k
views
Converting shader to ShaderGraph
Is there a way to convert the below piece of shader code to shader graph?
I am not sure how to find float2(i, i) in shader graph.
...
0
votes
3
answers
559
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
1
answer
899
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 ...
0
votes
2
answers
587
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
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
258
views
How do I keep vertex position when changing material?
I've created 2 shaders using shader graph which I'm applying to a sphere to simulate a ball of water/ice. The water shader distorts the shape of the sphere over time to look like it's flowing a bit. ...
0
votes
1
answer
744
views
Controlling noise density
I'm trying to fake terrain blending by using an opacity mask on my road mesh to reveal the grass underneath. I'm currently multiplying some Perlin noise by a Rectangle node displaying my texture at 80%...
0
votes
4
answers
5k
views
How can I rotate cubemap in shadergraph?
I know how to rotate cube map with legacy surface shader
Shader Rotation Matrix:
...
0
votes
1
answer
2k
views
Transparent alpha mode in Shader Graph creates unwanted jagged outline
I am currently working on a transparent shader and noticed that all my works have a jagged dark outline. I guess I've used the wrong settings somewhere, but I've been fiddling around with a couple ...
0
votes
2
answers
193
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 ...
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
523
views
Make moon using cubemap in shadergraph
I'm trying to make moon with a cubemap texture in shadergraph.
I made it, but the texture is incorrect.
I'm using a cubemap from NASA as a texture and it works, but it's bigger than moon shape and ...
0
votes
1
answer
198
views
Apply a shader to the right face of a mesh
Given that I don't have the basic concepts to work with 3d, I would still like to experiment and learn.
What have I done:
I imported an SVG of the world map into Blender
I extruded the SVG
I ...
0
votes
1
answer
647
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
1
answer
591
views
Unity world curve shader graph, how to start curving from a specific distance?
I've made simple world curving shader following some online tutorials and cleaning few things up. It's doing its job, however I have small issue where it curves objects that are very close to a camera....
0
votes
1
answer
3k
views
How to use Texture2DArray with Normal map and Normal Unpack node in Shader Graph
I am extracting Normal Map from Texture2DArray in shader graph and then converting it to normal using ...
0
votes
1
answer
839
views
make Shader Graph material flow aligned to the mesh UVs (like a river)
i need to add a flow effect to my river so that the water can flow along the path described by the mesh i created. Using ShaderGraph shader i added a time node ...
0
votes
1
answer
1k
views
Checkerboard using Shadergraph
In Unity Shadergraph, how can I create a checkerboard pattern that works independently of the size of the quad that it is applied to?
Here's what I got so far. Since I have set the Frequency to 10x6, ...
0
votes
1
answer
172
views
Improving the look of a character with solid parts inside a translucent jello exterior
So my problem is a bit hard to explain. I have a character made out of a jello shell, with an internal skeleton. So let me introduce you to ma boi "Chonker McJello"
The problem is, that I ...
0
votes
1
answer
705
views
Make the texture array node work with cubemaps?
I am working on a procedural interior mapping shader in Unity's Shader Graph. Ideally, I'd like to feed it a set of cubemaps it can pick from semi-randomly.
However, it seems that by default the ...
0
votes
1
answer
878
views
Eyelashes not correct after rigging Adobe Fuse character in Mixamo and importing into Unity
I created a character in Adobe Fuse, sent it to Mixamo for rigging with blendshapes and downloaded the fbx for unity file.
Below is how the character eyelashes appear in Fuse..
However, when I ...
0
votes
1
answer
12k
views
Unity Shader Graph combine textures with transparency
I have two transparent textures. border.png and text png. They are both white images with transparency for the parts I dont want to affect. What I want to achieve in shadergraph is to:
1: Put both ...
0
votes
1
answer
858
views
Star glowing shader graph
How could I make a shader graph that makes spheres that look like on this image? I'm new to shaders and I don't know how to do this. Also, if it's possible I would like a property to change the ...
0
votes
1
answer
2k
views
Show Sprites on Overlap (Shader Graph) [2D]
I have a character sprite mesh and mesh renderer (The black wavy box). I am hoping to be able to overlay the black box onto the character covering the sprites but I am not sure how to do that.
I ...
0
votes
1
answer
6k
views
Unity LWRP & Projection Shader
I recently added the Lightweight Render Pipeline to my project as I'd like to start experimenting with Shadergraph to see if I can get a better basic understanding of shaders.
Everything has gone ...
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 ...
0
votes
1
answer
271
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
39
views
How can I sync the volume of an audiosource with how a material change alpha?
I am making a flickering light prefab, and have already made a shader and a material that make it turn on and off erratically.
I also want the light to emit a buzzing sound when it's turned on, but I ...
0
votes
1
answer
370
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?
0
votes
1
answer
577
views
How to make this Triplanar Shader Graph follow object rotation
I have what is essentially a double triplanar shader. The first triplanar is a base rock texture, and the second triplanar is going to be an accent texture, such as grass, sand, etc, which is always ...
0
votes
0
answers
57
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
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
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
0
answers
205
views
Object-bending shader graph keeps disappearing nearby objects in portrait mode but not landscape mode
As you can see from this video,
the shader graph was used to curve the path. In landscape mode, it works as expected but in portrait mode nearby objects (the buildings and other objects) disappear ...
0
votes
1
answer
660
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
678
views
Cubemap rotation
I have a skybox with stars cubemap
So, how can I rotate stars cubemap on Z axis using "Rotate About Axis"?
0
votes
0
answers
894
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
109
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 ...
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 ...
0
votes
0
answers
165
views
Read the result value of alpha blend
I am playing a bit with the shader graph (I am fairly new to shaders) but I am completely lost at the moment.
What I'd like to obtain is to somehow retrieve the alpha value after the blended operation ...
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 ...
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 ...
0
votes
0
answers
174
views
How to generate a randomly-positioned leaf quads with a geometry shader?
Does anyone have any idea how to implement a shader that manages to make this effect in Unity?
I found a post that explains, but I'm still learning shaders so I didn't really understood how to go ...
0
votes
0
answers
2k
views
Rotating UVs by X degrees
I would like to make a tileable texture with UV noise in Unity Shader Graph only, but I have a problem.
After creating simple noise from UV, I want to rotate it by 90 degrees, but the node ...
0
votes
0
answers
83
views
Applying a shader operation to an existing shader
My procedural game has blocks that can be selected. When selected, I'd like them to to fade a bit; I can achieve such an effect in Shader Graph by applying a Blend → Lighten operation to the block ...
0
votes
1
answer
561
views
Rotate a Polygon node in Shader Graph
I have a hexagon in the Polygon node I would like to rotate so the pointy side is upwards. Applying the rotation nodes, however, simply changes the color of the hexagon from white to a color in the ...