Esempio n. 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);
     }
 }
Esempio n. 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);
 }