Hey, so I'm currently trying to learn the GL library. It will not Render, Despite being on the camera and on the onPostRender() function. Info on it is difficult to come across, anyone got anything on it?
#GL rendering
1 messages · Page 1 of 1 (latest)
is GL even supported in HDRP? why do you want to use it? 🤔
Main reason I want to use it is primarily to improve my skills with unity, and I figured GL is a good start. I have done Graphics Programming in the past and I figured "hey, if I can do it out of engine, Surely I can create meshes inside of engine, right?"
and that's what I'm trying to do
The GL immediate mode is more for debugging but if you want to construct meshes I suggest sticking to the MeshAPI and using methods like:
https://docs.unity3d.com/6000.0/Documentation/ScriptReference/Graphics.RenderMeshIndirect.html
incorrect, modern OGL isn't immediate mode
immediate mode obsoleted since version 3
but you can still use the legacy apis if you want for compat reasons
that said, I've never seen ogl engines do glBegin/glEnd for more than a decade
Feels like OG immediate mode. Either case the performance seems garbo which I assume is you're popping the stack each frame and rebuilding everything unlike creating a command buffer and just calling draw every update.