-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
feat: add BakeShadows component #324
Conversation
|
✅ Deploy Preview for cientos-tresjs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JaimeTorrealba probably because you are defining any props
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But Stats component has props, and the messages still appears
src/core/misc/BakeShadows.ts
Outdated
renderer.value.shadowMap.needsUpdate = true | ||
}) | ||
|
||
return null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove return null
. I believe this fixes the typing issue. Let me know if that doesn't fix it for you.
Fwiw, here's an example with no returned value in the Vue docs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much, it was that 🙏
cast-shadow | ||
> | ||
<TresBoxGeometry /> | ||
<TresMeshStandardMaterial :color="0x00ff00" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TresMeshStandardMaterial
's color
prop expects a THREE.Color
, so you'll have to instantiate one with new Color(...)
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done :)
:rotation-x="-Math.PI / 2" | ||
> | ||
<TresPlaneGeometry :args="[5, 5]" /> | ||
<TresMeshStandardMaterial :color="0xf7f7f7" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above. This should be a THREE.Color
, not a number.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
closes #321
How can I remove these warnings