aboutsummaryrefslogtreecommitdiff
path: root/templates/glsl
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2026-10-20 23:34:05 +0530
committerAkshay Nair <phenax5@gmail.com>2026-10-20 23:34:05 +0530
commitbfd7af6c4772c68f001c5c121b62b134bbca04e4 (patch)
tree83141b998d5bf1abd41bb57f47b394abbfbd579d /templates/glsl
parenta2cbcea7144380cfa51d050530251c1dd9bc4d1a (diff)
downloadart-playground-openrndr-bfd7af6c4772c68f001c5c121b62b134bbca04e4.tar.gz
art-playground-openrndr-bfd7af6c4772c68f001c5c121b62b134bbca04e4.zip
Add placenta
Diffstat (limited to '')
-rw-r--r--templates/glsl/kotlin/Program.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/glsl/kotlin/Program.kt b/templates/glsl/kotlin/Program.kt
index f0447f2..7aab7ff 100644
--- a/templates/glsl/kotlin/Program.kt
+++ b/templates/glsl/kotlin/Program.kt
@@ -25,6 +25,7 @@ fun main() = application {
}
oliveProgram {
+ val enableAntialiasing = captureEnabled
val cs by liveComputeShader("<<name>>")
val outputBuffer = colorBuffer(width, height, type = ColorType.UINT8)
@@ -41,6 +42,7 @@ fun main() = application {
noiseFilter.apply(emptyArray(), noiseBuffer)
cs.image("noise_texture", 1, noiseBuffer.imageBinding(0, ImageAccess.READ))
+ cs.uniform("enable_antialiasing", enableAntialiasing)
cs.uniform("seconds", seconds)
cs.image("output_image", 0, outputBuffer.imageBinding(0, ImageAccess.WRITE))
cs.execute(outputBuffer.width, outputBuffer.height, 1)