BJ Patel is an expert user of Umbraco. Always keen to share hints and tips on getting the best out of Umbraco.
Shadow properties for Cube
- Creating the Shadow :
This code checks each part of the cube. If a mesh is found, it enables shadow casting for that mesh.
// Setting shadow properties for cube
cube.traverse(function(node){
if(node.isMesh)
node.castShadow = true;
});
comments powered by Disqus
Join Our Community
Join Our Community Become a part of our developer community. Share your projects, get feedback, and collaborate with like-minded individuals.
Your contributions help us continue creating valuable content. Consider supporting us by sharing our content.
Junagadh, Gujarat
Latest Blog Posts