mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Fix MSAA stripes (#9247)
This only works when shaders are enabled. The centroid varying avoids that the textures (which repeat themselves out of bounds) are sampled out of bounds in MSAA. If MSAA (called FSAA in minetest) is disabled, the centroid keyword does nothing.
This commit is contained in:
parent
ecd4f45318
commit
e73c5d4585
5 changed files with 13 additions and 10 deletions
|
@ -7,7 +7,7 @@ varying vec3 vNormal;
|
|||
varying vec3 vPosition;
|
||||
varying vec3 worldPosition;
|
||||
varying lowp vec4 varColor;
|
||||
varying mediump vec2 varTexCoord;
|
||||
centroid varying mediump vec2 varTexCoord;
|
||||
|
||||
varying vec3 eyeVec;
|
||||
varying float vIDiff;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue