bgfx/examples/common/imgui/fs_imgui_cubemap.sc
2014-10-03 14:19:39 -07:00

16 lines
312 B
Python

$input v_normal
/*
* Copyright 2011-2013 Branimir Karadzic. All rights reserved.
* License: http://www.opensource.org/licenses/BSD-2-Clause
*/
#include <bgfx_shader.sh>
uniform float u_imageLod;
SAMPLERCUBE(s_texColor, 0);
void main()
{
gl_FragColor = textureCubeLod(s_texColor, v_normal, u_imageLod);
}