🔧 Pass duration to kwin shaders
This commit is contained in:
@@ -106,6 +106,13 @@ class BMW%NICK%Effect {
|
||||
uniform: "forOpening",
|
||||
from: 1.0,
|
||||
to: 1.0
|
||||
},
|
||||
{
|
||||
type: Effect.ShaderUniform,
|
||||
fragmentShader: this.shader,
|
||||
uniform: "uDuration",
|
||||
from: this.duration,
|
||||
to: this.duration
|
||||
}
|
||||
]
|
||||
});
|
||||
@@ -140,6 +147,13 @@ class BMW%NICK%Effect {
|
||||
uniform: "forOpening",
|
||||
from: 0.0,
|
||||
to: 0.0
|
||||
},
|
||||
{
|
||||
type: Effect.ShaderUniform,
|
||||
fragmentShader: this.shader,
|
||||
uniform: "uDuration",
|
||||
from: this.duration,
|
||||
to: this.duration
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user