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

Add view range settings for non 0-1 textures? #148

Open
greggman opened this issue Jan 12, 2017 · 0 comments
Open

Add view range settings for non 0-1 textures? #148

greggman opened this issue Jan 12, 2017 · 0 comments

Comments

@greggman
Copy link
Contributor

The TexturePreview only really handles textures that have values in the range of 0 to 1 so that brings up the question what to do for float textures, int textures, and uint textures, also maybe SNORM textures.

One idea is to have some ux that lets you chose a min and max and a shader that ranges does something like

outColor = (textureColor - min) / (max - min);

Could also try to determine a default min and max by looking at the texture's content.

Or could do nothing. Just thought I'd add this as a possible TODO

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

1 participant