icculus / mojoshader

Use Direct3D shaders with other 3D rendering APIs.
https://icculus.org/mojoshader/
zlib License
139 stars 36 forks source link

Preliminary implementation of texldl for explicit LOD selection #16

Closed kg closed 5 years ago

kg commented 5 years ago

a GL extension was added in 2009 (and in GLES3 given that GLES2 was missing this) that allows explicitly selecting LODs in fragment shaders instead of just in vertex shaders. This PR enables that so texldl works correctly (instead of just picking the default lod as before). In my basic testing with 2D compute shaders this fixes a bunch of weird issues, but I have no test case for 3D. This code confuses me a lot so I'm not sure it's right.

flibitijibibo commented 5 years ago

Merged via hg https://github.com/FNA-XNA/MojoShader/commit/8496d10306a5dc3614431d782acdecb98db25516