bgfx/examples/21-deferred/fs_deferred_clear_uav.sc

17 lines
328 B
Python
Raw Normal View History

2019-02-17 18:50:26 +03:00
$input v_texcoord0
/*
2023-01-14 21:05:12 +03:00
* Copyright 2011-2023 Branimir Karadzic. All rights reserved.
2022-01-15 22:59:06 +03:00
* 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()
{
2023-10-01 01:49:11 +03:00
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
}