示例#1
0
 /// <summary>
 /// Marks the given object as visible to this camera
 /// </summary>
 /// <param name="obj"></param>
 public virtual void RenderObject(DecalObject obj)
 {
     if (obj != null)
     {
         toRender.Add(obj);
     }
 }
示例#2
0
 protected virtual bool IsObjectVisible(DecalObject obj)
 {
     if (obj.ManualCulling)
     {
         if (!GeometryUtility.TestPlanesAABB(GetCameraPlanes(), obj.Bounds))
         {
             return(false);
         }
     }
     else if (!toRender.Contains(obj))
     {
         return(false);
     }
     return(true);
 }