Skip to content

Commit e07248a

Browse files
committed
Use proper elapsed time for the shader
1 parent 70b5b01 commit e07248a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gameobjects/shader/Shader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ var Shader = new Class({
500500
this.uniforms.resolution.value.x = this.width;
501501
this.uniforms.resolution.value.y = this.height;
502502

503-
this.uniforms.time.value = this.renderer.game.loop.time / 1000;
503+
this.uniforms.time.value = this.renderer.game.loop.getDuration();
504504

505505
if (this.pointer)
506506
{

0 commit comments

Comments
 (0)