Closed Trass3r closed 2 years ago
It is fine to support new texture types. Did you try this? If I remember correctly, it might need:
mat.setBoolean(“SteepParallax”, true);
mat.setFloat(“ParallaxHeight”, .05f);
No without lights (and good displacement maps) you can't really test it. Was just for future use.
Ok, ready for merge?
Looks like 0.05 is already the default: https://github.com/tonihele/OpenKeeper/blob/ef4cef00bad04c7bcc8d119df2b3c05a3083bd1b/assets/MatDefs/LightingSprite.j3md#L50
And without steep it just uses classical PM: https://github.com/tonihele/OpenKeeper/blob/163e77323138ec372ba1d9b6b3c05e3cb1394123/assets/Shaders/LightingSprite.frag#L100
I guess this is more interesting: https://github.com/tonihele/OpenKeeper/blob/ef4cef00bad04c7bcc8d119df2b3c05a3083bd1b/assets/MatDefs/LightingSprite.j3md#L46-L47
Ok, ready for merge?
Yeah.
RFC