Commit 19323b7
committed
Add overlay support to the model
Each chunk can now define an overlay. An overlay is drawn over the base
model, and can have its own `color`, `gradient`, and `mask` properties.
An overlay can be used to apply a pattern over the entire model at
once.
Using an overlay does have a performance impact because each polygon in
a chunk with an overlay gets duplicated. But it makes it dramatically
easier to apply a pattern over the entire model at once.
A demo of this functionality has been added, called "overlay". It is
not the nicest looking example, but it does demonstrate the
functionality well.1 parent bb2caa7 commit 19323b7
File tree
5 files changed
+453
-6
lines changed- demo/src
- overlay
5 files changed
+453
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments