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.

GLTFTexture

繼承: Resource < RefCounted < Object

GLTFTexture represents a texture in a glTF file.

教學

屬性

int

sampler

-1

int

src_image

-1


屬性說明

int sampler = -1 🔗

  • void set_sampler(value: int)

  • int get_sampler()

紋理取樣器的 ID,在對圖像進行取樣時使用。如果為 -1,則使用預設的紋理取樣器(線性篩選,並在兩個軸上重複環繞)。


int src_image = -1 🔗

  • void set_src_image(value: int)

  • int get_src_image()

與該紋理關聯的圖像索引,見 GLTFState.get_images()。如果為 -1,則該紋理未與圖像相關聯。