Skip to content

Commit

Permalink
Samples: move some materials to Tests
Browse files Browse the repository at this point in the history
so they are not installed
  • Loading branch information
paroj committed Aug 17, 2024
1 parent e1c6f9c commit 3a291fd
Show file tree
Hide file tree
Showing 12 changed files with 42 additions and 42 deletions.
42 changes: 0 additions & 42 deletions Samples/Media/materials/scripts/Examples.compositor
Original file line number Diff line number Diff line change
Expand Up @@ -596,48 +596,6 @@ compositor "Gaussian Blur"
}
}

// 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
}

}

}
}

//Radial blur effect
compositor "Radial Blur"
{
Expand Down
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.
42 changes: 42 additions & 0 deletions Tests/Media/tests.compositor
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
}

}

}
}

0 comments on commit 3a291fd

Please sign in to comment.