Texture

class pythreejs.Texture[source]

Texture

Autogenerated by generate-wrappers.js See https://threejs.org/docs/#api/textures/Texture

Inherits ThreeWidget.

Three.js docs: https://threejs.org/docs/#api/textures/Texture

name
Unicode('', allow_none=False).tag(sync=True)
mapping
Enum(MappingModes, "UVMapping", allow_none=False).tag(sync=True)
wrapS
Enum(WrappingModes, "ClampToEdgeWrapping", allow_none=False).tag(sync=True)
wrapT
Enum(WrappingModes, "ClampToEdgeWrapping", allow_none=False).tag(sync=True)
magFilter
Enum(Filters, "LinearFilter", allow_none=False).tag(sync=True)
minFilter
Enum(Filters, "LinearMipMapLinearFilter", allow_none=False).tag(sync=True)
format
Enum(PixelFormats, "RGBAFormat", allow_none=False).tag(sync=True)
type
Enum(DataTypes, "UnsignedByteType", allow_none=False).tag(sync=True)
anisotropy
CFloat(1, allow_none=False).tag(sync=True)
repeat
Vector2(default_value=[1,1]).tag(sync=True)
offset
Vector2(default_value=[0,0]).tag(sync=True)
generateMipmaps
Bool(True, allow_none=False).tag(sync=True)
premultiplyAlpha
Bool(False, allow_none=False).tag(sync=True)
flipY
Bool(True, allow_none=False).tag(sync=True)
unpackAlignment
CInt(4, allow_none=False).tag(sync=True)
encoding
Enum(TextureEncodings, "LinearEncoding", allow_none=False).tag(sync=True)
version
CInt(0, allow_none=False).tag(sync=True)
rotation
CFloat(0, allow_none=False).tag(sync=True)
anisotropy = CFloat(1)

a float

encoding = Enum('LinearEncoding')

any of [‘GammaEncoding’, ‘LinearEncoding’, ‘LogLuvEncoding’, ‘RGBDEncoding’, ‘RGBEEncoding’, ‘RGBM16Encoding’, ‘RGBM7Encoding’, ‘sRGBEncoding’]

flipY = Bool(True)

a boolean

format = Enum('RGBAFormat')

any of [‘AlphaFormat’, ‘DepthFormat’, ‘DepthStencilFormat’, ‘LuminanceAlphaFormat’, ‘LuminanceFormat’, ‘RGBAFormat’, ‘RGBEFormat’, ‘RGBFormat’]

generateMipmaps = Bool(True)

a boolean

magFilter = Enum('LinearFilter')

any of [‘LinearFilter’, ‘LinearMipMapLinearFilter’, ‘LinearMipMapNearestFilter’, ‘NearestFilter’, ‘NearestMipMapLinearFilter’, ‘NearestMipMapNearestFilter’]

mapping = Enum('UVMapping')

any of [‘CubeReflectionMapping’, ‘CubeRefractionMapping’, ‘CubeUVReflectionMapping’, ‘CubeUVRefractionMapping’, ‘EquirectangularReflectionMapping’, ‘EquirectangularRefractionMapping’, ‘SphericalReflectionMapping’, ‘UVMapping’]

minFilter = Enum('LinearMipMapLinearFilter')

any of [‘LinearFilter’, ‘LinearMipMapLinearFilter’, ‘LinearMipMapNearestFilter’, ‘NearestFilter’, ‘NearestMipMapLinearFilter’, ‘NearestMipMapNearestFilter’]

name = Unicode('')

a unicode string

offset = Vector2((0, 0))

a tuple of any type

premultiplyAlpha = Bool(False)

a boolean

repeat = Vector2((0, 0))

a tuple of any type

rotation = CFloat(0)

a float

type = Enum('UnsignedByteType')

any of [‘ByteType’, ‘FloatType’, ‘HalfFloatType’, ‘IntType’, ‘ShortType’, ‘UnsignedByteType’, ‘UnsignedIntType’, ‘UnsignedShortType’]

unpackAlignment = CInt(4)

an int

version = CInt(0)

an int

wrapS = Enum('ClampToEdgeWrapping')

any of [‘ClampToEdgeWrapping’, ‘MirroredRepeatWrapping’, ‘RepeatWrapping’]

wrapT = Enum('ClampToEdgeWrapping')

any of [‘ClampToEdgeWrapping’, ‘MirroredRepeatWrapping’, ‘RepeatWrapping’]