Function CreateTextureOperand
-
CreateTextureOperand(
texture: Nullable<BaseTexture>,
channel?: TextureChannel,
colorSpace?: TextureColorSpace,
): ITextureProcessOperandParameters
- texture: Nullable<BaseTexture>
The texture to sample, or null to produce an identity (1,1,1,1) constant operand
Optionalchannel: TextureChannelOptional channel selection. When set, the sampled value is swizzled before use (e.g.
TextureChannel.R→ RRRA). Defaults toTextureChannel.RGBA(no swizzle).OptionalcolorSpace: TextureColorSpaceOptional color space. When
TextureColorSpace.SRGB, the sampled RGB channels are linearized before use. Defaults toTextureColorSpace.Linear.
Returns ITextureProcessOperand
An operand that evaluates to the sampled texture value
- texture: Nullable<BaseTexture>
Create an operand from a texture alone (no constant factor scaling).