OSG shaders
Posted: 18 Feb 2016, 00:38
Yay, a new old feature!
... object shaders (and thus normal maps / bump maps) are back! There are still some minor issues that need fixing (e.g. the glow effect on enchanted objects), other than that, works great... sadly the performance isn't as good as I'd hoped, but I should be able to improve it by tweaking the state graph. To be fair though, enabling shaders in the Ogre version also had a considerable FPS hit (about 40% it seems).
As always, the code is on my github if you want to give it a spin before it hits the masses.
Still to do before I make a pull request:
- minor FIXMEs
- terrain shaders
- improve performance
... object shaders (and thus normal maps / bump maps) are back! There are still some minor issues that need fixing (e.g. the glow effect on enchanted objects), other than that, works great... sadly the performance isn't as good as I'd hoped, but I should be able to improve it by tweaking the state graph. To be fair though, enabling shaders in the Ogre version also had a considerable FPS hit (about 40% it seems).
As always, the code is on my github if you want to give it a spin before it hits the masses.
Still to do before I make a pull request:
- minor FIXMEs
- terrain shaders
- improve performance