How to render to texture? #714
Unanswered
issimissimo
asked this question in
Q&A
Replies: 1 comment
-
Related: #711 Conceptionally, in v6 you'd only use the this.myRenderTarget = new WebGLRenderTarget(1, 1, { depthBuffer: false }); Your custom pass should then use the setSize(width, height) {
this.renderTarget.setSize(width, height);
} You can use LuminancePass as a reference. That pass exposes its render result via a getter which could then be used as a texture for your plane mesh. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I should send the postprocessing render to a texture (V6)
I've tried in different ways:
...renderTarget = composer.outputBuffer...
renderTarget = composer.createBuffer()
but I had no luck: the texture is black.
Could someone help me to understand how to do that?
Really many thanks!
Beta Was this translation helpful? Give feedback.
All reactions