mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 12:22:35 +00:00
Use nearest filtering if nearest is specified
This commit is contained in:
parent
8f9d840aeb
commit
62cddff505
1 changed files with 2 additions and 1 deletions
|
@ -310,7 +310,8 @@ namespace CodeImp.DoomBuilder.Rendering
|
|||
graphics.SetUniform(UniformName.fogcolor, General.Colors.Background.ToColorValue());
|
||||
graphics.SetUniform(UniformName.texturefactor, new Color4(1f, 1f, 1f, 1f));
|
||||
graphics.SetUniform(UniformName.highlightcolor, new Color4()); //mxd
|
||||
graphics.SetSamplerFilter(TextureFilter.Linear, General.Settings.VisualBilinear ? TextureFilter.Linear : TextureFilter.Point, TextureFilter.Linear, General.Settings.FilterAnisotropy);
|
||||
TextureFilter texFilter = General.Settings.VisualBilinear ? TextureFilter.Linear : TextureFilter.Point;
|
||||
graphics.SetSamplerFilter(texFilter, texFilter, TextureFilter.Linear, General.Settings.FilterAnisotropy);
|
||||
|
||||
// Texture addressing
|
||||
graphics.SetSamplerState(TextureAddress.Wrap);
|
||||
|
|
Loading…
Reference in a new issue