atteneder / glTFast

Efficient glTF 3D import / export package for Unity
Other
1.24k stars 251 forks source link

Normal map should be loaded as linear not sRGB #67

Closed wangvnn closed 4 years ago

wangvnn commented 4 years ago

For reference: https://forum.unity.com/threads/get-external-normal-map-at-runtime.532892/

atteneder commented 4 years ago

Hi wangvnn, thanks for the finding. I'll look into it, this week probably.

atteneder commented 4 years ago

Do you happen to use linear color space in your project? Because I use gamma space in my test project and it seems be correct here.

Otherwise, please provide your specs (Unity version, platform, project's color space) and sample files and explain what you'd expect (also visually) and where glTFast differs? Did you test Jpeg/PNG or KTX2/BasisU textures?

Thanks!

atteneder commented 4 years ago

Is fixed in master for PNG/Jpeg textures. KTX2 still has to get fixed.

atteneder commented 4 years ago

Fixed in 1.0.1