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

Misaligned lightmaps when using BakeAsync() #27

Closed
brunce opened this issue Nov 24, 2020 · 1 comment
Closed

Misaligned lightmaps when using BakeAsync() #27

brunce opened this issue Nov 24, 2020 · 1 comment

Comments

@brunce
Copy link

brunce commented Nov 24, 2020

My lightmaps are misaligned when using this script for baking. I use Unity 2020.1.12f and have some complicated and unoptimized geometry.

I think the reason is that the script uses BakeAsync() without waiting for the bake to complete. Instead it assigns the currently existing lightmaps immediatly. Or nothing if no lightmap existed.

However when starting the bake in Unity and after completion running the script without the BakeAsync() call everything is working fine and aligned correctly.

In any case, this script is a tremendous help. Thank you.

@Ayfel
Copy link
Owner

Ayfel commented Nov 24, 2020

I have returned it to Bake() until I have time to test and implement the async version properly, which I hadnt

@Ayfel Ayfel closed this as completed Nov 24, 2020
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

2 participants