mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-06 00:55:50 +00:00
Merge pull request #2836 from Capostrophic/shaders
Always pass the vertex color to the fragment shader
This commit is contained in:
commit
0e3ae38e49
@ -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…
Reference in New Issue
Block a user