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

Expose sampler/mipmapping options for entities with material #8328

Open
OmarShehata opened this issue Oct 28, 2019 · 2 comments
Open

Expose sampler/mipmapping options for entities with material #8328

OmarShehata opened this issue Oct 28, 2019 · 2 comments

Comments

@OmarShehata
Copy link
Contributor

This came up on the forum. Right now if you're creating an entity with a textured material on it, there's no way to control the sampler that the texture uses, so there's no way to set up mipmapping for it. You can't do this from the primitive API either because Material.js does not expose the sampler as an option.

@mramato
Copy link
Contributor

mramato commented Oct 28, 2019

Step one would definitely be to add it to the Primitive API. The Entity API mostly just sits on top of that. Most things in the Renderer are private for a reason so we do have to be careful and think through what we expose. That being said, TextureMinificationFilter is already public and exposed as part of the ImageryProvider API, so if it's just a matter of allowing that to be set in Materials, it's probably not that big of a change.

@OmarShehata
Copy link
Contributor Author

Came up again on the forum:

I have relatively low resolved textures that look horrible (not usable) when stretched over a larger rectangle

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

No branches or pull requests

2 participants