troisjs / trois

✨ ThreeJS + VueJS 3 + ViteJS ⚡
https://troisjs.github.io
MIT License
4.19k stars 299 forks source link

How to add css2drenderer? I tried to add it in onbeforerender, but it didn't show the effect. Thank you #156

Closed Iceberg606 closed 2 years ago

Iceberg606 commented 2 years ago

How to add css2drenderer? I tried to add it in onbeforerender, but it didn't show the effect. Thank you

amirofski commented 2 years ago

CSS2DRenderer is a simplified version of CSS3DRenderer. The only transformation that is supported is translation.
I think This link can help you: https://threejs.org/docs/#examples/en/renderers/CSS2DRenderer

Iceberg606 commented 2 years ago

CSS2DRenderer is a simplified version of CSS3DRenderer. The only transformation that is supported is translation. I think This link can help you: https://threejs.org/docs/#examples/en/renderers/CSS2DRenderer

thank you!