Is it possible to get access to retrieving texture ids from a native extension and use open gl calls on it? I’m working on a custom lighting and shadowing system and I need to upload a fair bit of data to the gpu, it wouldn’t be feasible with the currently exposed render script pipeline.
It’s currently not possible no.
You can create your own OpenGL device to create/use your own textures, but communicating them back to the engine via Lua and resource.set_texture(), but it’s not extremely performant.
We will discuss this further in the engine to decide upon a good way forward, but it will take some time and it not likely to happen soon.
At the moment you can guess texture id, its not pretty, but it will allow you to experiment until a better way is implemented. Try numbers from 1 to 10 and see what happens.