| Line | |
|---|
| 1 | import * from "BumpMap.material" |
|---|
| 2 | // Any number of lights, diffuse |
|---|
| 3 | material Cube_Lava_Normal : BumpMap_Base |
|---|
| 4 | { |
|---|
| 5 | technique |
|---|
| 6 | { |
|---|
| 7 | pass ambient |
|---|
| 8 | { |
|---|
| 9 | } |
|---|
| 10 | // Now do the lighting pass |
|---|
| 11 | // NB we don't do decal texture here because this is repeated per light |
|---|
| 12 | pass perlight |
|---|
| 13 | { |
|---|
| 14 | // Base bump map |
|---|
| 15 | texture_unit normalmap |
|---|
| 16 | { |
|---|
| 17 | texture Cube_Lava_NORM.jpg |
|---|
| 18 | colour_op replace |
|---|
| 19 | } |
|---|
| 20 | } |
|---|
| 21 | |
|---|
| 22 | // Decal pass |
|---|
| 23 | pass decal |
|---|
| 24 | { |
|---|
| 25 | texture_unit decalmap |
|---|
| 26 | { |
|---|
| 27 | texture Cube_Lava_COLOR.jpg |
|---|
| 28 | } |
|---|
| 29 | } |
|---|
| 30 | } |
|---|
| 31 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.