-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* render test to capture issue * forgotten to move back caculations to fragment shader * review fixes and opacity multiplied in fragment now
- Loading branch information
Showing
4 changed files
with
113 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+31 KB
...der-tests/lighting-3d-mode/fill-extrusion/flood-light-fixed-radius/expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
84 changes: 84 additions & 0 deletions
84
...egration/render-tests/lighting-3d-mode/fill-extrusion/flood-light-fixed-radius/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
{ | ||
"version": 8, | ||
"metadata": { | ||
"test": { | ||
"width": 512, | ||
"height": 512, | ||
"allowed": 0.0006 | ||
} | ||
}, | ||
"lights": [ | ||
{ | ||
"type": "ambient", | ||
"id": "environment", | ||
"properties": { | ||
"color": "rgba(200.0, 200.0, 255.0, 1.0)", | ||
"intensity": 0.4 | ||
} | ||
}, | ||
{ | ||
"type": "directional", | ||
"id": "sun_light", | ||
"properties": { | ||
"color": "rgba(230.0, 230.0, 230.0, 1.0)", | ||
"intensity": 0.9, | ||
"direction": [ | ||
200.0, | ||
40.0 | ||
] | ||
} | ||
} | ||
], | ||
"sources": { | ||
"mapbox": { | ||
"type": "vector", | ||
"maxzoom": 16, | ||
"tiles": [ | ||
"local://tiles/{z}-{x}-{y}.mvt" | ||
] | ||
} | ||
}, | ||
"pitch": 66.5, | ||
"zoom": 17.5, | ||
"bearing": 320, | ||
"center": [ | ||
-74.0125, | ||
40.7152 | ||
], | ||
"layers": [ | ||
{ | ||
"id": "background", | ||
"type": "background", | ||
"paint": { | ||
"background-color": "lightgray" | ||
} | ||
}, | ||
{ | ||
"id": "extrusion", | ||
"type": "fill-extrusion", | ||
"source": "mapbox", | ||
"source-layer": "building", | ||
"paint": { | ||
"fill-extrusion-color": "white", | ||
"fill-extrusion-height": [ | ||
"get", | ||
"height" | ||
], | ||
"fill-extrusion-opacity": 1.0, | ||
"fill-extrusion-wall-flood-light-radius": 20, | ||
"fill-extrusion-flood-light-color": [ | ||
"rgb", | ||
255, | ||
255, | ||
0 | ||
], | ||
"fill-extrusion-flood-light-intensity": 0.7, | ||
"fill-extrusion-ambient-occlusion-radius": 1, | ||
"fill-extrusion-ambient-occlusion-intensity": 0.4 | ||
}, | ||
"layout": { | ||
"fill-extrusion-edge-radius": 0.99 | ||
} | ||
} | ||
] | ||
} |