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

Attenuation color not working? #22

Closed
emackey opened this issue Apr 7, 2021 · 2 comments
Closed

Attenuation color not working? #22

emackey opened this issue Apr 7, 2021 · 2 comments

Comments

@emackey
Copy link

emackey commented Apr 7, 2021

I'm testing out attenuation colors with this model: KhronosGroup/glTF-Sample-Models#306 (see README).

But, it doesn't look like the attenuation color is present:

image

@bsdorra
Copy link
Member

bsdorra commented Apr 19, 2021

Fixed with 5ad44ca
For now, Autoscale Scene needs to be set to false before scene loading (default is true). Otherwise, the scene dimensions will be normalized which likely results in unexpected absorption behavior. I'll add a camera transform which adapts to the original scene dimension on load so that the auto-scale can be disabled by default.
image

@emackey
Copy link
Author

emackey commented Apr 20, 2021

Looks great!

@emackey emackey closed this as completed Apr 20, 2021
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