---
url: /api/core/texture/type-aliases/BaseTextureParams.md
---
# BaseTextureParams

```ts
type BaseTextureParams = {
  minFilter?:
    "linear" | "nearest" | "linear-mipmap-linear" | "nearest-mipmap-linear";
  magFilter?: "linear" | "nearest";
  wrapS?: "clamp-to-edge" | "repeat" | "mirrored-repeat";
  wrapT?: "clamp-to-edge" | "repeat" | "mirrored-repeat";
  generateMipmaps?: boolean;
  anisotropy?: number;
  flipY?: boolean;
  level?: number;
  internalFormat?: number;
  colorSpace?: "srgb" | "linear-rgb";
  format?: number;
  type?: number;
};
```

Base parameters for configuring a WebGL texture.

## Properties

| Property                                                 | Type                                                                               | Description                                                                                                      |
| -------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
|  `minFilter?`             | `"linear"` | `"nearest"` | `"linear-mipmap-linear"` | `"nearest-mipmap-linear"` | Texture minification filter. **Default** `"linear-mipmap-linear" if generateMipmaps is true, "linear" otherwise` |
|  `magFilter?`             | `"linear"` | `"nearest"`                                                          | Texture magnification filter. **Default** `"linear"`                                                             |
|  `wrapS?`                     | `"clamp-to-edge"` | `"repeat"` | `"mirrored-repeat"`                             | Wrapping mode for the S (U) coordinate. **Default** `"clamp-to-edge"`                                            |
|  `wrapT?`                     | `"clamp-to-edge"` | `"repeat"` | `"mirrored-repeat"`                             | Wrapping mode for the T (V) coordinate. **Default** `"clamp-to-edge"`                                            |
|  `generateMipmaps?` | `boolean`                                                                          | Whether to automatically generate mipmaps for this texture. **Default** `true`                                   |
|  `anisotropy?`           | `number`                                                                           | Level of anisotropic filtering to apply. **Default** `1 (no anisotropic filtering)`                              |
|  `flipY?`                     | `boolean`                                                                          | Whether to flip the image's Y axis to match WebGL's coordinate system. **Default** `true`                        |
|  `level?`                     | `number`                                                                           | The mipmap level to fill. **Default** `0`                                                                        |
|  `internalFormat?`   | `number`                                                                           | The internal format of the texture in the GPU. **Default** `RGBA`                                                |
|  `colorSpace?`           | `"srgb"` | `"linear-rgb"`                                                         | The color space of the input data. **Default** `"linear-rgb"`                                                    |
|  `format?`                   | `number`                                                                           | The format of the texel data. **Default** `RGBA`                                                                 |
|  `type?`                       | `number`                                                                           | The data type of the texel data. **Default** `UNSIGNED_BYTE`                                                     |
