mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-18 04:53:06 +01:00
Added lod to imgui cubemap shader.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user