@LBacaj Nice work Louie! This is awesome. I also built a board game - all the art is AI generated. Pretty wild what you can build with these tools.
https://t.co/RCQiB5nvaO
😍Exciting news!
My new free "Confetti-V2" component for #threejs using #r3f is almost ready. The performance is 100% better using instances. Now, we can draw hundreds of particles in a single draw call, with lots of customization.
Available for download soon 😎
@s13k_@levelsio This is it if its a group! You could use this if you have IDs for the plane parts.
const shadowIds = new Set(['wing_left', 'wing_right']);
player.traverse(function(child) {
if (child.isMesh) {
child.castShadow = shadowIds.has(https://t.co/EhGSEypwiG);
}
});
@levelsio Oh interesting - are you adding the directional light (variable name sunLight) to the scene?
You can debug shadows with:
`const shadowHelper = new THREE.CameraHelper(https://t.co/1SYYafWhOt);
scene.add(shadowHelper);`
(make sure you call shadowHelper.update() in the useFrame)