Appearance
KBE3D / KBCore / Cesium / TextureUniform
类: TextureUniform
A simple struct that serves as a value of a <code>sampler2D</code>-valued uniform. This is used with CustomShader and TextureManager
参数
An object with the following properties:
参数
A typed array storing the contents of a texture. Values are stored in row-major order. Since WebGL uses a y-up convention for textures, rows are listed from bottom to top.
参数
The width of the image. Required when options.typedArray is present
参数
The height of the image. Required when options.typedArray is present.
参数
A URL string or resource pointing to a texture image.
参数
When defined, the texture sampler will be set to wrap in both directions
参数
When options.typedArray is defined, this is used to determine the pixel format of the texture
参数
When options.typedArray is defined, this is the data type of pixel values in the typed array.
参数
The minification filter of the texture sampler.
参数
The magnification filter of the texture sampler.
参数
The maximum anisotropy of the texture sampler
构造函数
构造函数
new TextureUniform(
options: {typedArray?:Uint8Array<ArrayBufferLike>;width?:number;height?:number;url?:string|Resource;repeat?:boolean;pixelFormat?:PixelFormat;pixelDatatype?:PixelDatatype;minificationFilter?:TextureMinificationFilter;magnificationFilter?:TextureMagnificationFilter;maximumAnisotropy?:number; }):TextureUniform
参数
options
typedArray?
Uint8Array<ArrayBufferLike>
width?
number
height?
number
url?
string | Resource
repeat?
boolean
pixelFormat?
pixelDatatype?
minificationFilter?
magnificationFilter?
maximumAnisotropy?
number
返回
TextureUniform
