Skip to content
Permalink
Browse files

[Rendering] ForceAspectRatioSceneRenderer: Made default aspect ratio …

…local to remove dependency to CameraComponent
  • Loading branch information
xen2 committed Feb 12, 2019
1 parent 20c5f2b commit 71248f369637397946c9bfb705e6b4bc8e746a8c
@@ -9,6 +9,8 @@ namespace Xenko.Rendering.Compositing
{
public class ForceAspectRatioSceneRenderer : SceneRendererBase
{
public const float DefaultAspectRatio = 16.0f / 9.0f;

public ISceneRenderer Child { get; set; }

/// <summary>
@@ -18,8 +20,8 @@ public class ForceAspectRatioSceneRenderer : SceneRendererBase
/// The aspect ratio.
/// </value>
/// <userdoc>The aspect ratio used if Add Letterbox/Pillarbox is checked.</userdoc>
[DefaultValue(CameraComponent.DefaultAspectRatio)]
public float FixedAspectRatio { get; set; } = CameraComponent.DefaultAspectRatio;
[DefaultValue(DefaultAspectRatio)]
public float FixedAspectRatio { get; set; } = DefaultAspectRatio;

/// <summary>
/// Gets or sets a value wether to edit the Viewport to force the aspect ratio and add letterboxes or pillarboxes where needed

0 comments on commit 71248f3

Please sign in to comment.
You can’t perform that action at this time.