Skip to main content
gamedev.net
🔒 Locked

Normal map intensity

Started by maya18222 1 reply 650+ views
Original Post
maya18222
maya18222
Other than editing the map itself in photoshop. How would you go about having some sort of intensity control for the normal map. I tried seperating my normals calculated form the vertex normals averaged in the pixel shader, and the ones from the normal map. I thought it may be as straight forward as multiplying them with a factor of the normal map, but this looks awful.
Viik
Viik
If you use normal map in tangent space you can simply lerp between normal from texture and normal that points up (perpindicular to surface).
Like this
normal = lerp(normal_map, float3(0, 0, 1), normal_intencity);
Might need to swap Y and Z.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.