Skip to content

WebGLRenderer: warn on invalid or unsupported texture filtering #27434

@CodyJasonBennett

Description

@CodyJasonBennett

Description

A common issue going around previously with iPad and more recently iOS is the lack of support for OES_texture_float_linear which makes it very easy to configure unrenderable textures which silently fail on those devices.

Solution

It would help to warn if an invalid or unsupported filtering combination is used. Mainly, as mentioned above, this would include FloatType (custom) + LinearFilter (default). Not including invalid options passed to Texture.magFilter as that is currently documented, but I linked below related configuration painpoints with mipmaps.

Alternatives

Document limits with float textures (WebGL only), but there isn't a clear place that I can see to do so.

Additional context

Related: #18861, #17314 (comment)

https://twitter.com/Cody_J_Bennett/status/1737517374935359872 (many such examples recently)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions