bgfx/examples/21-deferred/fs_deferred_clear_uav.sc

17 lines
334 B
Python
Raw Normal View History

2019-02-17 18:50:26 +03:00
$input v_texcoord0
/*
2022-01-15 22:59:06 +03:00
* Copyright 2011-2022 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE
2019-02-17 18:50:26 +03:00
*/
#include <bgfx_compute.sh>
IMAGE2D_RW(i_light, rgba8, 2);
2019-02-17 18:50:26 +03:00
void main()
{
ivec2 coord = ivec2(gl_FragCoord.xy);
imageStore(i_light, coord, vec4(0.0, 0.0, 0.0, 0.0) );
2019-02-17 18:50:26 +03:00
}