can anyone tel me how to use ColorMatrixMethod

Software: Away3D 4.x

alpoman, Jr. Member
Posted: 28 November 2014 12:21 AM   Total Posts: 40

Hello, is there an easy way to assign ColorMatrixMethod to material in one line of code or so,

something like

cubeMaterial.ColorMatrixMethod=[1,0,0,0,1,.5,0,0,0,0,0,0,0,0,0,0,0,0,0,0] 

where, I can assign my array directly to material and have it be tinted.

I know this is possible using a light, and ambient color, but I am getting weird seams between meshes using lights on ios devices.

thanks in advance!

   

rdoi, Member
Posted: 10 December 2014 01:44 PM   Total Posts: 86   [ # 1 ]

So, can’t you just use the material.colorTransform property?

Not sure about mobile performance, though.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X