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
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