Skip to content

Pack Input Properties

Joshua Miller edited this page Jan 26, 2021 · 3 revisions

For PixelGraph to properly mix channel data during publishing, it must know how the source content channels are stored.

Using the User Interface

Input Properties
  • Format - Allows a pre-defined texture encoding to be chosen.
  • Texture - The type of texture storing the channel data.
  • Color - The color channel of the texture where data is stored.
  • Value-Min - The minimum value of the encoding channel.
  • Value-Max - The maximum value of the encoding channel.
  • Range-Min - The minimum value of the color channel. [0-255]
  • Range-Max - The maximum value of the color channel. [0-255]
  • Shift - The amount to shift the value of the color channel.
  • Perceptual - When enabled, converts the linear value to a perceptual value.
  • Invert - When enabled, inverts the value of the encoding channel.

Manual / Command-Line Usage

The content encoding can be manually altered by creating/editing the input.yml file in the root of your project. The example below only expands the alpha channel encoding, but the same structure can be applied to all channels.

format: raw
alpha:
  texture: alpha
  color: alpha
  min-value: 0.0
  max-value: 1.0
  range-min: 0
  range-max: 255
  perceptual: false
  invert: false
diffuse-red: {}
diffuse-green: {}
diffuse-blue: {}
albedo-red: {}
albedo-green: {}
albedo-blue: {}
height: {}
occlusion: {}
normal-x: {}
normal-y: {}
normal-z: {}
specular: {}
smooth: {}
rough: {}
metal: {}
f0: {}
porosity: {}
sss: {}
emissive: {}
Clone this wiki locally