We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8cbd2f3 commit aec8514Copy full SHA for aec8514
1 file changed
crates/lambda-rs/src/render/texture.rs
@@ -627,6 +627,19 @@ impl SamplerBuilder {
627
return self;
628
}
629
630
+ /// Set the maximum anisotropic filtering level.
631
+ ///
632
+ /// Valid values are `1` (disabled) through `16`. Values outside this range
633
+ /// are clamped. Higher values improve texture quality at oblique viewing
634
+ /// angles but increase GPU cost.
635
636
+ /// Note: Anisotropic filtering is most effective with linear filtering and
637
+ /// mipmapped textures.
638
+ pub fn with_anisotropy_clamp(mut self, clamp: u16) -> Self {
639
+ self.inner = self.inner.with_anisotropy_clamp(clamp);
640
+ return self;
641
+ }
642
+
643
/// Attach a debug label.
644
pub fn with_label(mut self, label: &str) -> Self {
645
self.inner = self.inner.with_label(label);
0 commit comments