cocos / cocos-docs

Manual docs content for Cocos Creator
https://docs.cocos.com
307 stars 461 forks source link

glTF 自带的Mipmap 与材质映射关系 #2842

Open riveranb opened 10 months ago

riveranb commented 10 months ago

URL : https://github.com/cocos-creator/creator-docs/blob/master/en/asset/model/glTF.md

I have a question.

glTF 贴图缩小筛选器 | Cocos Creator 贴图缩小筛选器 | Cocos Creator 贴图 Mip Map 筛选器

  1. NEAREST | TextureBase.Filter.NEAREST | TextureBase.Filter.NONE
  2. LINEAR_MIPMAP_LINEAR | TextureBase.Filter.LINEAR | TextureBase.Filter.NONE
  3. LINEAR_MIPMAP_NEAREST | TextureBase.Filter.NEAREST | TextureBase.Filter.NEAREST <---
  4. LINEAR | TextureBase.Filter.LINEAR | TextureBase.Filter.NEAREST
  5. NEAREST_MIPMAP_LINEAR | TextureBase.Filter.NEAREST | TextureBase.Filter.LINEAR
  6. NEAREST_MIPMAP_NEAREST | TextureBase.Filter.LINEAR | TextureBase.Filter.LINEAR <---

For 3. and 6., are they correct? and why? 'NEAREST' in glTF becomes 'TextureBase.Fiilter.Linear' ?

MrKylinGithub commented 10 months ago

thanks for your feedback, we need to clarify it and then give you a response.