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)); }
public override bool isVisible(Camera c) { return(c.containsSphere(position, model.size)); }
public override bool isVisible(Camera c) { //TODO: calculate size return(c.containsSphere(position, 10.0f)); }