mojira.dev
MC-313724

OpenGL: integer-format textures always read as (0,0,0,1) in shaders

GlSampler always uses GL_NEAREST_MIPMAP_LINEAR or GL_LINEAR_MIPMAP_LINEAR as min filter, and input attachments are bound with sampler 0, i.e. with the texture's default filters (NEAREST_MIPMAP_LINEAR / LINEAR). So every read of a *_UINT / *_SINT texture (texelFetch, subpassLoad) returns (0,0,0,1) on OpenGL. It works on Vulkan.

Comments 0

No comments.

Lolo

(Unassigned)

Plausible

26.4 Pre-Release 2

Retrieved