Instance Propertymigueldeicaza.swiftgodot 0.45.0SwiftGodot
minFilter
RDSamplerState.swift:28final var minFilter: RenderingDevice.SamplerFilter { get set }
Other members in extension
Type members
Instance members
var anisotropyMax: Double
Maximum anisotropy that can be used when sampling. Only effective if
useAnisotropy
istrue
. Higher values result in a sharper sampler at oblique angles, at the cost of performance (due to memory bandwidth). This value may be limited by the graphics hardware in use. Most graphics hardware only supports values up to16.0
.var borderColor: RenderingDevice.SamplerBorderColor
The border color that will be returned when sampling outside the sampler’s bounds and the
repeatU
,repeatV
orrepeatW
modes have repeating disabled.var compareOp: RenderingDevice.CompareOperator
The compare operation to use. Only effective if
enableCompare
istrue
.var enableCompare: Bool
If
true
, returned values will be based on the comparison operation defined incompareOp
. This is a hardware-based approach and is therefore faster than performing this manually in a shader. For example, compare operations are used for shadow map rendering by comparing depth values from a shadow sampler.var lodBias: Double
The mipmap LOD bias to use. Positive values will make the sampler blurrier at a given distance, while negative values will make the sampler sharper at a given distance (at the risk of looking grainy). Recommended values are between
-0.5
and0.0
. Only effective if the sampler has mipmaps available.var magFilter: RenderingDevice.SamplerFilter
The sampler’s magnification filter.
var maxLod: Double
The maximum mipmap LOD bias to display (lowest resolution). Only effective if the sampler has mipmaps available.
var minLod: Double
The minimum mipmap LOD bias to display (highest resolution). Only effective if the sampler has mipmaps available.
var mipFilter: RenderingDevice.SamplerFilter
The filtering method to use for mipmaps.
var repeatU: RenderingDevice.SamplerRepeatMode
The repeat mode to use along the U axis of UV coordinates. This affects the returned values if sampling outside the UV bounds.
var repeatV: RenderingDevice.SamplerRepeatMode
The repeat mode to use along the V axis of UV coordinates. This affects the returned values if sampling outside the UV bounds.
var repeatW: RenderingDevice.SamplerRepeatMode
The repeat mode to use along the W axis of UV coordinates. This affects the returned values if sampling outside the UV bounds. Only effective for 3D samplers.
var unnormalizedUvw: Bool
var useAnisotropy: Bool
If
true
, perform anisotropic sampling. SeeanisotropyMax
.