- Home /
How can I fix a normalmap procedurally generated?
Hi, I have procedurally generated a normalmap taking a texture as a base, but this is what happens when I asign it to the material:
http://i40.tinypic.com/e8wlco.png
The light is all wrong, specially in the low right part of the surface. I found that if I export the normalmap file and then import it through the editor Unity tells me that "This texture is not marked as a normal map", and if I click the "Fix Now" button the problem goes away but since I want the normalmap to be generated via script I can't use this option of course.
How can I tell Unity that this is a normalmap with C#?
Answer by DavlexDesign · Jul 22, 2017 at 01:22 PM
I would love to know the solution to this problem too
I have no idea and have been searching for an answer to this for days!
Answer by maximeb-valtech · Sep 07, 2017 at 02:49 PM
I know this is an old thread, but stumbled upon it during search for my own issue. The solution is to change the TextureImporter textureType to normalMap.
Your answer
Follow this Question
Related Questions
Normal map mask 2 Answers
Bump mapping procedural mesh. 1 Answer
Dynamically generated bump map for Surface Shader? 0 Answers
Importing a model with Displacement, Normal, and Texture map 2 Answers
a shader or decal that only renders the normal map 0 Answers