Example 2: Light Passes

Text    hb_plastic.sl    prepare.rib    interact.sl    interact.rib    Makefile

Makefile

include ../Makeinclude

 

 

run: all

${INTERACT} interact.rib

 

all: ambient.tif light1.tif light2.tif light3.tif

 

 

ambient.tif: hb_plastic.${SLO} prepare.rib

grep -v '^# ' prepare.rib \

| cpp -DLIGHT=1 -DFILENAME=\"ambient.tif\" \

| ${RENDER}

 

light1.tif: hb_plastic.${SLO} prepare.rib

grep -v '^# ' prepare.rib \

| cpp -DLIGHT=2 -DFILENAME=\"light1.tif\" \

| ${RENDER}

 

light2.tif: hb_plastic.${SLO} prepare.rib

grep -v '^# ' prepare.rib \

| cpp -DLIGHT=3 -DFILENAME=\"light2.tif\" \

| ${RENDER}

light3.tif: hb_plastic.${SLO} prepare.rib

grep -v '^# ' prepare.rib \

| cpp -DLIGHT=4 -DFILENAME=\"light3.tif\" \

| ${RENDER}

 

hb_plastic.${SLO}: hb_plastic.sl

${SHADER} hb_plastic.sl