- Home /
Getting rid of the normal map format warning?
How do i get rid of the annoying "A material is using this texture as a normal map" prompt? I'm using custom unlit effect shaders that does some distortion and stuff, referring to the only texture as "_MainTex". Sure, that texture contains some normal information in the RGB channels, but i never pass it to UnpackNormal(). I don't understand what part of Unitys deep magic that judges my texture as a regular normal map. Actually using the Normal Map texture type is not an option for me, i'm creating ios/android games and i need to use that alpha channel!
How is your texture variable and property defined in your shader? Are you sure you don't have another material somewhere in your project that is using the same texture as normal map?
It must have been some sort of caching problem, i haven't seen the dialog again. It seams to work fine when the normal map is referred to as _$$anonymous$$ainTex or simply _Tex1