Skip to content

Commit

Permalink
[BugFix] Fix default shader segmentation data
Browse files Browse the repository at this point in the history
  • Loading branch information
StoneT2000 committed Aug 21, 2024
1 parent d7abf93 commit 3779849
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mani_skill/render/shaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ class ShaderConfig:
"depth": (-data[..., [2]] * 1000).to(torch.int16),
"position": data[..., :3],
},
"Segmentation": lambda data: {"segmentation": data[..., 3][..., None]},
# note in default shader pack, 0 is visual shape / mesh, 1 is actor/link level, 2 is parallel scene ID, 3 is unused
"Segmentation": lambda data: {"segmentation": data[..., 1][..., None]},
},
),
"rt": ShaderConfig(
Expand Down

0 comments on commit 3779849

Please sign in to comment.