示例#1
0
        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);
        }
示例#2
0
        public virtual Color GetColor(TraceContext context)
        {
            var color = baseMaterial.GetColor(context.Ray, context.Intersection, context.TraceFunc, context.Depth);

            return(color);
        }