🔧 Use vec2 for size uniform
This commit is contained in:
+2
-3
@@ -492,9 +492,8 @@ class Extension {
|
||||
shader.set_uniform_float(
|
||||
shader.get_uniform_location('uTime'), 1,
|
||||
[testMode ? duration / 2 : 0.001 * t.get_elapsed_time()]);
|
||||
shader.set_uniform_float(shader.get_uniform_location('uSizeX'), 1, [actor.width]);
|
||||
shader.set_uniform_float(shader.get_uniform_location('uSizeY'), 1,
|
||||
[actor.height]);
|
||||
shader.set_uniform_float(shader.get_uniform_location('uSize'), 2,
|
||||
[actor.width, actor.height]);
|
||||
});
|
||||
|
||||
// Remove the effect if the animation finished or was interrupted.
|
||||
|
||||
Reference in New Issue
Block a user