Nez.Portable/Graphics/DeferredLighting/Lights/DirLight.cs
/// <summary>
/// we dont want to render our bounds so we just render a direction
/// </summary>
/// <param name="graphics">Graphics.</param>
we dont want to render our bounds so we just render a direction
we dont want to render our bounds so we just render a direction
public override void debugRender(Graphics graphics)
        {
            var root = Vector2.Zero;
            if (direction.Y > 0)
                root.Y = 10f;
            else
                root.Y = Screen.height - 10;
            if (direction.X > 0)
                root.X = 10;
            else
                root.X = Screen.width - 10;
            var angle = Mathf.atan2(direction.Y, direction.X);
            graphics.batcher.drawLineAngle(root, angle, 100, Color.Red, 3);
        }
public override void debugRender ( Graphics graphics ) { var root = Vector2 . Zero ; if ( direction . Y > 0 ) root . Y = 10f ; else root . Y = Screen . height - 10 ; if ( direction . X > 0 ) root . X = 10 ; else root . X = Screen . width - 10 ; var angle = Mathf . atan2 ( direction . Y , direction . X ) ; graphics . batcher . drawLineAngle ( root , angle , 100 , Color . Red , 3 ) ; }
we dont want to render our bounds so we just render a direction
we dont want to render our bounds so we just render a direction
// figure out a starting corner for the line
graphics
Graphics
None