/********************************************************************** *< FILE: gbuf.h : GBuffer manager. DESCRIPTION: CREATED BY: Dan Silva HISTORY: *> Copyright (c) 1998, All Rights Reserved. **********************************************************************/ #ifndef __GBUF__H #define __GBUF__H #define NUMGBCHAN 13 // GBuffer channels (number of bytes in parenthesis) #define GB_Z 0 // (4) Z-Buffer depth, float #define GB_MTL_ID 1 // (1) ID assigned to mtl via mtl editor #define GB_NODE_ID 2 // (2) ID assigned to node via properties #define GB_UV 3 // (8) UV coordinates - Point2 #define GB_NORMAL 4 // (4) Normal vector in view space, compressed #define GB_REALPIX 5 // (4) Non clamped colors in "RealPixel" format #define GB_COVERAGE 6 // (1) Pixel coverage #define GB_BG 7 // (3) RGB color of what's behind layer #define GB_NODE_RENDER_ID 8 // (2) Node render index, word #define GB_COLOR 9 // (3) Color (RGB) #define GB_TRANSP 10 // (3) Transparency (RGB) #define GB_VELOC 11 // (8) Velocity (Point2) #define GB_WEIGHT 12 // (3) Weight of layers contribution to pixel color CoreExport int GBDataSize(int i); CoreExport TCHAR *GBChannelName(int i); // Recognized channel bits #define BMM_CHAN_NONE 0 #define BMM_CHAN_Z (1<