Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

GLTFTextureSampler

繼承: Resource < RefCounted < Object

Represents a glTF texture sampler

說明

Represents a texture sampler as defined by the base glTF spec. Texture samplers in glTF specify how to sample data from the texture's base image, when rendering the texture on an object.

教學

屬性

int

mag_filter

9729

int

min_filter

9987

int

wrap_s

10497

int

wrap_t

10497


屬性說明

int mag_filter = 9729 🔗

  • void set_mag_filter(value: int)

  • int get_mag_filter()

紋理的放大濾鏡,當紋理在螢幕上看起來比源圖像大時使用。


int min_filter = 9987 🔗

  • void set_min_filter(value: int)

  • int get_min_filter()

紋理的縮小濾鏡,當紋理在螢幕上看起來比源圖像小時使用。


int wrap_s = 10497 🔗

  • void set_wrap_s(value: int)

  • int get_wrap_s()

用於 S 軸(水平)紋理座標的環繞模式。


int wrap_t = 10497 🔗

  • void set_wrap_t(value: int)

  • int get_wrap_t()

用於 T 軸(垂直)紋理座標的環繞模式。