Questions tagged [shader-graph]

115 questions
1
vote
1 answer

Unity3D - Shader Graph - Where did the definition parameter go?

Since I updated unity's universal render pipeline I can't find the definition parameter for the boolean property in shader graph. I want to set the parameter "definition" to multi compile but it has just disappeared. Can anyone help me find it…
HelpWanted
  • 11
  • 1
1
vote
3 answers

Unity shader graph 10.5.1 - texture 2D big issues

I want to put a sprite over other using shader graph, like in this tutorial. But after I do the spritesheet, the emission map, create the shader graph and the related material, add the Texture 2D in the blackboard and the _MainTex reference, finally…
1
vote
1 answer

How to use TEXCOORD0 in custom functions of Shader graphs?

I have already implemented a code using normal shader and now I'm converting that to a shader graph. I used uv values to color certain area near the hit point using fragment shaders and how can I get the same results in shader graph custom functions…
1
vote
2 answers

Unity cannot change material at runtime by script

Goal I created a shader graph that I use in a material "TestMaterial". I have a game Object with a sprite renderer component with a default material property. At runtime when user click on a simple button I want to change my gameObject > Sprite…
Bishok
  • 11
  • 1
  • 4
1
vote
1 answer

Problem with contact/intersection shader with Unity3d Shader Graph

I am relatively new to shader graph and I struggle with one thing : making correct intersection shader with two sided material. Here are some pictures of what is happening Without two sided With two sided My issue is that we can't see the contact…
1
vote
1 answer

Wrong color on Unity Shader Graph

I have car mesh for my game. I need change base car color without wheel and headlights color. For this I create texture with white and black places where need changes and color mask for it. Then I created shader with Shader Graph But the color I got…
Artem Volkov
  • 109
  • 1
  • 10
1
vote
0 answers

Need help converting a custom shader to URP

For the last few days I've been following Sebastian Lague's videos about procedual generation. Since my project is based on URP and the custom shader responsible for rendering textures upon the mesh is just written for SRP I have to do an…
Sora000
  • 11
  • 2
1
vote
1 answer

How to feed a transform.position into shader graph?

I am trying to mask a sprite by using shader graph. Here is a picture of what I have so far: my problem is that when I feed the mask texture into the shader it centers itself on the main texture, as you see in this image. See the slightly…
flask
  • 127
  • 13
1
vote
0 answers

Implementing a contact shader, which colors the object on the contact points

In a scene in VR I am trying to implement a shader with shader graph, where at each point of contact of my hand with a cube, the cube gets a simple red dot. My idea was to create a texture where I changed the color of the concerned vertices and then…
1
vote
1 answer

Unity 2D shader graph not correct colored

I tried to create outline shader for my Sprite: I watched tutorials on YouTube (CodeMonkey and Brackeys) about this, but it worked by half. In Scene Graph I see preview: But outline color I so faded: And also I can't see this shader on Scene…
andrew
  • 113
  • 6
1
vote
1 answer

Global Tiling in HDRP Combined with Parallax Occlusion Makes Messed up UVS

I'm trying to make a custom shader with Shader Graph on HDRP. The intention is to automatically tile textures based on global position so I don't have to worry about remaking materials when I resize things etc. (I'm sure you can imagine the…
0
votes
0 answers

Normal map rendering is broken , in Renderer2D using Light2D and shader graph with normal map

there, Because normal map rendering is broken. I very comfused. Using Light2D in Renderer2D, And Sprite Lit shader graph with Normal map. Graph is very simple. Here is this graph. However this shader is not rendered correct. When camera is opposite…
0
votes
0 answers

How can I rotate my material in shader graph

My project that was from tutorial made by Sebastian Lague about procedural generation and I upgraded it to URP Before upgrade it looked like this: I needed to recreate the material from scratch using the Unity shader graph following this tutorial…
Drunkiel
  • 31
  • 4
0
votes
0 answers

issue with the vertex position node when more than one object uses a shared material

I'm using a graph shader to do a simple shift of the vertices of a 2D mesh. When object is in zero coordinates all seems to work, but the further from the center, the stronger the distortion, which should not be. I use URP 14.0.8 with Editor…
MrWorld
  • 1
  • 1
0
votes
0 answers

Possible bug in Reality Composer Pro GeometryModifier?

I don't have experience in Computer Graphics, so I am not sure how the GeometryModifier of the Reality Composer Pro works. But to me there seems to be a bug (Version 1.0 (385.2)). To test, I created a scene with a flat box. Its center is placed at…