Esempio n. 1
0
    protected override void DerivedDraw(MotionEditor editor)
    {
        HeightMap sensor = GetHeightMap(editor.GetActor());

        sensor.Draw();
        sensor.Render(new Vector2(0.1f, 0.25f), new Vector2(0.3f * Screen.height / Screen.width, 0.3f), Resolution, Resolution, 1f);
    }
Esempio n. 2
0
        void RenderIt(Camera pCamera, IntPtr pHandle)
        {
            //Clear Screen
            if (pCamera == _perspCamera)
            {
                GraphicsDevice.Clear(Color.CornflowerBlue);
            }
            else
            {
                GraphicsDevice.Clear(Color.Black);
            }


            //Draw Heightmap
            _heightMap.Draw(pCamera);

            //Draw Particles
            _particleSystem.Draw(pCamera);

            //Render Targets zeichnen
            //    GraphicsDevice.SetRenderTarget(null);

            /*_spriteBatch = new SpriteBatch(GraphicsDevice);
             * _spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend,
             *  SamplerState.LinearClamp, DepthStencilState.Default,
             *  RasterizerState.CullNone);
             * //  _spriteBatch.Draw(_renderTargetMain, new Vector2(0, 0), Color.White);
             * _spriteBatch.Draw(particles, new Vector2(0, 0), Color.White);
             * _spriteBatch.End();*/

            GraphicsDevice.Present(null, null, pHandle);
        }