mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Fixed framebuffer RW example.
This commit is contained in:
@@ -8,10 +8,10 @@ $input v_texcoord0
|
||||
#include "common.sh"
|
||||
#include <bgfx_compute.sh>
|
||||
|
||||
IMAGE2D_RW(s_lights, rgba8, 1);
|
||||
FRAMEBUFFER_IMAGE2D_RW(s_light, rgba8, 0);
|
||||
|
||||
void main()
|
||||
{
|
||||
ivec2 coord = ivec2(gl_FragCoord.xy);
|
||||
imageStore(s_lights, coord, vec4(0.0, 0.0, 0.0, 0.0));
|
||||
imageStore(s_light, coord, vec4(0.0, 0.0, 0.0, 0.0));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user