Merge pull request #2836 from Capostrophic/shaders

Always pass the vertex color to the fragment shader
pull/2837/head
Andrei Kortunov 5 years ago committed by GitHub
commit 0e3ae38e49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -59,9 +59,8 @@ varying float linearDepth;
#if !PER_PIXEL_LIGHTING
centroid varying vec4 lighting;
centroid varying vec3 shadowDiffuseLighting;
#else
centroid varying vec4 passColor;
#endif
centroid varying vec4 passColor;
varying vec3 passViewPos;
varying vec3 passNormal;

@ -45,9 +45,8 @@ varying float linearDepth;
#if !PER_PIXEL_LIGHTING
centroid varying vec4 lighting;
centroid varying vec3 shadowDiffuseLighting;
#else
centroid varying vec4 passColor;
#endif
centroid varying vec4 passColor;
varying vec3 passViewPos;
varying vec3 passNormal;
@ -108,9 +107,8 @@ void main(void)
#if !PER_PIXEL_LIGHTING
lighting = doLighting(viewPos.xyz, viewNormal, gl_Color, shadowDiffuseLighting);
#else
passColor = gl_Color;
#endif
passColor = gl_Color;
passViewPos = viewPos.xyz;
passNormal = gl_Normal.xyz;

@ -20,9 +20,8 @@ varying float linearDepth;
#if !PER_PIXEL_LIGHTING
centroid varying vec4 lighting;
centroid varying vec3 shadowDiffuseLighting;
#else
centroid varying vec4 passColor;
#endif
centroid varying vec4 passColor;
varying vec3 passViewPos;
varying vec3 passNormal;

@ -9,9 +9,8 @@ varying float linearDepth;
#if !PER_PIXEL_LIGHTING
centroid varying vec4 lighting;
centroid varying vec3 shadowDiffuseLighting;
#else
centroid varying vec4 passColor;
#endif
centroid varying vec4 passColor;
varying vec3 passViewPos;
varying vec3 passNormal;
@ -32,9 +31,8 @@ void main(void)
#if !PER_PIXEL_LIGHTING
lighting = doLighting(viewPos.xyz, viewNormal, gl_Color, shadowDiffuseLighting);
#else
passColor = gl_Color;
#endif
passColor = gl_Color;
passNormal = gl_Normal.xyz;
passViewPos = viewPos.xyz;

Loading…
Cancel
Save