Up to date
This page is up to date for Godot 4.2
.
If you still find outdated information, please open an issue.
GLTFTextureSampler¶
继承: Resource < RefCounted < Object
代表 GLTF 纹理采样器
描述¶
表示由基本 GLTF 规范定义的纹理采样器。GLTF 中的纹理采样器指定在对象上渲染纹理时,如何从纹理的基础图像中采样数据。
教程¶
属性¶
|
||
|
||
|
||
|
属性说明¶
int mag_filter = 9729
纹理的放大滤镜,当纹理在屏幕上看起来比源图像大时使用。
int min_filter = 9987
纹理的缩小滤镜,当纹理在屏幕上看起来比源图像小时使用。
int wrap_s = 10497
用于 S 轴(水平)纹理坐标的环绕模式。
int wrap_t = 10497
用于 T 轴(垂直)纹理坐标的环绕模式。