Ybalrid / Annwvyn

Annwvyn C++ Open Source designed-for-VR game engine and application developement framework
MIT License
41 stars 7 forks source link

[OGRE21] Get Shadows working #93

Closed Ybalrid closed 7 years ago

Ybalrid commented 7 years ago

The only way now to have shadows in Ogre is to use a "shadow node" on the Compistor. There's multiple shadow technique. Have to see the differences, but people seems to recomend using PSSM shadow.

Ybalrid commented 7 years ago

Shadows works with a custom PSSM based shadow node. Show ScreenShot :

test_2017-02-23_22-19-48 test_2017-02-24_01-21-22

I still have to play around with the values and methods of shadows, but we're using a custom one.

Ybalrid commented 7 years ago

Note to self : The shadows seems to use the near/far values of the cameras. And so you need to pupulate them with the correct values, even when using a custom projection matrix