Modifying vertex buffer on WebGL is disabled
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- cpp, unity
- Domain
- computer-graphics, web-dev
Research direction
Start with PluginSource/source/RenderAPI_OpenGLCoreES.cpp lines 280-294 and reproduce the plugin sample under WebGL. Investigate the SUPPORT_OPENGL_ES check and the reported GL_WRITE_ONLY build error. Done means the sample mesh is no longer flat in WebGL and the Unity build succeeds.
Written by the indexing model from the issue text.
Description
Hi, I'm trying to run the plugin sample under WebGL. It works fine in Editor, but the mesh is completely flat in web.
Looking at the code, it seems that modifying the mesh was intentionally disabled for WebGL.
When removing the check on SUPPORT_OPENGL_ES, I get the following error when building from Unity :
'GL_WRITE_ONLY' is undefined

- Dominant language
- C
- Stars
- 946
- Forks
- 186
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Unity-Technologies/NativeRenderingPlugin
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 1/5 Under an hour Newbie friendliness 55/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
Unity-Technologies/NativeRenderingPlugin#46 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 50/100
Unity-Technologies/NativeRenderingPlugin#42 · 2 comments ·
All issues in Unity-Technologies/NativeRenderingPlugin
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
EchoTools/nevr-runtime#117 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
DarkFlippers/qUnleashed#240 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
AFLplusplus/AFLplusplus#2899 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
HarbourMasters/Shipwright#7320 ·
Maintainers usually reply within 1 day