Add palette system
This commit is contained in:
parent
f60ae06f59
commit
98d1fc9ca2
19 changed files with 196 additions and 113 deletions
|
|
@ -16,7 +16,7 @@ export class Circle extends Drawable {
|
|||
myMinDistance = min(myMinDistance, dist);
|
||||
}
|
||||
minDistance = min(minDistance, myMinDistance);
|
||||
color = mix(2.0, color, step(
|
||||
color = mix(1.0 / {paletteSize}, color, step(
|
||||
distanceNdcPixelSize + SURFACE_OFFSET,
|
||||
myMinDistance
|
||||
));
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ export class Tunnel extends Drawable {
|
|||
myMinDistance = min(myMinDistance, currentDistance);
|
||||
}
|
||||
|
||||
color = mix(2.0, color, step(
|
||||
color = mix(2.0 / {paletteSize}, color, step(
|
||||
distanceNdcPixelSize + SURFACE_OFFSET,
|
||||
myMinDistance
|
||||
));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue