stevenarella/src/render
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
..
shaders Disable multisampled textures, glTexImage2DMultisample (#447) 2020-12-27 10:14:39 -08:00
atlas.rs Use question mark operator idiom (question_mark) 2020-07-02 16:53:27 -07:00
clouds.rs Use glow, GL on Whatever (#262) 2020-12-25 10:00:22 -08:00
glsl.rs Use web-sys for web backend (#444) 2020-12-26 13:43:21 -08:00
mod.rs Disable multisampled textures, glTexImage2DMultisample (#447) 2020-12-27 10:14:39 -08:00
model.rs Use web-sys for web backend (#444) 2020-12-26 13:43:21 -08:00
shaders.rs Use glow, GL on Whatever (#262) 2020-12-25 10:00:22 -08:00
ui.rs Remove redundant imports (single_component_path_imports) 2020-06-29 18:01:02 -07:00