https://learnopengl-cn.github.io/01%20Getting%20started/06%20Textures/#stb_imageh
https://www.bilibili.com/video/av24353839/?p=18
一 Non Power of 2
古老的引擎只允许导入正方形图片,后来改了之后也可以导入矩形但要求必须是以2的n次方形式
参数原图:
image.png进来:
ToNearst
ToNearst
None,恢复原样
ToLarger
ToSmaller
二 Wrap mode
openGL中解释
三 Filtermode
(Point_Bilinear_Trilinear--------邻近过滤,线性过滤,多级渐远纹理)
重点在“分辨率低”那句话。分辨率一低,那么上色就得找一个“差不多”的像素来上色。
image.png
多级渐远纹理:
提前做好工作量,在太远的时候直接抽换贴图,不需要再采样计算。
image.png
四 Aniso Level远距离是模糊0还是精细1
0-1 is enough