luminance-rs icon indicating copy to clipboard operation
luminance-rs copied to clipboard

Texture swizzling

Open ColonelThirtyTwo opened this issue 3 years ago • 1 comments

Luminance should support setting the TEXTURE_SWIZZLE_R/G/B/A texture parameters, defined in section 3.8.8 of the OpenGL 3.3 spec.

Should be fairly straightforward to implement in the shader code. Would make R8 textures easier to use as grayscale textures.

ColonelThirtyTwo avatar Dec 03 '21 16:12 ColonelThirtyTwo

The interface should be pretty simple to implement and the backends fairly easy to update, yes.

hadronized avatar Dec 25 '21 16:12 hadronized