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

[Feature] Support fading mipmaps ("mipblend") #39

Open
SirYodaJedi opened this issue Jan 2, 2024 · 0 comments
Open

[Feature] Support fading mipmaps ("mipblend") #39

SirYodaJedi opened this issue Jan 2, 2024 · 0 comments

Comments

@SirYodaJedi
Copy link

SirYodaJedi commented Jan 2, 2024

Since Source 2007, Valve's vtex supports a compile parameter mipblend, which is poorly documented. I noticed that it can be used for making greyscale detail textures less noisy, so I looked at vtex_dll.dll in a hex editor and tested what appeared to be the parameters, documenting my findings:

image

Unfortunately, vtex can't actually create I8 (or ATI1N) textures, and vtex2 doesn't currently seem to have an option to retain existing mipmaps from an input file (currently only a VTF would have pre-existing mipmaps, but if DDS support ever gets added, that could also have mipmaps).

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