Lua bindable depthbuffer

Lua bindable depthbuffer

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Lua bindable depthbuffer

Post by Beherith »

I tried to bind the depthbuffer, but failed miserably. My opengl knowledge is just barely enough to toy with shaders :(

Would it be possible to have a bindable depthbuffer, maybe even a surface normals render target?

I would like the depthbuffer - if possible - to be bindable through Lua.

Having a depthbuffer+normals buffer (+ the existing framebuffer) would allow a heap of post processing tricks currently used by many games (LOS, deferred lighting, bloom, deferred AA).

Thank you devs!
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Lua bindable depthbuffer

Post by jK »

already possible: gl.CreateTexture()
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Lua bindable depthbuffer

Post by Beherith »

I meant so that I dont have to incur the performance penalty of
glCopyToTexture(depthTexture, 0, 0, 0, 0, vsx, vsy )
Post Reply

Return to “Feature Requests”