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 | 27dbc20252f3954b2a2cd2d5ea3a0dd9e570ba40 (patch) | |
| tree | 903f2da42762d60f6c87c1e60a6ffdea78bb0ff4 /src/main/kotlin | |
| parent | 43b878eef2ba2ae25eeed673be09927a6c357b1e (diff) | |
| download | art-playground-openrndr-27dbc20252f3954b2a2cd2d5ea3a0dd9e570ba40.tar.gz art-playground-openrndr-27dbc20252f3954b2a2cd2d5ea3a0dd9e570ba40.zip | |
Coco for coconut trees
Diffstat (limited to 'src/main/kotlin')
| -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) |
