Take a back up of the following files. You can find them in C:\Program Files\VCG\MeshLab\shaders
or wherever you have installed meshlab
Edit the above files as follows. You can keep the comments.
normalmap.vert
varying vec4 baseColor;
void main(void)
{
gl_Position = ftransform();
baseColor = vec4(gl_Normal, 1.0);
}
normalmap.frag
varying vec4 baseColor;
void main(void)
{
gl_FragColor = baseColor;
}
From Render menu, select Render -> Shaders -> normalmap.gdp
There you go! But remember this is a very simple shader to show normal map. If you want lighting and other effects you have to further edit the shaders.
/usr/share/meshlab/shaders/
- Remy Mellet