bgfx/examples/common/imgui/fs_imgui_cubemap.sc

17 lines
312 B
Python
Raw Normal View History

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