stevenarella/src/render/shaders
iceiix b8b4cb07a7
Disable multisampled textures, glTexImage2DMultisample (#447)
Steven used multisampled textures from the beginning, but this caused
incompatibilities: https://github.com/Thinkofname/steven/issues/74.
Subsequently fixed by increasing the number of samples, but increasing
it beyond the limit caused more incompatibilities, so it was clamped to
the maximum samples reported as supported by the system.

Fast-forward to now, as part of adding WebGL support (#446), the use of
multisampled textures via the glTexImage2DMultisample() call is
unsupported on this platform. Replace the following:

* glTexImage2DMultisample -> glTexImage2D
* TEXTURE_2D_MULTISAMPLE -> TEXTURE_2D
* sampler2DMS -> sampler2D

This disables the custom multisampling anti-aliasing algorithm (MSAA)
implemented in the chunk fragment shader, increasing compatibility:

* Update to glow release, remove image_2d_sample()

MSAA may be added back at a later date using multisampled renderbuffers
instead, see #442.
2020-12-27 10:14:39 -08:00
..
chunk_frag.glsl Use web-sys for web backend (#444) 2020-12-26 13:43:21 -08:00
chunk_vertex.glsl Use web-sys for web backend (#444) 2020-12-26 13:43:21 -08:00
clouds_frag.glsl Add fancy clouds 2016-04-01 20:01:10 +01:00
clouds_geo.glsl Fix uninitialized texP and heightP in clouds_geo. Closes https://github.com/iceiix/steven/issues/32 2018-11-28 16:45:25 -08:00
clouds_vertex.glsl Add fancy clouds 2016-04-01 20:01:10 +01:00
get_light.glsl Implement block shading 2016-03-21 19:53:00 +00:00
lookup_texture.glsl Use web-sys for web backend (#444) 2020-12-26 13:43:21 -08:00
model_frag.glsl Implement models and a sun/moon 2016-03-27 23:31:57 +01:00
model_vertex.glsl Use web-sys for web backend (#444) 2020-12-26 13:43:21 -08:00
sun_frag.glsl Implement models and a sun/moon 2016-03-27 23:31:57 +01:00
sun_vertex.glsl Use web-sys for web backend (#444) 2020-12-26 13:43:21 -08:00
trans_frag.glsl Disable multisampled textures, glTexImage2DMultisample (#447) 2020-12-27 10:14:39 -08:00
trans_vertex.glsl Add last state before I stopped 2016-03-16 17:33:06 +00:00
ui_frag.glsl Work on login screen, added ui buttons and textboxes (plus tab fixes) 2016-03-20 20:17:21 +00:00
ui_vertex.glsl Use web-sys for web backend (#444) 2020-12-26 13:43:21 -08:00