remove seemingly useless if in shader
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14711 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
bce4a075ba
commit
e9e3a8afff
@ -20,16 +20,16 @@ void main() {
|
||||
// Tune for better inside range without losing outdoors
|
||||
linear_z *= 2.0;
|
||||
|
||||
if (hastex != 0) {
|
||||
//if (hastex != 0) {
|
||||
vec4 col = texture2D(tex, gl_TexCoord[0].xy);
|
||||
|
||||
if (col.a < 0.5)
|
||||
discard;
|
||||
|
||||
gl_FragData[0] = col;
|
||||
} else {
|
||||
gl_FragData[0] = gl_Color;
|
||||
}
|
||||
//} else {
|
||||
// gl_FragData[0] = gl_Color;
|
||||
//}
|
||||
|
||||
gl_FragData[1] = vec4(nor, linear_z);
|
||||
gl_FragData[2] = vec4(encdepth(gl_FragCoord.z).xyz, objectid);
|
||||
|
Loading…
Reference in New Issue
Block a user