public Color GetColor(TraceContext context) { var color = reflectiveMaterial.GetColor(context.Ray, context.Intersection, context.TraceFunc, context.Depth) .Mix(solidMaterial.GetColor(context.Ray, context.Intersection, context.TraceFunc, context.Depth), .5f); return(color); }
public virtual Color GetColor(TraceContext context) { var color = baseMaterial.GetColor(context.Ray, context.Intersection, context.TraceFunc, context.Depth); return(color); }