Function: bakeMaterialToTextures()
bakeMaterialToTextures(
renderer,material,resolution,activeChannels,uvTransform?):Promise<any[]>
Bakes every active (trained) PBR channel of a material into
activeChannels.packCount-worth of RGBA textures via one fullscreen-quad
render per pack (see NTCFormat.js for how flat channel indices
map onto them).
Parameters
renderer
any
material
any
resolution
number
activeChannels
any[]
uvTransform?
any = null
Returns
Promise<any[]>