How can I add Color property To This Shader
I want to change the color of material. Texture is working But how can i add COLOR property to change material color. Thanks. Shader "Custom/Jelly" { Properties { _MainTex ("Base (RGB)", 2D) = "white"...
View ArticleShader Graph: modified Voronoi node?
I have a complex question, this is a hail-mary, and hopefully, someone will be able to answer this for me. Any help is welcome! I want to make a custom Shader Graph node as a variation of the Voronoi...
View Articlevertex and geometry shader change with distance
Hi, I´m working with unity 2021.1.28f1 and I want to know if it is possible for a shader, depending on the distance from the vertex to the camera, to work as a normal vertex shader for far distances or...
View ArticleSimplex noise function does not work Unity 2019.4.15f
Hey guys so I am new to Shader codes and I have been following this tutorial on Underwater shader using perlin noise. The problem is that the image processing shader is giving me this error:...
View ArticleSharing code between shader and c# - how?
Hi Everyone, With the new Unity.mathematics library we can now write more or less identical code for (compute) shaders and c#. Fantastic! But *really* great would be if I could use a single source file...
View ArticleIm trying to make bulge effect for pipe but ı have some problem first one is...
![alt text][1] [1]: /storage/temp/189243-ezgifcom-gif-maker-1.gif [2]: /storage/temp/189244-bulgeprint.png
View Articlescreen space planar reflection in built in
About screen space planar reflection in built in? I have a puzzling problem. When I hit Play, the reflection looks correct. The reflection was also correct when I panned the camera. But when I move the...
View ArticleObject is rendered white(saturated)
Hi! I created a scene to implement a differential rendering example in AR. Even though I achieved the desired behavior, the color of my object is rendered as completely white(saturated). In the first...
View ArticleIs there a way to save global shader variables?
Is there a good way to save global shader variables/properties? I've got several different shaders which are supposed to all share the same variable, and I want the player to be able to change this...
View ArticleURP - Render only whats inside a cube
Hi everyone! Time ago, I found an excellent solution for rendering only what is inside a cube, from this question: https://answers.unity.com/questions/1762908/render-only-whats-inside-a-box.html The...
View ArticleShaderGraph Y-Axis Billboard
Hello everyone! I've created a shadergraph with a billboard effect following an answer from a [previous question][1]. This is my graph: ![alt text][2] The problem is that now I'm trying unsuccessfully...
View ArticleWater shader for planet with animated foam on shores
Hello everyone, I've been trying to use Sebastian Lague's procedural planet generation and his ocean shader to make a game. Here's the video for reference: https://www.youtube.com/watch?v=lctXaT9pxA0...
View ArticleHiding Objects Behind Your Hand Vuforia
Hi! I was working on a 3D puzzle game where I want to add some realism to my rendering. The question is if I move my hand onto the objects which are standing on my Image Target, I want them to be...
View ArticleImage effect Shader giving weird error.
Hello, I am trying to make a 3d Renderer and after a kind of failure with Compute shaders, I have arrived at Image Effect Shaders. I am trying to send two RWStructuredBuffers one of type float3 and one...
View ArticleAny way to achieve low poly effect without duplicating verticies
So, as I understand it, colors and lighting and all that stuff are applied to triangles based on the normal vectors of the vertices. The fragment shader will interpolate between the normal vectors to...
View ArticleHow to blend color when using shadergraph wich uses normals?
So this is what i currently have: ![alt text][1] But i want it to blend colors at the edges instead of have only one color for each normal like this: ![alt text][2] Any idea on how i could achieve...
View ArticleChange generated mesh texture based on dot product
I am generating a hexagon map and want to change the normal maps depending on the elevation rising. I initially thought i can base it on a dot product but i keep getting the wrong results out of it....
View Articlehow to debug shader on android
is there anyone who helps me to do debugging hlsl shader on an android device? In case of window, I have been debugging it with renderdoc as below. ![alt text][1] And now, I've tried to debug it on...
View ArticleShader in a material that affects what is behind it
Hi all, I have made a material from a shader with ripple effect, but I would like it to be applied to all the scenery behind, i.e. is there any way to make the material transparent (the pokemon stuff)...
View ArticleHow to assign a texture around the edges of an object (as in the actual...
I want to create a shader that assigns a texture to an object, then a different texture around the edges of that object (similar to an inside glow, or a "force field" but for all the edges in the...
View Article