bgfx/examples/21-deferred/fs_deferred_clear_uav.sc

18 lines
357 B
Python
Raw Normal View History

2019-02-17 18:50:26 +03:00
$input v_texcoord0
/*
2019-02-18 08:48:20 +03:00
* Copyright 2011-2019 Branimir Karadzic. All rights reserved.
2019-02-17 18:50:26 +03:00
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
*/
#include "common.sh"
#include <bgfx_compute.sh>
IMAGE2D_RW(s_lights, rgba8, 1);
void main()
{
ivec2 coord = ivec2(gl_FragCoord.xy);
imageStore(s_lights, coord, vec4(0.0, 0.0, 0.0, 0.0));
}