mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2025-02-17 20:31:57 -05:00
Added lod to imgui cubemap shader.
This commit is contained in:
parent
096f9d2bf9
commit
51268e11a0
1 changed files with 2 additions and 1 deletions
|
@ -7,9 +7,10 @@ $input v_normal
|
|||
|
||||
#include <bgfx_shader.sh>
|
||||
|
||||
uniform float u_imageLod;
|
||||
SAMPLERCUBE(s_texColor, 0);
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_FragColor = textureCube(s_texColor, v_normal);
|
||||
gl_FragColor = textureCubeLod(s_texColor, v_normal, u_imageLod);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue