A Pen by Andriy Rodzyk on CodePen.
This file contains hidden or 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
| uniform shader iChunk; | |
| uniform float2 iChunkSize; | |
| uniform float2 iChunkOffset; | |
| uniform float2 iContentSize; | |
| uniform float2 iMouse; | |
| half4 main(float2 xy) { | |
| float pixelSize = 4; | |
| float2 pixelPos = floor(xy / pixelSize) * pixelSize; | |
| half4 color = iChunk.eval(pixelPos); |
This file contains hidden or 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
| :root { | |
| --hue: 243.040; | |
| --swatch-1: oklch(97.1% 0.02 var(--hue)); | |
| --swatch-2: oklch(87.24% 0.07 var(--hue)); | |
| --swatch-3: oklch(77.61% 0.1 var(--hue)); | |
| --swatch-4: oklch(67.84% 0.1 var(--hue)); | |
| --swatch-5: oklch(58.14% .1 var(--hue)); | |
| --swatch-6: oklch(48.38% 0.11 var(--hue)); /* #166496 - oklch(48.36% 0.107 243.04)*/ | |
| --swatch-7: oklch(42.83% .1 var(--hue)); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.