Skip to content

Commit 15df57f

Browse files
committed
attempt to make text more readable at lower texture quality (no idea if this actually did anything though)
1 parent fcc74d6 commit 15df57f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

RasterPropMonitor/Core/RasterPropMonitor.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ private static Texture2D LoadFont(object caller, InternalProp thisProp, string l
123123
font = (Texture2D)thisProp.FindModelTransform(location).GetComponent<Renderer>().material.mainTexture;
124124
JUtil.LogMessage(caller, "Loading font texture from a transform named \"{0}\"", location);
125125
}
126+
127+
font.filterMode = FilterMode.Point;
128+
font.requestedMipmapLevel = 0;
126129
}
127130
catch (Exception)
128131
{
@@ -176,7 +179,7 @@ public void Start()
176179

177180
// Now that is done, proceed to setting up the screen.
178181

179-
screenTexture = new RenderTexture(screenPixelWidth, screenPixelHeight, 24, RenderTextureFormat.ARGB32);
182+
screenTexture = new RenderTexture(screenPixelWidth, screenPixelHeight, 24, RenderTextureFormat.ARGB32, 0);
180183
screenObject = internalProp.FindModelTransform(screenTransform).gameObject;
181184
var renderer = screenObject.AddComponent<VisibilityEnabler>();
182185
renderer.Initialize(this);

0 commit comments

Comments
 (0)