Преглед изворни кода

Added lod to imgui cubemap shader.

Branimir Karadzic пре 11 година
родитељ
комит
51268e11a0
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      examples/common/imgui/fs_imgui_cubemap.sc

+ 2 - 1
examples/common/imgui/fs_imgui_cubemap.sc

@@ -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);
 }