NativeRenderingPlugin icon indicating copy to clipboard operation
NativeRenderingPlugin copied to clipboard

SUPPORT_OPENGL_ES - fix for modify vertex buffer

Open nfynt opened this issue 2 years ago • 0 comments

Due to unavailability of glMapBuffer and glUnmapBuffer on GLES version 3.0 and before, the current implementation simply skips the update vertex buffer update.

This fix maintains a temporary CPU bound m_VertexBufferPtr which is used to update the Unity mesh bufferHandle using glBufferSubData. Thus fixing mesh vertex buffer modify for OpenGLES support, affecting platforms - WebGL, Android, linux embed, and iOS.

nfynt avatar Apr 01 '23 14:04 nfynt