OpenGL Texture Support?
-
OpenGL Texture Support?
It would be nice...But may be a lot of work!
Perhaps I am the only one who would want this.We already have buffers, and can even generate them using a peak node.
Theoretically this data could then be passed into a shader.
This shall likely be my approach for my current project, since I am trying to implement a flexible time graph 'level' visual! -
We've had shaders for a long time - https://docs.hise.audio/scripting/scripting-api/scriptshader/index.html
Won't work on new Apple devices though I don't think as they dropped OpenGL and use Metal instead
-
@d-healey said in OpenGL Texture Support?:
Won't work on new Apple devices
Are you sure? I made a plugin with a shader and works on my Mac mini M2.
-
@bendurso not sure at all
-
@d-healey opengl is still supported on macOS but there‘s no guarantee on how long this will be the case.
Textures cannot be loaded to the shader because the shaders in HISE are fragment shaders and you need vertex shaders for this, but you can pass around a buffer as uniform data and visualize it in the fragment shader.