Open Tam opened 1 month ago
I'm loading in a repeating texture and have to load it with a custom ImageSamplerDescriptor to set the UV address mode.
ImageSamplerDescriptor
fn(&mut ImageLoaderSettings) = move |s: &mut ImageLoaderSettings| { s.sampler = ImageSampler::Descriptor(ImageSamplerDescriptor { address_mode_u: ImageAddressMode::Repeat, address_mode_v: ImageAddressMode::Repeat, ..default() }); };
Is there a way to do this while loading the asset via asset loader?
Not at the moment. You can only change the sampler to Linear or Nearest via derive macro attribute.
I'm loading in a repeating texture and have to load it with a custom
ImageSamplerDescriptor
to set the UV address mode.Is there a way to do this while loading the asset via asset loader?