Beispiel #1
0
        public override void LoadContent()
        {
            if (m_glare == null)
            {
                m_glare = new MyLightGlare(this);
            }

            m_glare.LoadContent();

            SpotQuery      = MyOcclusionQueries.Get();
            SpotQueryState = QueryState.IssueOcc;

            base.LoadContent();
        }
Beispiel #2
0
 //  IMPORTANT: This class isn't realy inicialized by constructor, but by Start()
 //  So don't initialize members here, do it in Start()
 public MyLight()
 {
     m_glare = new MyLightGlare(this);
 }