Last change
on this file since 21 was
21,
checked in by nicolasc, 17 years ago
|
added ogreode and Colladaplugin
|
File size:
1.6 KB
|
Rev | Line | |
---|
[21] | 1 | vertex_program AutoTerrainTexture/VP cg |
---|
| 2 | { |
---|
| 3 | source autoterraintexture.cg |
---|
| 4 | entry_point main_vp |
---|
| 5 | profiles vs_2_0 arbvp1 |
---|
| 6 | } |
---|
| 7 | |
---|
| 8 | fragment_program AutoTerrainTexture/FP cg |
---|
| 9 | { |
---|
| 10 | source autoterraintexture.cg |
---|
| 11 | entry_point main_fp |
---|
| 12 | profiles ps_2_0 arbfp1 |
---|
| 13 | } |
---|
| 14 | |
---|
| 15 | |
---|
| 16 | material AutoTerrainTexture/GrassyKnoll |
---|
| 17 | { |
---|
| 18 | receive_shadows on |
---|
| 19 | technique |
---|
| 20 | { |
---|
| 21 | pass |
---|
| 22 | { |
---|
| 23 | vertex_program_ref AutoTerrainTexture/VP |
---|
| 24 | { |
---|
| 25 | param_named_auto worldViewProj worldviewproj_matrix |
---|
| 26 | param_named_auto lightDirection light_direction_object_space 0 |
---|
| 27 | param_named_auto ambientLight ambient_light_colour |
---|
| 28 | |
---|
| 29 | // Config settings are; |
---|
| 30 | // world to texture scale |
---|
| 31 | // rock slope start |
---|
| 32 | // rock slope scale |
---|
| 33 | // ambient light scale factor |
---|
| 34 | param_named configSettings float4 0.02 0.95 6.0 0.25 |
---|
| 35 | |
---|
| 36 | // Fog settings are; |
---|
| 37 | // start |
---|
| 38 | // end |
---|
| 39 | // scale (e.g. 0.0 to switch off) |
---|
| 40 | param_named fogSettings float4 500.0 1000.0 1.0 0.0 |
---|
| 41 | |
---|
| 42 | // Fog colour |
---|
| 43 | param_named fogColour float4 0.93, 0.86, 0.76 1.0 |
---|
| 44 | } |
---|
| 45 | |
---|
| 46 | fragment_program_ref AutoTerrainTexture/FP |
---|
| 47 | { |
---|
| 48 | } |
---|
| 49 | |
---|
| 50 | texture_unit |
---|
| 51 | { |
---|
| 52 | texture grass.jpg |
---|
| 53 | tex_address_mode wrap |
---|
| 54 | } |
---|
| 55 | |
---|
| 56 | texture_unit |
---|
| 57 | { |
---|
| 58 | texture rocks.jpg |
---|
| 59 | tex_address_mode wrap |
---|
| 60 | } |
---|
| 61 | } |
---|
| 62 | } |
---|
| 63 | technique |
---|
| 64 | { |
---|
| 65 | pass |
---|
| 66 | { |
---|
| 67 | //texture_unit |
---|
| 68 | //{ |
---|
| 69 | // texture grass.jpg |
---|
| 70 | // tex_address_mode wrap |
---|
| 71 | //} |
---|
| 72 | |
---|
| 73 | texture_unit |
---|
| 74 | { |
---|
| 75 | texture rocks.jpg |
---|
| 76 | tex_address_mode wrap |
---|
| 77 | } |
---|
| 78 | } |
---|
| 79 | } |
---|
| 80 | } |
---|
| 81 | |
---|
Note: See
TracBrowser
for help on using the repository browser.