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.

Filter by
Sorted by
Tagged with
0
votes
0answers
8 views

Fade a texture effect as it nears the end of a cylinder mesh

In my game I have a laser beam that travels for about 15m, but abruptly stops due to the mesh the texture is attached to. How can I setup my shader graph so that the end of the texture fades away? I ...
0
votes
0answers
7 views

fade/transparence for object by shader graph?

I'm trying to make a simple fade/transparence for my object using shader graph. I got a result with dither but I don't like it. I want something smooth without dots. How to get it?
0
votes
1answer
23 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
1answer
30 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
0answers
12 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
0answers
22 views

Unity Shadergraph to CPU code?

I read that you in theory can get vertex offsets from GPU shader in CPU by transpiling the shader to CPU callable code or creating a compute shader that calls the shader code (are there more ways?). I ...
0
votes
1answer
24 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
1answer
10 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 ...
2
votes
2answers
122 views

Renaming Texture 2D nodes in Unity's shader graph?

I am new here so thanks for having me. I have a query regarding renaming the Texture 2D nodes I have created in my first Shader graph. I have setup a shader graph with a normal map, base colour, ...
0
votes
1answer
425 views

PBR Graph option not showing up in Unity

I downloaded the URP render pipeline into an existing project of mine (created using the 3D template) to try out shader graphs. All of the guides and tutorials I'm following use an option called the &...
1
vote
0answers
25 views

How to create fallout intensity on a generated mesh in Unity?

So I was able to generate a circle mesh in Unity to basically see the other characters when they are inside of it, and hide the characters when they are outside of it, and partially hide and show the ...
1
vote
1answer
96 views

How to hide player when in Shadow using Unity 2D Light System?

I have been looking for this for a couple of days now and cant find an answer; how can I hide a player when they are in the shadow when am using Unity 2D Light System? I know I can choose not to cast ...
0
votes
0answers
68 views

Why is there such a difference in between my scene and game?

Here I have 2 screenshots of my problem: By the way my water shader works with Screen position and Scene Depth. I can include ...
0
votes
0answers
206 views

How to randomly change the color of a Shader Graph Material for only a specified GameObject, with C# script?

I'm working on a game, in Unity3D, where the player picks up trash from Trash cans, and dumps the trash from the Trash cans into a Trash Truck. The world of the game itself is randomly generated, with ...
0
votes
0answers
34 views

How to displace a segmented line along a sine wave with Shader Graph?

I have a mesh made of three identical cylinders (conceptually just line segments with a non-zero thickness) crossed over each other at 60 degree angles, so the ends describe the points of a regular ...
1
vote
1answer
318 views

How can I incorporate subsurface scattering into a custom shader graph?

I'm working on some 3D grass in Unity with HDRP (the grass is not a 2D asset on a plane, it's a mesh). I did a shader to make it move following a tutorial, it works great. I would like to add ...
0
votes
1answer
343 views

How can I blend the center color of a 2 side gradient so it isn't as harsh looking in Unity Shader Graph?

I am using the gradient node in Unity's Shader Graph. It is 2 sided, with it being black-white-black. The white is quite harsh, it makes a line that stands out. I will be using this as a mask, and ...
0
votes
1answer
23 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
0answers
47 views

Shader map in unity

I'd created a shader graph in shader editor of unity. And I applied it to new material also. When I imported a .fbx object(box-like object and vertical slab like object) and applied that material in ...
0
votes
1answer
211 views

Specular reflections shine at the wrong angle when using a normal map

I'm using Unity with URP and I'm trying to include a normal map in my shader graph. Here is a basic graph that just display a normal map, with properties to control tiling and smoothness. When I ...
0
votes
2answers
2k views

Understanding Screen Position Node in Unity Shader Graph

I'm struggling to understand what exactly the Screen Position node outputs in Unity's Shader Graph. I'm using the screen position with scene depth to calculate the distance between two objects. Every ...
1
vote
0answers
84 views

Shader graph in Oculus (Screen position)

I have created a blur shader graph to blur a material. It works perfectly fine in the scene mode and also in windows application. However it does not work as expected in Oculus VR. That is, the ...
0
votes
1answer
193 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
0answers
226 views

Mixamo Fuse Unity eyelashes not correct

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
0answers
33 views

UV Tiling & Offset input values from World Position - incorrect behavior?

I'm using ShaderGraph in 2020.1.0f1. I have some shader experience, but it's all been handwriting shaders. I have experience with node-based things of this nature by way of Substance Designer. I'm ...
0
votes
0answers
156 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
1answer
61 views

Interactive texture modification (such as swirling) in Unity

I am working on a game where I want to allow users to mix multiple colors (similar to shown in this video): https://youtu.be/11UFYyv8hjs?t=316. I have the following questions: I am expecting that ...
0
votes
0answers
51 views

How to make borders glow in a 2D game?

How can I make the borders (stationary / non moving) of my 2d Unity game glow? I need a method that is not so expensive. I've read that post processing is very expensive, but I quite liked adding ...
0
votes
1answer
1k views

Unity: Shader Graph and GPU-Instancing?

Unity Version: 2019.4.1f1 Render Pipeline: URP I created a shader using Unity's ShaderGraph, and i want to apply GPU Instancing ...
1
vote
3answers
3k views

Convert from Shader 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
1answer
52 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
1answer
646 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
1answer
57 views

Unity: How can I control a Shadergraph effect on multiple enemies with the same prefab?

So I made a simple White Flash -> Dissolve effect with shader graph 2D, it's my 1st time using shaders. I'm controlling the effect using a float inside the shader, with: ...
0
votes
1answer
314 views

How to sample from six cubemap images for a skybox in Shader Graph?

I'm trying to update a skybox shader to URP and reimplement it in Shader Graph. The shader code itself is pretty straightforward, but I don't know enough about Shader Graph yet to set up the basic ...
1
vote
0answers
148 views

Unity Shader-Graph randomly tiled sprite

Lets say I have a shader with a clean white tile. Then I use it on a wall and tile it a few times. I also have a sprite with numbers. Now, is it possible and if yes how. To put a random sprite ...
3
votes
1answer
121 views

Procedural mesh comes out black in any shader

I wrote a script that Creates a mesh procedurally ...
0
votes
0answers
485 views

How to rotate a skybox cubemap using Unity Shadergraph

@Seyed Morteza Kamali solved his own problem of rotating a mesh cubemap with shadergraph here: How can I rotate cubemap in shadergraph? However, I have a starry night cubemap inside my Skybox shader ...
0
votes
0answers
31 views

Unity ShaderGraph how to use a float when no texture is provided?

so in the Autodesk Interactive URP material, you have float values from 0-1.0 as an option for Roughness. If you provide no texture, this value is used. I would like to make a shader graph that ...
0
votes
2answers
499 views

How can I rotate cubemap in shadergraph?

I know how to rotate cube map with legacy surface shader Shader Rotation Matrix: ...
0
votes
1answer
3k 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
0answers
72 views

How can I apply a fullscreen shader on a specific layer?

How do I apply a full screen shader on one layer of objects using LWRP/URP and shader graph? I want to pixelate only my particlesystems, but nothing else. I want the effect of pixelcamera, but only on ...
0
votes
1answer
277 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
1answer
199 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 ...
1
vote
0answers
34 views

Aligning cube faces Unity

I am using a shader that uses a gradient noise node and time to add a wavy effect to a grid like texture. The issue with doing this is that it causes the lines to be misaligned on the different faces ...
3
votes
2answers
1k views

Material is flickering in Unity

I'm trying to make a grid like, light up floor using Unity's Shader Graph. However, I am having an issue where the lines are flicking after a really short distance when the camera is moving. The ...
0
votes
1answer
1k 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 ...
2
votes
1answer
5k views

Unlit Node Shadow Shader Graph

How to make unlit node cast shadows? Is is possible with the current state of Shader Graph in LWRP? In this great article Toon Shader OP grabs pass from VertexLit shader. Is something similar ...
0
votes
1answer
454 views

Does transparency work with SSS in Unity's HDRP Lit shader?

I am using Unity's HDRP Lit shader in Shader Graph (all are version 4.8.0-preview) on Unity 2018.3.0b12. I am trying to use both transparency and subsurface scattering on the material. However, it ...
1
vote
0answers
731 views

Draw a perfect circle in UI

This is the problem I have. I have created a shader that draws circle. But depending on the distance from the camera thickness changes. Is it possible to keep thickness constant?
0
votes
1answer
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 ...