bgfx/examples/21-deferred/fs_deferred_clear_uav.sc
Бранимир Караџић 82f56b5987 Happy New Year!
2020-01-14 21:37:06 -08:00

18 lines
367 B
Python

$input v_texcoord0
/*
* Copyright 2011-2020 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
*/
#include "common.sh"
#include <bgfx_compute.sh>
FRAMEBUFFER_IMAGE2D_RW(s_light, rgba8, 0);
void main()
{
ivec2 coord = ivec2(gl_FragCoord.xy);
imageStore(s_light, coord, vec4(0.0, 0.0, 0.0, 0.0));
}