jjLAYERREFLECTION class no handles JJ2+
Properties of the reflection effect of a layer, see jjLAYER::reflection
The values are shared with the other texture styles of the same layer, see jjLAYERWARPHORIZON, except tintColor. The tint opacity, the distance and the distortion are stored in the red, green and blue of the fade color.
Properties
- bool blur C++
- Whether the reflection is blurred horizontally,
falseby default - uint8 distance
- How far away the reflecting plane appears, higher values make the texture smaller, 0 by default
- uint8 distortion
- How strongly the texture ripples the mirrored image, 0 (a clean mirror) by default
- float fadePositionX
- The horizontal position of the vanishing point as a fraction of the view, 0.5 by default
- uint8 tintColor C++
- The palette entry of the tint drawn over the reflection, 192 by default
- uint8 tintOpacity
- The opacity of the tintColor drawn over the reflection, 0 (no tint) by default
- float top
- The vertical position of the horizon as a fraction of the view