Skip to main content

Variable: CreateTexture

const CreateTexture: object

Defined in: create-texture.ts:15

The base shader module for a render pipeline: samples a single input texture into color so subsequent modules can transform it. Use this when no decoding step (e.g. CompositeBands) is needed.

Type Declaration

getUniforms

readonly getUniforms: (props) => object

Parameters

props

Partial<CreateTextureProps>

Returns

object

textureName

textureName: Texture | undefined = props.textureName

inject

readonly inject: object

inject.fs:#decl

readonly fs:#decl: "uniform sampler2D textureName;"

inject.fs:DECKGL_FILTER_COLOR

readonly fs:DECKGL_FILTER_COLOR: "\n color = texture(textureName, geometry.uv);\n "

name

readonly name: "create-texture-unorm" = "create-texture-unorm"