jnsmalm / pixi3d

The 3D renderer for PixiJS. Seamless integration with 2D applications.
https://pixi3d.org
MIT License
752 stars 43 forks source link

rendering instances bug fix #114

Closed GordonTombola closed 2 years ago

GordonTombola commented 2 years ago

Step 1: have 1 or more instances being rendered Step 2: render at least once Step 3: set all intances visibility/renderability to false Step 4: render again

expected behaviour

all instances are no longer rendered

what actually happens

whatever instances were visible in the previous frame are still visible

why?

because the instancing for loop would not make any form of update to the buffers, the buffers will keep the data from the previous frame until at least 1 instance is set to visibile/renderable