How to switch shaders at runtime? #803
Closed
YangShen398
started this conversation in
General
Replies: 2 comments 2 replies
-
Have a look at vsgstateswitch: https://github.com/vsg-dev/vsgExamples/blob/master/examples/state/vsgstateswitch/vsgstateswitch.cpp This example locates the GrpahicsPipeline in the scene graph and then uses a StateSwitch to enable each View to have it's own state, with the left view using the original state, and the right view using a wireframe version, |
Beta Was this translation helpful? Give feedback.
0 replies
-
Circling back here as I have made some progress. I have some questions regarding the use of vsg::Operation + vsg::OperationThreads.
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I am using vsgXchange built with assimp to read 3D model files such as stl and obj. I would like to have different visualizations such as displaying all the edges in a mesh and display normal vectors. My understanding is that I need to use a different shader and perhaps change some configurations in graphics pipeline. How do I do that dynamically at runtime? Or I am asking the wrong question. I was looking into vsgExample. Which one is the best example?
Thanks,
Cam
Beta Was this translation helpful? Give feedback.
All reactions