1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 06:53:53 +00:00

Use centroid interpolation for shader lighting (fixes #4143)

This commit is contained in:
Capostrophic 2018-04-12 00:39:11 +03:00 committed by Capostrophic
parent 9b8c56761b
commit b08d7b4a3b
4 changed files with 8 additions and 8 deletions

View file

@ -47,9 +47,9 @@ varying float depth;
#define PER_PIXEL_LIGHTING (@normalMap || @forcePPL)
#if !PER_PIXEL_LIGHTING
varying vec4 lighting;
centroid varying vec4 lighting;
#else
varying vec4 passColor;
centroid varying vec4 passColor;
#endif
varying vec3 passViewPos;
varying vec3 passNormal;

View file

@ -38,9 +38,9 @@ varying float depth;
#define PER_PIXEL_LIGHTING (@normalMap || @forcePPL)
#if !PER_PIXEL_LIGHTING
varying vec4 lighting;
centroid varying vec4 lighting;
#else
varying vec4 passColor;
centroid varying vec4 passColor;
#endif
varying vec3 passViewPos;
varying vec3 passNormal;

View file

@ -17,9 +17,9 @@ varying float depth;
#define PER_PIXEL_LIGHTING (@normalMap || @forcePPL)
#if !PER_PIXEL_LIGHTING
varying vec4 lighting;
centroid varying vec4 lighting;
#else
varying vec4 passColor;
centroid varying vec4 passColor;
#endif
varying vec3 passViewPos;
varying vec3 passNormal;

View file

@ -6,9 +6,9 @@ varying float depth;
#define PER_PIXEL_LIGHTING (@normalMap || @forcePPL)
#if !PER_PIXEL_LIGHTING
varying vec4 lighting;
centroid varying vec4 lighting;
#else
varying vec4 passColor;
centroid varying vec4 passColor;
#endif
varying vec3 passViewPos;
varying vec3 passNormal;