Time for action—receiving and casting shadows
Our goal is to show you the construction of a scene by casting shadows on models. It always includes a specific shadow scene root, an inbuilt or custom shadow technique, and child nodes with a distinguishable receiving or casting mask. A normal scene can't be shadowed without adding a shadow scene as the parent, and on the contrary, a shadowed scene graph can either remove the osgShadow::ShadowedScene
root node or remove the shadow technique object (by simply setting a null one) applied to the node to exclude all shadow computations and effects. In this example, we just create and manage the scene graph under the shadow scene root, and make use of the predefined shadow mapping technique to render both ...
Get OpenSceneGraph 3.0 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.