FrameBuffer Read/Write access WIP

This commit is contained in:
Hugo Amnov
2019-02-17 16:50:26 +01:00
parent 50409d2999
commit 58563b0b1b
15 changed files with 258 additions and 147 deletions

View File

@@ -0,0 +1,17 @@
$input v_texcoord0
/*
* Copyright 2011-2018 Branimir Karadzic. All rights reserved.
* 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));
}