[@bgolus]
Straight to the point :
I have :
- game is pre-built, not editable but can be added on
- game scene with main game camera that i can affect via code
- game objects with their respective material/shaders
- no control over shaders/materials of objects in game scene
Given above conditions - is it possible to add new camera, and via camera shader (or other technique), manipulate scene display such that i can partially show multiple targeted objects in scene as if they are sliced like in CAD software on arbitrary plane.
I was looking for this effect and closest thing to it is “scene compositor”.
Another way to describe it is visual effect of some plastic part being printed on 3D printer.
Also i’m not worried about showing hollow insides of game objects (the backface culling), i’ll make slicing plane to cover that up.
ADDED:
- forgot to mention that it would be good if this could have effect on all passes in shaders used by scene gameobjects, including shadowcaster.
- found this similar topic with some detail
Set global stencil test regardless of shader (command buffer?) - #2 by Zarenityx