Skip to content

Commit b3679ba

Browse files
committed
Add some antialiasing
1 parent a4b1aa5 commit b3679ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/RunActivity/Viewer3D/Materials.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,7 @@ public void Set2DRenderer(RollingStock.CabViewControlRenderer cabViewControlRend
11841184
{
11851185
ScreenRenderer = cabViewControlRenderer;
11861186
Texture = new RenderTarget2D(Viewer.GraphicsDevice,
1187-
(int)ScreenRenderer.Control.Width, (int)ScreenRenderer.Control.Height, false, SurfaceFormat.Color, DepthFormat.None);
1187+
(int)ScreenRenderer.Control.Width, (int)ScreenRenderer.Control.Height, false, SurfaceFormat.Color, DepthFormat.None, 8, RenderTargetUsage.DiscardContents);
11881188
}
11891189

11901190
public override void Render(GraphicsDevice graphicsDevice, IEnumerable<RenderItem> renderItems, ref Matrix XNAViewMatrix, ref Matrix XNAProjectionMatrix)

0 commit comments

Comments
 (0)