Skip to content

Disable multisampled textures, glTexImage2DMultisample#447

Merged
iceiix merged 1 commit intomasterfrom
no_multisample_texture
Dec 27, 2020
Merged

Disable multisampled textures, glTexImage2DMultisample#447
iceiix merged 1 commit intomasterfrom
no_multisample_texture

Conversation

@iceiix
Copy link
Copy Markdown
Owner

@iceiix iceiix commented Dec 27, 2020

Steven used multisampled textures from the beginning, but this caused
incompatibilities: Thinkofname/steven#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.

Steven used multisampled textures from the beginning, but this caused
incompatibilities: Thinkofname/steven#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.
@iceiix iceiix mentioned this pull request Dec 27, 2020
29 tasks
@iceiix iceiix merged commit b8b4cb0 into master Dec 27, 2020
@iceiix iceiix deleted the no_multisample_texture branch December 27, 2020 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant