Three.js material texture and color

前端 未结 2 1341
耶瑟儿~
耶瑟儿~ 2020-12-06 08:16

I trying to make a material for a car model with three.js where the base color of the car can be changed dynamically. This was easy enough by changing the color attribute of

2条回答
  •  没有蜡笔的小新
    2020-12-06 09:03

    Here is a complete script chunk. Insert immediately after reading three.js

    
    

    learned a little bit about the three.js phong material -- it doesn't handle highlights the way I'd like, but... whatever. If you need more sophistication I'd suggest using ShaderMaterial instead.

提交回复
热议问题