forked from OGRECave/ogre
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Samples: move some materials to Tests
so they are not installed
- Loading branch information
Showing
12 changed files
with
42 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
|
||
// Testing MRT | ||
compositor TestMRT | ||
{ | ||
technique | ||
{ | ||
// temporary texture (MRT!) | ||
// 4 sub-surfaces, all 32-bit | ||
texture mrt0 target_width target_height PF_BYTE_RGBA PF_BYTE_RGBA PF_BYTE_RGBA PF_BYTE_RGBA | ||
|
||
target mrt0 | ||
{ | ||
// Render scene using MRT-compatible material scheme | ||
input none | ||
material_scheme MRT | ||
pass clear | ||
{ | ||
|
||
} | ||
pass render_scene | ||
{ | ||
} | ||
} | ||
|
||
target_output | ||
{ | ||
input none | ||
pass render_quad | ||
{ | ||
// Renders a fullscreen quad | ||
material Ogre/MRTtest/quad | ||
// bind 4 MRT surfaces as texture inputs | ||
input 0 mrt0 0 | ||
input 1 mrt0 1 | ||
input 2 mrt0 2 | ||
input 3 mrt0 3 | ||
} | ||
|
||
} | ||
|
||
} | ||
} |