]> git.lizzy.rs Git - minetest.git/commit
Fix MSAA stripes (#9247)
authorHybridDog <3192173+HybridDog@users.noreply.github.com>
Fri, 4 Dec 2020 19:16:12 +0000 (20:16 +0100)
committerGitHub <noreply@github.com>
Fri, 4 Dec 2020 19:16:12 +0000 (20:16 +0100)
commite73c5d45858b35dde782b23677495c6eda3f8253
treee432acd4562cc1c026188e69d3b688fce6fdb9a7
parentecd4f45318e7e510ebe4ebe8420ea739122d2edf
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.
builtin/settingtypes.txt
client/shaders/nodes_shader/opengl_fragment.glsl
client/shaders/nodes_shader/opengl_vertex.glsl
client/shaders/object_shader/opengl_fragment.glsl
client/shaders/object_shader/opengl_vertex.glsl