简体   繁体   中英

The shadow of the part of object is not shown - three.js

Screenshot

Hello. I exported from blender model tree. All it is going well, but there is a problem. The shadow is reflected on the surface of the trunk, branches and the shadow - no. Perhaps the problem model? (link to the model below, the archive is exported tree.json)

Link to the archive

Well, model seems to be ok. I think your code in JS is not correct like castShadow is not turn on;

castShadow = false;

I've downloaded your model and make a scene, here you go link to jsfiddle .

three.js r.72

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM