Three.js Completely transparent material with specular map fully visible -


i need render food tray meat inside showcase packaging designs client. stuck @ material plastic film encloses tray's contents. planning use specular map or normal map obtain glossy effect, think can transparent or shaded specular map. neither suits purpose.

this current material setup:

"dbgindex" : 1, "dbgname"  : "plasticfilm", "shading" : "phong", "colordiffuse"  : [0.5, 0.5, 0.5], "colorambient"  : [0.5, 0.5, 0.5], "colorspecular"  : [0.5, 0.5, 0.5], "transparent" : true, "transparency"  : 0.01, "specularcoef"  : 100.0, "mapspecular"    : "film-bump.jpg", "mapbumpscale" : 0.2, "vertexcolors" : false 

live code here. json tray file here.

in inspector materials can accessed following commands: showcase.scene.children or showcase.materials

thank you!


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -