Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working with lights #13

Open
alphaCastor-zz opened this issue Dec 24, 2018 · 1 comment
Open

Working with lights #13

alphaCastor-zz opened this issue Dec 24, 2018 · 1 comment

Comments

@alphaCastor-zz
Copy link

alphaCastor-zz commented Dec 24, 2018

Hi. Thank you for this awesome library. I have a question. How can I add additional lights? I want to implement three.js example

p.s. can i somehow get current scene?

@fritx
Copy link
Owner

fritx commented Dec 25, 2018

@alphaCastor

How can I add additional lights?

You can pass :obj prop into components to override like

<light :obj="myLight1"></light>
<light :obj="myLight2"></light>
<light :obj="myLight3"></light>

can i somehow get current scene?

Also, :obj.sync, @update:obj would provide a way to get the obj, like

<mesh name="Ocean" @update:obj="handleMesh">

<scene :obj.sync="sceneObj"></scene><!-- watch: sceneObj -->

<scene @update:obj="handleSceneObj"></scene>

Cheers! 🍻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants