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..