[orx-shade-styles Use parameter function for setting shader parameters in DemoImageFill03.kt

This commit is contained in:
Edwin Jakobs
2025-03-05 19:10:44 +01:00
parent a3080ccc7a
commit 9d5a56cad5

View File

@@ -18,7 +18,7 @@ fun main() = application {
extend {
drawer.shadeStyle = imageFill {
image = img
parameters["time"] = seconds
parameter("time", seconds)
domainWarpFunction = """vec2 if_domainWarp(vec2 p) { return p + vec2(cos(p.y * 20.0 + p_time), sin(p.x * 20.0 + p_time)) * 0.1; }"""
spreadMethodX = SpreadMethod.REFLECT
spreadMethodY = SpreadMethod.REFLECT