Indeed, I used it to derive a particular behaviour for directional lights, and realized I have to rewrite many parts because it is not written as to be inherited.
For instance the PlaneOptimalShadowCameraSetup class has private members. The FocusedShadowCameraSetup has protected members but that are non virtual. So you have to rewrite getCamera() in order to have the right overloaded functions be called.
Just a matter of "protected" instead of "private" and some virtual functions as well...
More extensible ShadowCameraSetup
-
claustre
- Goblin
- Posts: 278
- Joined: Thu Mar 23, 2006 10:35 am
- Location: Toulouse, France
- Contact:
- sinbad
- OGRE Retired Team Member

- Posts: 19269
- Joined: Sun Oct 06, 2002 11:19 pm
- Location: Guernsey, Channel Islands
- x 67
- Contact:
