Home | Documentation | Atomic Chat | Github

Allow access to buffers using the Camera (or its render target) object


#1

In Unity you can access for example the zbuffer and also camera/screen space normals from the Camera object. I personally find that extremely handy and certainly would like to see something similar in Atomic.
Some data has to be transformed, so we could even do as in Unity where you have to activate the generation of the data in the Camera object, or perhaps we could do something entirely dynamic where each access to the data checks whether the data was generated for the current frame and if not generates and returns it. Also, allow access to the rendertarget data and maybe gbuffer states from the camera for convenience, and possibly render events and other goodies, but this has to be discussed in detail.