what am i doing
This commit is contained in:
parent
9d11089a75
commit
4cce33c16b
9 changed files with 196 additions and 21 deletions
|
|
@ -12,8 +12,9 @@ void main (void){
|
|||
if(solid_color > 0.5){
|
||||
c = color;
|
||||
}else{
|
||||
c = texture2D(current_texture, gl_TexCoord[1].st);
|
||||
c = texture2D(current_texture, gl_TexCoord[0].st);
|
||||
}
|
||||
c = color;
|
||||
|
||||
gl_FragColor = (shadow + (gl_Color - shadow) * shadow2DProj(depth_texture, gl_TexCoord[0])) * c;
|
||||
gl_FragColor = (shadow + (gl_Color - shadow) * shadow2DProj(depth_texture, gl_TexCoord[1])) * c;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ void main(void){
|
|||
gl_FrontColor += temp + gl_FrontLightProduct[0].specular * specular;
|
||||
}
|
||||
|
||||
gl_TexCoord[0] = gl_TextureMatrix[0] * gl_ModelViewMatrix * gl_Vertex;
|
||||
gl_TexCoord[1] = gl_MultiTexCoord0;
|
||||
gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0;
|
||||
gl_TexCoord[1] = gl_TextureMatrix[1] * gl_ModelViewMatrix * gl_Vertex;
|
||||
gl_Position = ftransform();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue