![]() |
|
#7
|
|||
|
|||
|
Thanks. I think the problem is with your normal map lookup code. The texture color values range from 0 to 1. However, the normals need to range from -1 to 1. Also, it appears the green channel in your normal map is flipped. Try modifying your normal map lookup to the following:
Code:
vec3 texNormal = normalize(texture2D(NormalMap, gl_TexCoord[0].xy).rgb * 2.0 - 1.0) * vec3(1.0,-1.0,1.0); |
| Tags |
| binormal, normal, tangent |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Per vertex attributes in OTF objects? | stefs | Vizard | 1 | 10-23-2009 04:36 PM |
| Semi-circle array containing target and distractor objects | ptjt255 | Vizard | 3 | 08-04-2009 04:09 AM |
| Normal Map Workflow for Vizard | shivanangel | Vizard | 2 | 03-10-2009 07:54 PM |
| Could not find plugin to load objects... | halley | Vizard | 1 | 05-30-2006 12:01 PM |