Skip to content

Instantly share code, notes, and snippets.

@leochocolat
Created April 19, 2020 17:32
Show Gist options
  • Save leochocolat/25f09f992a22a61c90901673666a78f3 to your computer and use it in GitHub Desktop.
Save leochocolat/25f09f992a22a61c90901673666a78f3 to your computer and use it in GitHub Desktop.
_tick() {
this._updateDeltaTime();
this._cylinderMesh.rotation.z += 0.005;
this._cylinderMesh.rotation.x += 0.005;
// this._cylinderMesh.rotation.z += 0.03;
// this._cylinderMesh.rotation.x += 0.03;
this._uniforms.iChannel1.value = this._renderTarget.texture;
this._renderer.setRenderTarget(this._renderTarget);
this._renderer.render(this._scene, this._camera);
this._uniforms.tDiffuse.value = this._renderTarget.texture;
this._composer.render();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment