Documentation / @ripl/3d / TextureOptions
Interface: TextureOptions ​
Defined in: 3d/src/core/texture.ts:40
Options for creating a Texture.
Properties ​
| Property | Type | Description | Defined in |
|---|---|---|---|
flipY? | boolean | Flips the image vertically, matching the convention most image assets are authored in. Defaults to false. | 3d/src/core/texture.ts:50 |
magFilter? | TextureFilter | How the texture is sampled when magnified. Defaults to 'linear'. | 3d/src/core/texture.ts:46 |
minFilter? | TextureFilter | How the texture is sampled when minified. Defaults to 'linear'. | 3d/src/core/texture.ts:48 |
offset? | Vector2 | How far the texture is shifted across the surface. Defaults to [0, 0]. | 3d/src/core/texture.ts:54 |
repeat? | Vector2 | How many times the texture repeats across the surface. Defaults to [1, 1]. | 3d/src/core/texture.ts:52 |
wrapS? | TextureWrap | How horizontal coordinates outside the unit range are resolved. Defaults to 'repeat'. | 3d/src/core/texture.ts:42 |
wrapT? | TextureWrap | How vertical coordinates outside the unit range are resolved. Defaults to 'repeat'. | 3d/src/core/texture.ts:44 |