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

feat: add BakeShadows component #324

Merged
merged 3 commits into from
Jan 9, 2024
Merged

Conversation

JaimeTorrealba
Copy link
Member

closes #321
How can I remove these warnings

image

@JaimeTorrealba JaimeTorrealba self-assigned this Dec 25, 2023
Copy link

stackblitz bot commented Dec 25, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link

netlify bot commented Dec 25, 2023

Deploy Preview for cientos-tresjs ready!

Name Link
🔨 Latest commit d6f054a
🔍 Latest deploy log https://app.netlify.com/sites/cientos-tresjs/deploys/659d4a72e1016d0008b38da3
😎 Deploy Preview https://deploy-preview-324--cientos-tresjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

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

Copy link
Member Author

@JaimeTorrealba JaimeTorrealba Dec 26, 2023

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

renderer.value.shadowMap.needsUpdate = true
})

return null
Copy link
Contributor

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.

Copy link
Member Author

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" />
Copy link
Contributor

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(...).

Copy link
Member Author

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" />
Copy link
Contributor

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

Copy link
Contributor

@andretchen0 andretchen0 left a 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!

@JaimeTorrealba JaimeTorrealba merged commit 99dc69e into main Jan 9, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BakeShadows
3 participants