[25] | 1 | // Materials for rendering to the fat buffer |
---|
| 2 | |
---|
| 3 | // Textured Phong shading material |
---|
| 4 | material DeferredShading/Material/TexturedPhong |
---|
| 5 | { |
---|
| 6 | technique hlsl |
---|
| 7 | { |
---|
| 8 | pass main |
---|
| 9 | { |
---|
| 10 | vertex_program_ref DeferredShading/material/hlsl/vs |
---|
| 11 | { |
---|
| 12 | } |
---|
| 13 | fragment_program_ref DeferredShading/material/hlsl/ps |
---|
| 14 | { |
---|
| 15 | } |
---|
| 16 | |
---|
| 17 | texture_unit |
---|
| 18 | { |
---|
| 19 | } |
---|
| 20 | } |
---|
| 21 | } |
---|
| 22 | technique glsl |
---|
| 23 | { |
---|
| 24 | pass main |
---|
| 25 | { |
---|
| 26 | vertex_program_ref DeferredShading/material/glsl/vs |
---|
| 27 | { |
---|
| 28 | } |
---|
| 29 | fragment_program_ref DeferredShading/material/glsl/ps |
---|
| 30 | { |
---|
| 31 | } |
---|
| 32 | |
---|
| 33 | texture_unit |
---|
| 34 | { |
---|
| 35 | } |
---|
| 36 | } |
---|
| 37 | } |
---|
| 38 | } |
---|
| 39 | |
---|
| 40 | // Untextured Phong shading material |
---|
| 41 | material DeferredShading/Material/UntexturedPhong |
---|
| 42 | { |
---|
| 43 | technique hlsl |
---|
| 44 | { |
---|
| 45 | pass main |
---|
| 46 | { |
---|
| 47 | vertex_program_ref DeferredShading/material/hlsl/vs |
---|
| 48 | { |
---|
| 49 | } |
---|
| 50 | fragment_program_ref DeferredShading/material/hlsl/notex_ps |
---|
| 51 | { |
---|
| 52 | } |
---|
| 53 | } |
---|
| 54 | } |
---|
| 55 | technique glsl |
---|
| 56 | { |
---|
| 57 | pass main |
---|
| 58 | { |
---|
| 59 | vertex_program_ref DeferredShading/material/glsl/vs |
---|
| 60 | { |
---|
| 61 | } |
---|
| 62 | fragment_program_ref DeferredShading/material/glsl/notex_ps |
---|
| 63 | { |
---|
| 64 | } |
---|
| 65 | } |
---|
| 66 | } |
---|
| 67 | } |
---|
| 68 | |
---|
| 69 | // Textured normal mapped material |
---|
| 70 | material DeferredShading/Material/TexturedNormalMapped |
---|
| 71 | { |
---|
| 72 | technique hlsl |
---|
| 73 | { |
---|
| 74 | pass main |
---|
| 75 | { |
---|
| 76 | vertex_program_ref DeferredShading/material/hlsl/nm_vs |
---|
| 77 | { |
---|
| 78 | } |
---|
| 79 | fragment_program_ref DeferredShading/material/hlsl/nm_ps |
---|
| 80 | { |
---|
| 81 | } |
---|
| 82 | |
---|
| 83 | texture_unit |
---|
| 84 | { |
---|
| 85 | } |
---|
| 86 | texture_unit |
---|
| 87 | { |
---|
| 88 | tex_coord_set 1 |
---|
| 89 | } |
---|
| 90 | } |
---|
| 91 | } |
---|
| 92 | technique glsl |
---|
| 93 | { |
---|
| 94 | pass main |
---|
| 95 | { |
---|
| 96 | vertex_program_ref DeferredShading/material/glsl/nm_vs |
---|
| 97 | { |
---|
| 98 | } |
---|
| 99 | fragment_program_ref DeferredShading/material/glsl/nm_ps |
---|
| 100 | { |
---|
| 101 | } |
---|
| 102 | |
---|
| 103 | texture_unit |
---|
| 104 | { |
---|
| 105 | } |
---|
| 106 | texture_unit |
---|
| 107 | { |
---|
| 108 | tex_coord_set 1 |
---|
| 109 | } |
---|
| 110 | } |
---|
| 111 | } |
---|
| 112 | } |
---|
| 113 | |
---|
| 114 | // Untextured normal mapped material |
---|
| 115 | material DeferredShading/Material/UntexturedNormalMapped |
---|
| 116 | { |
---|
| 117 | technique hlsl |
---|
| 118 | { |
---|
| 119 | pass main |
---|
| 120 | { |
---|
| 121 | vertex_program_ref DeferredShading/material/hlsl/nm_vs |
---|
| 122 | { |
---|
| 123 | } |
---|
| 124 | fragment_program_ref DeferredShading/material/hlsl/nm_notex_ps |
---|
| 125 | { |
---|
| 126 | } |
---|
| 127 | texture_unit |
---|
| 128 | { |
---|
| 129 | } |
---|
| 130 | } |
---|
| 131 | } |
---|
| 132 | technique glsl |
---|
| 133 | { |
---|
| 134 | pass main |
---|
| 135 | { |
---|
| 136 | vertex_program_ref DeferredShading/material/glsl/nm_vs |
---|
| 137 | { |
---|
| 138 | } |
---|
| 139 | fragment_program_ref DeferredShading/material/glsl/nm_notex_ps |
---|
| 140 | { |
---|
| 141 | } |
---|
| 142 | texture_unit |
---|
| 143 | { |
---|
| 144 | tex_coord_set 0 |
---|
| 145 | } |
---|
| 146 | texture_unit |
---|
| 147 | { |
---|
| 148 | tex_coord_set 1 |
---|
| 149 | } |
---|
| 150 | } |
---|
| 151 | } |
---|
| 152 | } |
---|