**MATERIAL** fragment_program Ogre/Compositor/ToonFP asm { source toon.asm syntax ps_1_1 } material Ogre/Compositor/Toon { technique { pass { cull_hardware none cull_software none depth_func always_pass vertex_program_ref Ogre/Compositor/StdQuad_Tex2a_vp { } fragment_program_ref Ogre/Compositor/ToonFP { } texture_unit RT { tex_coord_set 0 tex_address_mode clamp filtering trilinear } } } } **COMPOSITOR** // Toon compositor Toon { technique { // Temporary textures texture rt0 target_width target_height PF_A8R8G8B8 target rt0 { // Render output from previous compositor (or original scene) input previous } target_output { // Start with clear output input none // Draw a fullscreen quad with the black and white image pass render_quad { // Renders a fullscreen quad with a material material Ogre/Compositor/Toon input 0 rt0 } } } }