bgfx/examples/common/imgui/fs_imgui_image.sc
Branimir Karadžić c89c5d2ca9 Cleanup.
2014-08-11 22:02:46 -07:00

17 lines
341 B
Scala

$input v_texcoord0
/*
* Copyright 2014 Dario Manesku. All rights reserved.
* License: http://www.opensource.org/licenses/BSD-2-Clause
*/
#include <bgfx_shader.sh>
uniform float u_imageLod;
SAMPLER2D(s_texColor, 0);
void main()
{
vec4 color = texture2DLod(s_texColor, v_texcoord0, u_imageLod);
gl_FragColor = vec4(color.xyz, 1.0);
}