aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/vacation
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2026-09-27 13:44:49 +0530
committerAkshay Nair <phenax5@gmail.com>2026-09-28 01:48:05 +0530
commit27dbc20252f3954b2a2cd2d5ea3a0dd9e570ba40 (patch)
tree903f2da42762d60f6c87c1e60a6ffdea78bb0ff4 /src/main/kotlin/vacation
parent43b878eef2ba2ae25eeed673be09927a6c357b1e (diff)
downloadart-playground-openrndr-27dbc20252f3954b2a2cd2d5ea3a0dd9e570ba40.tar.gz
art-playground-openrndr-27dbc20252f3954b2a2cd2d5ea3a0dd9e570ba40.zip
Coco for coconut trees
Diffstat (limited to 'src/main/kotlin/vacation')
-rw-r--r--src/main/kotlin/vacation/VacationProgram.kt2
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)