Beispiel #1
0
        public override bool isVisible(Camera c)
        {
            if (myLightType == Type.DIRECTIONAL)
            {
                DebugRenderer.addLine(position, Vector3.Zero, color, Fill.WIREFRAME, false, 0);
                DebugRenderer.addSphere(position, 0.1f, color, Fill.TRANSPARENT, false, 0);
                return(true);
            }

            DebugRenderer.addSphere(position, 0.1f, color, Fill.TRANSPARENT, false, 0);

            return(c.containsSphere(position, size));
        }
Beispiel #2
0
 public override bool isVisible(Camera c)
 {
     return(c.containsSphere(position, model.size));
 }
Beispiel #3
0
 public override bool isVisible(Camera c)
 {
     //TODO: calculate size
     return(c.containsSphere(position, 10.0f));
 }