예제 #1
0
파일: Shape.cs 프로젝트: bhouston/q-tracer
        public override Color3 colorShadow(Color3 existing, Hit h, double factor)
        {
            switch (shader)
            {
            case ProcShading.Circle:
                return(Color3.shade(mapCircle(h), factor));

            case ProcShading.Texture:
                return(Color3.shade(mapTexture(h), factor));

            default:
                return(Color3.shade(mapSquare(h), factor));
            }
        }
예제 #2
0
파일: Shape.cs 프로젝트: bhouston/q-tracer
 public override Color3 colorShadow(Color3 existing, Hit h, double factor)
 {
     return(Color3.shade(existing, factor));
 }