Parallax mapping method is faking dynamic texture which gives us the impression of more complex models. It is useful for walls, rocks, grounds, etc.
This patch is a simplified version of Angelo Miner patch about parallax mapping. If this option is enabled in texture panel the user will have to pass a texture with a alpha channel cooresponding to depth of the texture.
The UI for parallax is composed of 4 values:
- Height Bias
- Step
- Depth
- Discard Edges
To fix the majority of the artefacts, an interpolation method was implemented, it smooths between previous and next parallax step considering the weight between the both steps. It let us use 5 steps instead of 40.
The code was inspired of http://www.learnopengl.com/#!Advanced-Lighting/Parallax-Mapping.
Authors: Angelo Miner, Ulysse Martin, Diego Lopes and Tristan Porteries.
