View Single Post
  #9  
Old 09-06-2006, 08:09 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

Sorry about that. Replace the the code in the shader file with the following:
Code:
uniform sampler2D BaseTexture;
uniform sampler2D DetailTexture;

void main (void)
{
	vec4 detailColor = texture2D(DetailTexture, gl_TexCoord[1].xy);
	gl_FragColor  = (texture2D(BaseTexture, gl_TexCoord[0].xy) * detailColor.r) * 2.0;
}
Reply With Quote