using <Text /> as texture on shaderMaterial #481
marekalgoud
started this conversation in
General
Replies: 2 comments 2 replies
-
it probably comes from a webglrendertarget https://codesandbox.io/s/r3f-render-target-qgcrx here's something similar with text projected onto a sphere https://codesandbox.io/s/r3f-render-target-kdj94 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ok, I was close :) I finally dit it (I forgot a setter in my shaderMaterial) ! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I would like to use
<Text />
from the drei library with a shaderMaterial and use the texture as a uniform in the shader. (I'm trying to recreate something as explain here : https://tympanus.net/codrops/2020/06/02/kinetic-typography-with-three-js/ with r3f),I've understand who to create the renderTarget thanks to this example https://codesandbox.io/s/r3f-render-target-kdj94. Now I would like to do the equivalent of this :
but I can't figure out who to do that. What is the equivalent of
this.rt.texture
?Thanks for your help :)
Marek
Beta Was this translation helpful? Give feedback.
All reactions