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
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 ...
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 ...
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:
...
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
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
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
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
579
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
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 ...
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 ...
1
vote
1
answer
542
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
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
0
answers
207
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
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 :
1
vote
1
answer
432
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 ...
1
vote
0
answers
117
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 ...
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 ...
1
vote
1
answer
340
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 ...
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
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 ...
1
vote
2
answers
3k
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 ...
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 ...