Created
April 19, 2020 17:32
-
-
Save leochocolat/25f09f992a22a61c90901673666a78f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_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