The renderer in the constructor is needed in order to create an GLBufferAttribute which is needed because BufferAttribute cannot be updated in the onBeforerRender callback (changes are seen in the next frame).
The renderer in the constructor is now optional. In case it is not specified, a temporary BufferAttribute is created, which is replaced when the renderer is accessed with the onAfterRender callback.
🚨⚠️ In case the renderer is not specified in the constructor, the first render will not be executed. ⚠️🚨
The renderer in the constructor is needed in order to create an
GLBufferAttribute
which is needed becauseBufferAttribute
cannot be updated in theonBeforerRender
callback (changes are seen in the next frame).The renderer in the constructor is now optional. In case it is not specified, a temporary
BufferAttribute
is created, which is replaced when the renderer is accessed with theonAfterRender
callback.🚨⚠️ In case the renderer is not specified in the constructor, the first render will not be executed. ⚠️🚨