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

[Metal] Fix depth camera sensor #535

Merged
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions ogre2/src/media/materials/scripts/depth_camera.material
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,13 @@ fragment_program DepthCameraFinalFS_Metal metal
{
source depth_camera_final_fs.metal
shader_reflection_pair_hint DepthCameraFinalVS_Metal

default_params
{
param_named inputTexture int 0

param_named_auto texResolution texture_size 0
}
}

// Unified shaders
Expand Down
7 changes: 7 additions & 0 deletions ogre2/src/media/materials/scripts/selection_buffer.material
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ fragment_program selection_buffer_fs_Metal metal
{
source selection_buffer_fs.metal
shader_reflection_pair_hint selection_buffer_vs_Metal
default_params
{
param_named colorTexture int 0
param_named depthTexture int 1

param_named_auto colorTexResolution texture_size 0
}
}

// Unified shaders
Expand Down