From bfd7af6c4772c68f001c5c121b62b134bbca04e4 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Tue, 20 Oct 2026 23:34:05 +0530 Subject: Add placenta --- templates/glsl/kotlin/Program.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'templates') 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("<>") 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) -- cgit v1.3.1