public void SetColor(OpticalAmbience oa) { LightColor brightness = new LightColor(0.0D, 0.0D, 0.0D); if (pol.NVertex() >= 3) { Vector3D nml = pol.Nomal_vartex1(); if (faceflag) { brightness = oa.Brightness(new Vector3D(0.0D, 0.0D, 0.0D), pol.GetVertex(1), nml, mate); } else { brightness = oa.Brightness(new Vector3D(0.0D, 0.0D, 0.0D), pol.GetVertex(1), nml.SclProd(-1.0D), mateB); } } col = brightness.GetColor(); }
public void SetColor(OpticalAmbience oa) { LightColor brightness = new LightColor(0.0D, 0.0D, 0.0D); if (pol.NVertex() >= 3) { Vector3D nml = pol.Nomal_vartex1(); brightness = oa.Brightness(new Vector3D(0.0D, 0.0D, 0.0D), pol.GetVertex(1), nml, mate); } col = brightness.GetColor(); }