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

shader UV scale/offset #123

Open
Jakey757 opened this issue Jul 6, 2021 · 1 comment
Open

shader UV scale/offset #123

Jakey757 opened this issue Jul 6, 2021 · 1 comment
Labels
content Written content required for the wiki

Comments

@Jakey757
Copy link

Jakey757 commented Jul 6, 2021

Transparent shader's UV scales are relative to model/gbxmodel UV scale.
image
Map UV scale 0 does no additional scaling, but 0 gets defaulted to 1 on cache build through tool. If model scale is not 0 or 1 then shader scale will cause unwanted scaling.
image
The solution is to have the model UV scale as offsets in the shader (shown in first picture).
image

This behavior only happens with transparent_chicago.
Note: the model UV scales can change when re-compiling the model.

@Jakey757
Copy link
Author

this is only an issue in h1ce, not h1a. setting uv scale to 1 properly scales uvs independently of the model scales.

@csauve csauve added the content Written content required for the wiki label Aug 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Written content required for the wiki
Development

No branches or pull requests

2 participants