diff options
Diffstat (limited to 'src/main/kotlin')
| -rw-r--r-- | src/main/kotlin/warping/WarpingProgram.kt | 21 |
1 files changed, 15 insertions, 6 deletions
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)) |
