Short Contents

8.14 The PSD display driver

This display driver writes Photoshop's PSD files. Each channel is saved within its own layer, either in RGB or in RGBA, or in GrayScale. All layers use the same format: if a layer is in GrayScale, all of them are in GrayScale; meaning that each specified channel has only one component. If only one channel has 3 or 4 components, all layers will use RGB or RGBA: channels with one component will be converted. Layers in Photoshop file format are restricted to 8 bits (unsigned) per component.

Declare "amb" "varying color"
Declare "diff" "varying color"
Declare "spec" "varying color"

Quantize "amb" 255 0 255 0.5
Quantize "diff" 255 0 255 0.5
Quantize "spec" 255 0 255 0.5

Display "output_multi_layer.psd" "psd" "amb,Ci,diff,alpha,spec"

3Delight 10.0. Copyright 2000-2011 The 3Delight Team. All Rights Reserved.