Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Loading assets with custom settings #215

Open
Tam opened this issue May 18, 2024 · 1 comment
Open

[Question] Loading assets with custom settings #215

Tam opened this issue May 18, 2024 · 1 comment

Comments

@Tam
Copy link

Tam commented May 18, 2024

I'm loading in a repeating texture and have to load it with a custom ImageSamplerDescriptor to set the UV address mode.

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?

@NiklasEi
Copy link
Owner

Not at the moment. You can only change the sampler to Linear or Nearest via derive macro attribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants