public void Execute(ref WooState state) { Vector3 colourVec = _ColourExpr.EvaluateVector(ref state); Colour colour = new Colour(colourVec.x, colourVec.y, colourVec.z); AmbientLight ambientLight = new AmbientLight(colour); ambientLight.CreateElement(state._Parent, new Vector3(0, 0, 0)); }
public void Execute(ref WooState state) { Vector3 colourVec = _ColourExpr.EvaluateVector(ref state); Colour colour = new Colour(colourVec.x, colourVec.y, colourVec.z); AmbientLight ambientLight = new AmbientLight(colour); ambientLight.CreateElement(state._Parent, new Vector3(0,0,0)); }