/** * Parameters for textures: the image source, UV scaling and offset, wrapping mode, and the sampling * settings that decide how a texture is filtered. */ export declare namespace BabylonTexture { /** * How a texture is filtered when magnified or minified - nearest keeps pixels crisp and blocky, * the linear and trilinear modes smooth them, and the mipmap variants trade sharpness for stability * in the distance. */ enum samplingModeEnum { nearest = "nearest", bilinear = "bilinear", trilinear = "trilinear" } /** * Feeds `babylon.texture.createSimple`: the image address of a texture for material slots, how * it tiles, shifts and turns over the surface, and how it is filtered. */ class TextureSimpleDto { constructor(name?: string, url?: string, invertY?: boolean, invertZ?: boolean, wAng?: number, uScale?: number, vScale?: number, uOffset?: number, vOffset?: number, samplingMode?: samplingModeEnum); /** * Name the texture is known by in the scene * @default Custom Texture */ name?: string | undefined; /** * Address of the image; for an uploaded file, make an object URL with * `asset.createObjectURL` first * @default undefined */ url: string; /** * When true, the image is flipped top to bottom; use it when a texture appears upside down * @default false */ invertY?: boolean | undefined; /** * When true, the image is flipped along the third texture axis, which matters for volume * textures only * @default false */ invertZ?: boolean | undefined; /** * How far the image is turned over the surface, in radians * @default 0 */ wAng?: number | undefined; /** * How many times the image repeats across the surface horizontally; 2 tiles it twice * @default 1 */ uScale?: number | undefined; /** * How many times the image repeats across the surface vertically; 2 tiles it twice * @default 1 */ vScale?: number | undefined; /** * How far the image is shifted horizontally, as a fraction of its width * @default 0 */ uOffset?: number | undefined; /** * How far the image is shifted vertically, as a fraction of its height * @default 0 */ vOffset?: number | undefined; /** * How pixels are read when the image is scaled: nearest keeps hard pixels, bilinear and * trilinear blend them * @default nearest */ samplingMode?: BabylonTexture.samplingModeEnum | undefined; } /** * Feeds `babylon.texture.createImage`: the address of an image for decals and projections, with * its transparency kept and no tiling. */ class TextureImageDto { constructor(name?: string, url?: string, hasAlpha?: boolean, invertY?: boolean, samplingMode?: samplingModeEnum); /** * Name the texture is known by in the scene * @default Image Texture */ name?: string | undefined; /** * Address of the image: a public URL, a data URL or an object URL made from an uploaded * file * @default undefined */ url: string; /** * When true, transparent pixels of the image stay transparent, which cut-out decals need * @default true */ hasAlpha?: boolean | undefined; /** * When true, the image is flipped top to bottom; use it when a decal appears upside down * @default false */ invertY?: boolean | undefined; /** * How pixels are read when the image is scaled: nearest keeps hard pixels, bilinear and * trilinear blend them * @default trilinear */ samplingMode?: BabylonTexture.samplingModeEnum | undefined; } }