atteneder / glTFast

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

Expose JPG encode quality in export settings #698

Open atteneder opened 4 months ago

atteneder commented 4 months ago

Discussed in https://github.com/atteneder/glTFast/discussions/658

Originally posted by **Henkka-san** November 21, 2023 It seems that currently the JPG quality is hardcoded to 60%. It would be helpful if the compression level could be given when Export is requested.
atteneder commented 4 months ago

Context: ImageConversion.EncodeToJPG

Setting at what granularity level?

  1. Global/static setting
  2. per-export setting
  3. per texture type setting (basecolor, normal, ORM,...)
  4. per texture setting/callback

I gravitate towards 2, but open for ideas.