About Store Forum Documentation Contact



Post Reply 
Getting the Unlit, Normal buffers.
Author Message
georgatos7 Offline
Member

Post: #1
Getting the Unlit, Normal buffers.
Hey, is this the most efficient way to access the unlit and normal buffers/textures (or any similar ones) to send them in the shaders?
Can i access them directly in the shaders or they are getting overwritten?

//FOR UNLIT
Renderer.stage = RS_COLOR;
ImageRTPtr sourceRGBA = Renderer.get(Render);

//FOR NORMAL
Renderer.stage = RS_NORMAL;
ImageRTPtr sourceRGBA = Renderer.get(Render);

//FOR DEFAULT
Renderer.stage = RS_DEFAULT;
ImageRTPtr sourceRGBA = Renderer.get(Render);

Are those methods re-rendering the whole scene and are they affected by the scene's complexity (number of objects) or they are just outputting the buffers?
(This post was last modified: 01-15-2015 01:10 PM by georgatos7.)
01-15-2015 01:07 AM
Find all posts by this user Quote this message in a reply
Post Reply