diff options
| author | Akshay Nair <phenax5@gmail.com> | 2026-09-27 13:44:49 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2026-09-28 01:48:05 +0530 |
| commit | dfa6bcc3db9c65dd0845b952b5f1afbf374a423e (patch) | |
| tree | b4c4ad78fb47474bd0ca064abeae15f470268132 /src/main/kotlin/vacation | |
| parent | 5f41d4cded56121af66b18c232c7f557ab803f94 (diff) | |
| download | art-playground-openrndr-dfa6bcc3db9c65dd0845b952b5f1afbf374a423e.tar.gz art-playground-openrndr-dfa6bcc3db9c65dd0845b952b5f1afbf374a423e.zip | |
Coco for coconut trees
Diffstat (limited to '')
| -rw-r--r-- | src/main/kotlin/vacation/VacationProgram.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/kotlin/vacation/VacationProgram.kt b/src/main/kotlin/vacation/VacationProgram.kt index b4d9d12..0ed8c70 100644 --- a/src/main/kotlin/vacation/VacationProgram.kt +++ b/src/main/kotlin/vacation/VacationProgram.kt @@ -26,6 +26,7 @@ fun main() = application { oliveProgram { val cs by liveComputeShader("vacation") + val antialiasingEnabled = false val outputBuffer = colorBuffer(width, height, type = ColorType.UINT8) @@ -42,6 +43,7 @@ fun main() = application { cs.image("noise_texture", 1, noiseBuffer.imageBinding(0, ImageAccess.READ)) cs.uniform("seconds", seconds) + cs.uniform("enable_antialiasing", antialiasingEnabled || recordingEnabled || screenshotEnabled) cs.image("output_image", 0, outputBuffer.imageBinding(0, ImageAccess.WRITE)) cs.execute(outputBuffer.width, outputBuffer.height, 1) drawer.image(outputBuffer) |
