Back to Filament

swizzle

docs/android/dokka/filament-android/com.google.android.filament/-texture/-builder/swizzle.md

1.75.0730 B
Original Source

//filament-android/com.google.android.filament/Texture/Builder/swizzle

swizzle

[main]
open fun swizzle(r: Texture.Swizzle, g: Texture.Swizzle, b: Texture.Swizzle, a: Texture.Swizzle): Texture.Builder

Specifies how a texture's channels map to color components

Return

This Builder, for chaining calls.

Parameters

main

rtexture channel for red component
gtexture channel for green component
btexture channel for blue component
atexture channel for alpha component