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:
parent
9b8c56761b
commit
b08d7b4a3b
4 changed files with 8 additions and 8 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue