All Questions
Tagged with unity-shader-graph unity
103 questions
0
votes
1
answer
4k
views
Using ShaderGraph for UI elements with transparency
I am trying to design some UI elements using shader graph. In this case specifically a life bar that is transparent where empty.
For a normal life bar with a filled and empty color I got it working ...
0
votes
1
answer
790
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 ...
1
vote
2
answers
2k
views
How do you get the world position from the screen position in a URP shader graph used in a ScriptableRenderPass?
I'm using a shader graph in the Universal Shader Pipeline (URP) to do some post-processing in a ScriptableRenderPass. How do I get the world coordinates of the screen position?
I have tried using the ...
0
votes
1
answer
168
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
41
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
135
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
0
answers
26
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
108
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
0
answers
91
views
How does Linear and Exponential Fog work in Unity URP?
I am a novice in Unity, I see that volumetric fog is not available when using the URP and the recommended method is to use Linear or Exponential Fog.
I played around with it a little. Even though ...
0
votes
1
answer
149
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 ...
1
vote
0
answers
57
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
41
views
How can I do the UI mask effect on a URP decal?
How can I do the UI mask effect on a URP decal?
1
vote
1
answer
791
views
Vertex Displacement Shader Graph With The Camera Moving Issue
I have a foliage sway shader, that works well.
But when the camera moves the vertex displacement stops:
And the weird thing also is that if I move the camera to the right nothing seems to happen, ...
0
votes
0
answers
47
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
130
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 ...
5
votes
1
answer
5k
views
How to declare per-instance properties for instances rendering on a shader graph?
Unity Version: 2019.4.1f1
Render Pipeline: URP
I created a shader using Unity's Shader Graph, and I want to apply GPU Instancing on this shader, but there is no way to declare per-instance properties ...
0
votes
2
answers
284
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 ...
1
vote
1
answer
259
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
697
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
158
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
977
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
0
answers
40
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
472
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
0
answers
128
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
405
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
1
answer
436
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 :
2
votes
0
answers
247
views
How to get wave height of a gerstner wave made in shader graph?
I have followed a gerstner wave shader graph tutorial. (YouTube Tutorial)
I am now trying to implement buoyancy by attaching the following script to a gameobject. (YouTube Tutorial)
...
1
vote
1
answer
327
views
Can I use Unity's free assets for commercial purposes?
i have a question, if someone is developing a game on unity for commercial purposes, can free or even paid assets be used in the game even if it is to sell the game? are assets not subject to ...
0
votes
1
answer
377
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 ...
1
vote
0
answers
82
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
2k
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
126
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
3
answers
4k
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
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:
...
1
vote
1
answer
292
views
Ensuring world curving shader is not affected by object scale
I've made a shader shown below which essentially acts as a "world bend / curve" shader by "bending" objects depending on their position from camera. It's a subgraph that outputs ...
0
votes
0
answers
788
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 ...
1
vote
1
answer
5k
views
How to add mesh collider which updates with water wave vertex offset?
I have written a shader (in the new LWRP shader graph) which simulates an ocean with vertices which offset to create a moving "waves" effect.
I believe that in order to have objects "float" on my ...
0
votes
1
answer
489
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
88
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....
1
vote
2
answers
2k
views
Sprite Shape & URP Custom 2D Lighting Shader
I've been losing my mind over this for a couple of days now, and can't find any concrete information about it.
I am trying to write a custom shader (shader graph to be specific) to light sprite shape ...
3
votes
1
answer
5k
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 ...
2
votes
3
answers
10k
views
Convert shader that uses a texture array to ShaderGraph
I am working on procedural generation in Unity, and am now a bit stuck. I am using Perlin noise to generate a heightmap, including lacunarity, persistence, octaves and frequencies.
Today I have been ...
0
votes
0
answers
150
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 ...
1
vote
1
answer
2k
views
Why does setting blend mode in Unity shader graph to Multiply create artifacts on sprite?
I want my sprite to use a blend mode based on the background (like in Adobe programs) so I set shader graph blend mode to Multiply. The blend works, but I get strange artifacts on my sprite.
In this ...
0
votes
0
answers
151
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
212
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
1
answer
2k
views
Cloud based fog of war
I'm working on a Unity 3D game that requires fog of war. It is seen from above. I was looking for help and found this: (I dont know what game it is though)
This would perfectly fit my needs but I don'...
1
vote
0
answers
557
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 ...
0
votes
1
answer
628
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 ...