Skip to content

Adding lights to the global canvas ? #52

Discussion options

You must be logged in to vote

Hi @antoine-hellocafeine

Spotlights also work! But I think problem is the position of your light. By default the scroll-rig scales the canvas to match pixels, so 1px on the screen is 1 unit in the Threejs scene to make it easier to match sizes.

Try moving the spotlight further away and/or set distance={0} to make sure it reaches your object. Maybe bump up the intensity while you are debugging too

I usually set <GlobalCanvas scaleMultiplier={0.01} /> which makes the scale of the scene 100x smaller and closer to normal units. Check out the section about Z-depth fighting in the readme FAQ for more info

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@antoine-hellocafeine
Comment options

@ffdead
Comment options

Answer selected by antoine-hellocafeine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants