From 80c7b93987a1af10d394370fd7afd56001590d72 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 27 Sep 2026 14:23:23 +0530 Subject: More screenshots --- screenshot/seigaiha.SeigaihaProgram.png | Bin 0 -> 497828 bytes screenshot/warping.WarpingProgram.png | Bin 0 -> 4718308 bytes src/main/kotlin/warping/WarpingProgram.kt | 21 +++++++++++++++------ templates/glsl/kotlin/Program.kt | 16 ++++++++++++---- 4 files changed, 27 insertions(+), 10 deletions(-) create mode 100644 screenshot/seigaiha.SeigaihaProgram.png create mode 100644 screenshot/warping.WarpingProgram.png diff --git a/screenshot/seigaiha.SeigaihaProgram.png b/screenshot/seigaiha.SeigaihaProgram.png new file mode 100644 index 0000000..0ae8836 Binary files /dev/null and b/screenshot/seigaiha.SeigaihaProgram.png differ diff --git a/screenshot/warping.WarpingProgram.png b/screenshot/warping.WarpingProgram.png new file mode 100644 index 0000000..3a6e463 Binary files /dev/null and b/screenshot/warping.WarpingProgram.png differ diff --git a/src/main/kotlin/warping/WarpingProgram.kt b/src/main/kotlin/warping/WarpingProgram.kt index a84f335..f1cb991 100644 --- a/src/main/kotlin/warping/WarpingProgram.kt +++ b/src/main/kotlin/warping/WarpingProgram.kt @@ -10,10 +10,18 @@ import phenax.utils.* fun main() = application { recordDuration(5.seconds()) - configure { - width = 640 - height = 480 - windowResizable = false + if (recordingEnabled || screenshotEnabled) { + configure { + width = 1920 + height = 1080 + windowResizable = false + } + } else { + configure { + width = 640 + height = 360 + windowResizable = false + } } oliveProgram { @@ -21,7 +29,7 @@ fun main() = application { val outputBuffer = colorBuffer(width, height, type = ColorType.UINT8) - val size = Math.max(width, height) * 2; + val size = Math.max(width, height) * 2 val noiseBuffer = colorBuffer(size, size, type = ColorType.UINT8) val noiseFilter = SimplexNoise3D() noiseFilter.scale = Vector3.ONE * 2.4 @@ -29,7 +37,8 @@ fun main() = application { noiseFilter.premultipliedAlpha = true extend { - noiseFilter.seed = Vector3(0.01 * Math.sin(seconds), 0.01 * Math.cos(seconds), 0.006 * seconds) + noiseFilter.seed = + Vector3(0.01 * Math.sin(seconds), 0.01 * Math.cos(seconds), 0.006 * seconds) // noiseFilter.seed = Vector3(0.01, 0.01, 0.001) noiseFilter.apply(emptyArray(), noiseBuffer) cs.image("noise_texture", 1, noiseBuffer.imageBinding(0, ImageAccess.READ)) diff --git a/templates/glsl/kotlin/Program.kt b/templates/glsl/kotlin/Program.kt index 3e436e8..08b74d2 100644 --- a/templates/glsl/kotlin/Program.kt +++ b/templates/glsl/kotlin/Program.kt @@ -10,10 +10,18 @@ import phenax.utils.* fun main() = application { recordDuration(5.seconds()) - configure { - width = 640 - height = 480 - windowResizable = false + if (recordingEnabled || screenshotEnabled) { + configure { + width = 1920 + height = 1080 + windowResizable = false + } + } else { + configure { + width = 640 + height = 360 + windowResizable = false + } } oliveProgram { -- cgit v1.3.1