~ubuntu-branches/ubuntu/hardy/codeblocks/hardy-backports

« back to all changes in this revision

Viewing changes to src/sdk/resources/lexers/lexer_OgreCompositor.sample

  • Committer: Bazaar Package Importer
  • Author(s): Michael Casadevall
  • Date: 2008-07-17 04:39:23 UTC
  • Revision ID: james.westby@ubuntu.com-20080717043923-gmsy5cwkdjswghkm
Tags: upstream-8.02
ImportĀ upstreamĀ versionĀ 8.02

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/// Black and white effect
 
2
compositor B&W
 
3
{
 
4
    technique
 
5
    {
 
6
        // Temporary textures
 
7
        texture scene target_width target_height PF_A8R8G8B8
 
8
    
 
9
        target scene
 
10
        {
 
11
            // Render output from previous compositor (or original scene)
 
12
            input previous
 
13
        }
 
14
 
 
15
        target_output
 
16
        {
 
17
            // Start with clear output
 
18
            input none
 
19
            // Draw a fullscreen quad with the black and white image
 
20
            pass render_quad
 
21
            {
 
22
                // Renders a fullscreen quad with a material
 
23
                material Ogre/Compositor/BlackAndWhite
 
24
                input 0 scene
 
25
            }
 
26
        }
 
27
    }
 
28
}
 
 
b'\\ No newline at end of file'