コード例 #1
0
        public void Initialize()
        {
            m_LightingEffect = new UWB_XNAEffect(mResources.Load <Effect>("Effects/UWB_LightingEffect"));

            m_LightManager = new UWB_XNALightManager(m_LightingEffect);


            m_GraphicsDevice.RasterizerState   = m_DefaultState;
            m_GraphicsDevice.DepthStencilState = DepthStencilState.Default;

            m_LightingEffect.World      = Matrix.Identity;
            m_LightingEffect.View       = Matrix.Identity;
            m_LightingEffect.Projection = Matrix.Identity;
        }
コード例 #2
0
        public void Initialize()
        {
            m_LightingEffect = new UWB_XNAEffect(mResources.Load<Effect>("Effects/UWB_LightingEffect"));

            m_LightManager = new UWB_XNALightManager(m_LightingEffect);

            m_GraphicsDevice.RasterizerState = m_DefaultState;
            m_GraphicsDevice.DepthStencilState = DepthStencilState.Default;

            m_LightingEffect.World = Matrix.Identity;
            m_LightingEffect.View = Matrix.Identity;
            m_LightingEffect.Projection = Matrix.Identity;
        }