Calculating normals in shader
Good day everyone. I calculating a height map right in surface shader using the IN.worldPos (using open simplex noise functions). I need to calculate normal vector. Seems like there is no way to obtain world positions of neighbor pixels. Maybe there is the way to modify texture (by uv coords) right in shader to use it in next pass?
Comment
Your answer
Follow this Question
Related Questions
shader graph messes up the texture (2D) 0 Answers
AVPro plugin + Amplify Shader 0 Answers
How to load a folder of textures automatically to an array of Raw Images? 2 Answers
1024x1024 Texture2D Takes up over 8MB of memory 0 Answers
Convert Texture to Texture2d takes a lot of time in android device. 0 Answers