Skip to content

Documentation / @ripl/3d / TextureOptions

Interface: TextureOptions ​

Defined in: 3d/src/core/texture.ts:40

Options for creating a Texture.

Properties ​

PropertyTypeDescriptionDefined in
flipY?booleanFlips the image vertically, matching the convention most image assets are authored in. Defaults to false.3d/src/core/texture.ts:50
magFilter?TextureFilterHow the texture is sampled when magnified. Defaults to 'linear'.3d/src/core/texture.ts:46
minFilter?TextureFilterHow the texture is sampled when minified. Defaults to 'linear'.3d/src/core/texture.ts:48
offset?Vector2How far the texture is shifted across the surface. Defaults to [0, 0].3d/src/core/texture.ts:54
repeat?Vector2How many times the texture repeats across the surface. Defaults to [1, 1].3d/src/core/texture.ts:52
wrapS?TextureWrapHow horizontal coordinates outside the unit range are resolved. Defaults to 'repeat'.3d/src/core/texture.ts:42
wrapT?TextureWrapHow vertical coordinates outside the unit range are resolved. Defaults to 'repeat'.3d/src/core/texture.ts:44