Some questions
Posted:
Wed Jan 30, 2019 12:09 pm
by DuvE
Hi, I have two questions about normals and Custom Render Texture Template:
- Is there a node or a function to convert height map texture to normal?
Re: Some questions
Posted:
Thu Jan 31, 2019 3:14 pm
by Amplify_Borba
Hey there, it seems that you've only posted one question.
We provide a shader function called 'Normal Create' that generates a normal map from a greyscale image, as long as you sample that texture through a Texture Object.
Alternatively, if you're using a non-texture type, you could attempt to generate a normal map on the shader, although it would be a fairly expensive operation because it would require generating each vector component separately in order to calculate the approximate slope.