gz-rendering
gz-rendering copied to clipboard
Point lights do not respect the material's cast shadows property (ogre2)
Environment
-
OS Version: Ubuntu 22.04
-
Source or binary build? Source, Harmonic, gz-sim8 branch.
-
If this is a GUI or sensor rendering bug, describe your GPU and rendering system. Otherwise delete this section.
- Rendering plugin: [ogre2].
Description
- Expected behavior: Point light should not cast shadows on objects that has a material with CastShadows set to
false
- Actual behavior: Point light ignores cast shadows property.
Steps to reproduce
With gz-sim,
-
gz sim -v 4 shapes.sdf
- Add a point light using the GUI (via the
Lights
GUI plugin if not already open) - Click on the point light, go to the component inspector and set
Range
to 10 and toggleCast shadows
to true. - Click on rotate icon in the transform control tool and select the box to see that the rotate visual casts shadows: