cginternals / cginternals/webgl-operate

Refine logic to determine internal texture format for shadow pass

Open
#264 2 comments 0 reactions 0 assignees View on GitHub
haeley-webgl
Dominant language
TypeScript
Stars
170
Forks
25
PR merge metrics
No merged PRs in 30d

Description

It seems as if 32-bit float textures are not considered filterable in WebGL 2 [1].
The necessary extension for those textures does not change that, either [2].
With this in mind, we should redesign the algorithm to determine bitness, number of channels and specific internal format, and filtering method for the shadow map of a shadow pass.

Possible combinations seems to be:
* RED with R8 and linear filtering
* RED with R8 and nearest filtering
* RG with RG8 and linear filtering
* RG with RG8 and nearest filtering
* RGBA with RGBA8 and nearest filtering

Sources:
[1] https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)
[2] https://developer.mozilla.org/en-US/docs/Web/API/OES_texture_float

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.