zadvorsky / three.bas

THREE.JS Buffer Animation System

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to set color or texture on LambertAnimationMaterial

HypnosNova opened this issue · comments

Is there any way to set color or texture in LambertAnimationMaterial and other AnimationMaterial, if i set color in it, it shows that 'color' is not a property of this material.

So all the materials' color is white or it could be change in some different ways

To change the color, you need to set diffuse in uniformValues, like here. You can also change material.uniforms.diffuse.value on the material instance.