LTDescr.setFromColor C# (CSharp) Method

setFromColor() public method

public setFromColor ( Color col ) : LTDescr
col Color
return LTDescr
    public LTDescr setFromColor( Color col )
    {
        this.from = new Vector3(0.0f, col.a, 0.0f);
        this.diff = new Vector3(1.0f,0.0f,0.0f);
        this._optional.axis = new Vector3( col.r, col.g, col.b );
        return this;
    }
LTDescr