2014-10-03 08: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-04 01:19:39 +04:00
|
|
|
uniform float u_imageLod;
|
2014-10-03 08:29:14 +04:00
|
|
|
SAMPLERCUBE(s_texColor, 0);
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2014-10-04 01:19:39 +04:00
|
|
|
gl_FragColor = textureCubeLod(s_texColor, v_normal, u_imageLod);
|
2014-10-03 08:29:14 +04:00
|
|
|
}
|