Skip to content

Documentation / scene / mixinTextureProps

Function: mixinTextureProps()

mixinTextureProps<U>(name): <T>(BaseCls, vertex) => T & (...args) => TextureProp<U> & { [P in "TextureUniform" | "TexCoord" as `get${Capitalize<U>}${P}`]: (scope: PBInsideFunctionScope) => PBShaderExp } & { [P in "Texture" as `sample${Capitalize<U>}${P}`]: (scope: PBInsideFunctionScope, texCoord?: PBShaderExp) => PBShaderExp }

Defined in: libs/scene/src/material/mixins/texture.ts:80

Texture property mixin

Type Parameters

U

U extends string

Parameters

name

U

Texture name

Returns

Texture mixin

<T>(BaseCls, vertex) => T & (...args) => TextureProp<U> & { [P in "TextureUniform" | "TexCoord" as `get${Capitalize<U>}${P}`]: (scope: PBInsideFunctionScope) => PBShaderExp } & { [P in "Texture" as `sample${Capitalize<U>}${P}`]: (scope: PBInsideFunctionScope, texCoord?: PBShaderExp) => PBShaderExp }

Released under the MIT License.