Commit 79ffc9f2 authored by iSergio's avatar iSergio
Browse files

Added a 'renderable' property to 'Fog' to disable its visual rendering while...

Added a 'renderable' property to 'Fog' to disable its visual rendering while preserving tiles culling at a distance. Add minimumBrightness property.
parent 07997805
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -42,6 +42,20 @@ public class Fog {
     */
    @JsProperty
    public boolean enabled;
    /**
     * The minimum brightness of the fog color from lighting. A value of 0.0 can cause the fog to be
     * completely black. A value of 1.0 will not affect the brightness at all.
     * Default: 0.03
     */
    @JsProperty
    public double minimumBrightness;
    /**
     * true if fog is renderable in shaders, false otherwise. This allows to benefits from optimized
     * tile loading strategy based on fog density without the actual visual rendering.
     * Default: true
     */
    @JsProperty
    public boolean renderable;
    /**
     * A factor used to increase the screen space error of terrain tiles when they
     * are partially in fog. The effect is to reduce the number of terrain tiles