using compositor

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
andreahmed
Kobold
Posts: 38
Joined: Wed Dec 31, 2014 2:26 am
x 2

using compositor

Post by andreahmed »

hi all,
I have a depth image that I correctly get and I have a shader that does work on that depth image.

I have a compositor

Code: Select all

compositor DepthMap
{
    technique
    {
        // Temporary textures
     
        texture ssao target_width  target_height  PF_R8G8B8
        texture scene target_width target_height PF_R8G8B8A8
       

        target scene
        {
            input previous
        }
        
         

        target ssao
        {
            input none

            pass clear
            {
            }

            pass render_quad
            {
                material Ogre/Compositor/SSAO
                
            }
        }

    
       target_output
        {
            input none

            pass render_quad
            {
                
                 material combine
                 input 0 scene 
                 input 7 ssao
             
            }
        }
    }
}

as you see material SSAO has no input. however I set the input to texture unit 0 as the depth image.

How would I get the SSAO material working correctly into the compositor..
Post Reply