/// <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); } }
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); }