Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix selection buffer material script #456

Merged
merged 2 commits into from
Oct 13, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions ogre2/src/media/materials/scripts/selection_buffer.material
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@
*
*/

vertex_program selection_buffer_vs glsl
{
// reuse depth camera vertex shader
source depth_camera_vs.glsl
default_params
{
param_named_auto worldViewProj worldviewproj_matrix
}
}

fragment_program selection_buffer_fs glsl
{
source selection_buffer_fs.glsl
Expand All @@ -34,9 +44,7 @@ material SelectionBuffer
pass
{
// Make this pass use the vertex shader defined above
vertex_program_ref DepthCameraVS
{
}
vertex_program_ref selection_buffer_vs { }

// Make this pass use the pixel shader defined above
fragment_program_ref selection_buffer_fs { }
Expand Down