2019-02-17 18:50:26 +03:00
|
|
|
$input v_texcoord0
|
|
|
|
|
|
|
|
/*
|
2020-01-15 08:37:06 +03:00
|
|
|
* Copyright 2011-2020 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>
|
|
|
|
|
2019-02-19 00:40:41 +03:00
|
|
|
FRAMEBUFFER_IMAGE2D_RW(s_light, rgba8, 0);
|
2019-02-17 18:50:26 +03:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
ivec2 coord = ivec2(gl_FragCoord.xy);
|
2019-02-19 00:40:41 +03:00
|
|
|
imageStore(s_light, coord, vec4(0.0, 0.0, 0.0, 0.0));
|
2019-02-17 18:50:26 +03:00
|
|
|
}
|