cod4-sdk/deffiles/materials/sampler_normalmap.template

22 lines
1 KiB
Text
Raw Normal View History

2008-01-19 00:00:00 +00:00
#if NORMAL_MAP_FORMAT == "DXN"
"normalMap" = composite
(
map( NORMAL_MAP_TILE, NORMAL_MAP_FILTER, NORMAL_MAP_IMAGE, NORMAL_MAP_ANIMRATE, NORMAL_MAP_NOPICMIP ).r,
map( NORMAL_MAP_TILE, NORMAL_MAP_FILTER, NORMAL_MAP_IMAGE, NORMAL_MAP_ANIMRATE, NORMAL_MAP_NOPICMIP ).g,
map( NORMAL_MAP_TILE, NORMAL_MAP_FILTER, NORMAL_MAP_IMAGE, NORMAL_MAP_ANIMRATE, NORMAL_MAP_NOPICMIP ).b,
map( NORMAL_MAP_TILE, NORMAL_MAP_FILTER, NORMAL_MAP_IMAGE, NORMAL_MAP_ANIMRATE, NORMAL_MAP_NOPICMIP ).g
) NORMAL_MAP_FORMAT : "normalMap";
#else
"normalMap" = composite
(
map( NORMAL_MAP_TILE, NORMAL_MAP_FILTER, NORMAL_MAP_IMAGE, NORMAL_MAP_ANIMRATE, NORMAL_MAP_NOPICMIP ).g,
map( NORMAL_MAP_TILE, NORMAL_MAP_FILTER, NORMAL_MAP_IMAGE, NORMAL_MAP_ANIMRATE, NORMAL_MAP_NOPICMIP ).g,
map( NORMAL_MAP_TILE, NORMAL_MAP_FILTER, NORMAL_MAP_IMAGE, NORMAL_MAP_ANIMRATE, NORMAL_MAP_NOPICMIP ).g,
map( NORMAL_MAP_TILE, NORMAL_MAP_FILTER, NORMAL_MAP_IMAGE, NORMAL_MAP_ANIMRATE, NORMAL_MAP_NOPICMIP ).r
) NORMAL_MAP_FORMAT : "normalMap";
#endif