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

Fix scaled UV on import, add widgets #88

Merged
merged 2 commits into from
Jul 23, 2022
Merged

Fix scaled UV on import, add widgets #88

merged 2 commits into from
Jul 23, 2022

Conversation

JamesTKhan
Copy link
Owner

@JamesTKhan JamesTKhan commented Jul 21, 2022

UV attributes were not being imported into Mundus for GLTF models. This fixes that by getting and setting these values on GLTF import

    public int uvIndex = 0;
    public float offsetU = 0;
    public float offsetV = 0;
    public float scaleU = 1;
    public float scaleV = 1;
    public float rotationUV = 0;

NOTE: A known limitation of gdx-gltf PBR shaders is that it uses UV scale from one of the textures. Separate UV scale per texture type is not supported right now however, this PR adds UV scale props into each material type so that is could be supported later.

Now scaled UV will import into Mundus. Also adds new UI widgets to allow customizing these values.

image

@JamesTKhan JamesTKhan merged commit ae44c63 into master Jul 23, 2022
@JamesTKhan JamesTKhan added this to the 0.4.0 Release milestone Jul 24, 2022
@JamesTKhan JamesTKhan deleted the scaled_uv_fix branch October 17, 2022 22:09
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

Successfully merging this pull request may close these issues.

1 participant