mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-18 14:31:50 +00:00
fixed bilinear texture filter with low-quality display setting
This commit is contained in:
parent
ce456494b8
commit
308b68c506
1 changed files with 14 additions and 4 deletions
|
@ -162,10 +162,20 @@ namespace CodeImp.DoomBuilder.Rendering
|
|||
device.SetTransform(TransformState.Projection, Matrix.Identity);
|
||||
|
||||
// Sampler settings
|
||||
device.SetSamplerState(0, SamplerState.MagFilter, TextureFilter.Point);
|
||||
device.SetSamplerState(0, SamplerState.MinFilter, TextureFilter.Point);
|
||||
device.SetSamplerState(0, SamplerState.MipFilter, TextureFilter.Point);
|
||||
device.SetSamplerState(0, SamplerState.MipMapLodBias, 0f);
|
||||
if(General.Settings.ClassicBilinear)
|
||||
{
|
||||
device.SetSamplerState(0, SamplerState.MagFilter, TextureFilter.Linear);
|
||||
device.SetSamplerState(0, SamplerState.MinFilter, TextureFilter.Linear);
|
||||
device.SetSamplerState(0, SamplerState.MipFilter, TextureFilter.Linear);
|
||||
device.SetSamplerState(0, SamplerState.MipMapLodBias, 0f);
|
||||
}
|
||||
else
|
||||
{
|
||||
device.SetSamplerState(0, SamplerState.MagFilter, TextureFilter.Point);
|
||||
device.SetSamplerState(0, SamplerState.MinFilter, TextureFilter.Point);
|
||||
device.SetSamplerState(0, SamplerState.MipFilter, TextureFilter.Point);
|
||||
device.SetSamplerState(0, SamplerState.MipMapLodBias, 0f);
|
||||
}
|
||||
|
||||
// Texture addressing
|
||||
device.SetSamplerState(0, SamplerState.AddressU, TextureAddress.Wrap);
|
||||
|
|
Loading…
Reference in a new issue