[12115] | 1 | //------------------------ |
---|
| 2 | // Bump mapping section |
---|
| 3 | //------------------------ |
---|
| 4 | |
---|
| 5 | // Bump map vertex program, support for this is required |
---|
| 6 | vertex_program BumpMapping/BumpMapVPCg cg |
---|
| 7 | { |
---|
| 8 | source Example_BumpMapping.cg |
---|
| 9 | entry_point main_vp |
---|
| 10 | profiles vs_4_0 vs_4_0_level_9_1 vs_4_0_level_9_3 vs_1_1 arbvp1 |
---|
| 11 | } |
---|
| 12 | |
---|
| 13 | vertex_program BumpMapping/BumpMapVPGLSLES glsles |
---|
| 14 | { |
---|
| 15 | source Example_BumpMappingVp.glsles |
---|
| 16 | profiles glsles |
---|
| 17 | } |
---|
| 18 | |
---|
| 19 | vertex_program BumpMapping/BumpMapVPGLSL glsl |
---|
| 20 | { |
---|
| 21 | source Example_BumpMappingVp.glsl |
---|
| 22 | syntax glsl |
---|
| 23 | } |
---|
| 24 | |
---|
| 25 | vertex_program BumpMapping/BumpMapVP unified |
---|
| 26 | { |
---|
| 27 | delegate BumpMapping/BumpMapVPGLSL |
---|
| 28 | delegate BumpMapping/BumpMapVPGLSLES |
---|
| 29 | delegate BumpMapping/BumpMapVPCg |
---|
| 30 | } |
---|
| 31 | |
---|
| 32 | // Bump map vertex program, with tangent parity support for this is required |
---|
| 33 | vertex_program BumpMapping/BumpMapVPTangentParityCg cg |
---|
| 34 | { |
---|
| 35 | source Example_BumpMapping.cg |
---|
| 36 | entry_point main_vp |
---|
| 37 | profiles vs_1_1 arbvp1 |
---|
| 38 | compile_arguments -DTANGENTS_HAVE_PARITY=1 |
---|
| 39 | } |
---|
| 40 | |
---|
| 41 | // Bump map vertex program, with tangent parity support for this is required |
---|
| 42 | vertex_program BumpMapping/BumpMapVPTangentParityGLSLES glsles |
---|
| 43 | { |
---|
| 44 | source BumpMapVPTangentParity.glsles |
---|
| 45 | } |
---|
| 46 | |
---|
| 47 | vertex_program BumpMapping/BumpMapVPTangentParityGLSL glsl |
---|
| 48 | { |
---|
| 49 | source BumpMapVPTangentParity.glsl |
---|
| 50 | syntax glsl |
---|
| 51 | } |
---|
| 52 | |
---|
| 53 | vertex_program BumpMapping/BumpMapVPTangentParity unified |
---|
| 54 | { |
---|
| 55 | delegate BumpMapping/BumpMapVPTangentParityGLSL |
---|
| 56 | delegate BumpMapping/BumpMapVPTangentParityGLSLES |
---|
| 57 | delegate BumpMapping/BumpMapVPTangentParityCg |
---|
| 58 | } |
---|
| 59 | |
---|
| 60 | // Bump map fragment program, support for this is optional |
---|
| 61 | fragment_program BumpMapping/BumpMapFPCg cg |
---|
| 62 | { |
---|
| 63 | source Example_BumpMapping.cg |
---|
| 64 | entry_point main_fp |
---|
| 65 | profiles ps_4_0 ps_4_0_level_9_1 ps_4_0_level_9_3 ps_2_0 arbfp1 fp20 |
---|
| 66 | } |
---|
| 67 | |
---|
| 68 | fragment_program BumpMapping/BumpMapFPGLSLES glsles |
---|
| 69 | { |
---|
| 70 | source Example_BumpMappingFp.glsles |
---|
| 71 | profiles glsles |
---|
| 72 | default_params |
---|
| 73 | { |
---|
| 74 | // assign samplers as required by GLSL |
---|
| 75 | param_named normalMap int 0 |
---|
| 76 | } |
---|
| 77 | } |
---|
| 78 | |
---|
| 79 | fragment_program BumpMapping/BumpMapFPGLSL glsl |
---|
| 80 | { |
---|
| 81 | source Example_BumpMappingFp.glsl |
---|
| 82 | syntax glsl |
---|
| 83 | default_params |
---|
| 84 | { |
---|
| 85 | // assign samplers as required by GLSL |
---|
| 86 | param_named normalMap int 0 |
---|
| 87 | } |
---|
| 88 | } |
---|
| 89 | |
---|
| 90 | fragment_program BumpMapping/BumpMapFP unified |
---|
| 91 | { |
---|
| 92 | delegate BumpMapping/BumpMapFPGLSL |
---|
| 93 | delegate BumpMapping/BumpMapFPGLSLES |
---|
| 94 | delegate BumpMapping/BumpMapFPCg |
---|
| 95 | } |
---|
| 96 | |
---|
| 97 | // Bump map vertex program shadow receiver |
---|
| 98 | vertex_program BumpMapping/BumpMapVPShadowRcvCg cg |
---|
| 99 | { |
---|
| 100 | source Example_BumpMapping.cg |
---|
| 101 | entry_point main_shadowreceiver_vp |
---|
| 102 | profiles vs_1_1 arbvp1 |
---|
| 103 | } |
---|
| 104 | |
---|
| 105 | // Bump map vertex program shadow receiver |
---|
| 106 | vertex_program BumpMapping/BumpMapVPShadowRcvGLSLES glsles |
---|
| 107 | { |
---|
| 108 | source Example_BumpMappingShadowRcvVp.glsles |
---|
| 109 | profiles glsles |
---|
| 110 | } |
---|
| 111 | |
---|
| 112 | vertex_program BumpMapping/BumpMapVPShadowRcvGLSL glsl |
---|
| 113 | { |
---|
| 114 | source Example_BumpMappingShadowRcvVp.glsl |
---|
| 115 | syntax glsl |
---|
| 116 | } |
---|
| 117 | |
---|
| 118 | vertex_program BumpMapping/BumpMapVPShadowRcv unified |
---|
| 119 | { |
---|
| 120 | delegate BumpMapping/BumpMapVPShadowRcvGLSL |
---|
| 121 | delegate BumpMapping/BumpMapVPShadowRcvGLSLES |
---|
| 122 | delegate BumpMapping/BumpMapVPShadowRcvCg |
---|
| 123 | } |
---|
| 124 | |
---|
| 125 | // Bump map fragment program shadow receiver, support for this is optional |
---|
| 126 | fragment_program BumpMapping/BumpMapFPShadowRcvCg cg |
---|
| 127 | { |
---|
| 128 | source Example_BumpMapping.cg |
---|
| 129 | entry_point main_shadowreceiver_fp |
---|
| 130 | profiles ps_2_0 arbfp1 fp20 |
---|
| 131 | } |
---|
| 132 | |
---|
| 133 | // Bump map fragment program shadow receiver, support for this is optional |
---|
| 134 | fragment_program BumpMapping/BumpMapFPShadowRcvGLSLES glsles |
---|
| 135 | { |
---|
| 136 | source Example_BumpMappingShadowRcvFp.glsles |
---|
| 137 | profiles glsles |
---|
| 138 | default_params |
---|
| 139 | { |
---|
| 140 | // assign samplers as required by GLSL |
---|
| 141 | param_named shadowMap int 0 |
---|
| 142 | param_named normalMap int 1 |
---|
| 143 | } |
---|
| 144 | } |
---|
| 145 | |
---|
| 146 | fragment_program BumpMapping/BumpMapFPShadowRcvGLSL glsl |
---|
| 147 | { |
---|
| 148 | source Example_BumpMappingShadowRcvFp.glsl |
---|
| 149 | syntax glsl |
---|
| 150 | default_params |
---|
| 151 | { |
---|
| 152 | // assign samplers as required by GLSL |
---|
| 153 | param_named shadowMap int 0 |
---|
| 154 | param_named normalMap int 1 |
---|
| 155 | } |
---|
| 156 | } |
---|
| 157 | |
---|
| 158 | fragment_program BumpMapping/BumpMapFPShadowRcv unified |
---|
| 159 | { |
---|
| 160 | delegate BumpMapping/BumpMapFPShadowRcvGLSL |
---|
| 161 | delegate BumpMapping/BumpMapFPShadowRcvGLSLES |
---|
| 162 | delegate BumpMapping/BumpMapFPShadowRcvCg |
---|
| 163 | } |
---|
| 164 | |
---|
| 165 | // Bump map with specular vertex program, support for this is required |
---|
| 166 | vertex_program BumpMapping/BumpMapVPSpecularCg cg |
---|
| 167 | { |
---|
| 168 | source Example_BumpMapping.cg |
---|
| 169 | entry_point specular_vp |
---|
| 170 | profiles vs_4_0 vs_4_0_level_9_1 vs_4_0_level_9_3 vs_1_1 arbvp1 |
---|
| 171 | } |
---|
| 172 | |
---|
| 173 | // Bump map with specular vertex program, support for this is required |
---|
| 174 | vertex_program BumpMapping/BumpMapVPSpecularGLSLES glsles |
---|
| 175 | { |
---|
| 176 | source Example_BumpMappingSpecularVp.glsles |
---|
| 177 | profiles glsles |
---|
| 178 | } |
---|
| 179 | |
---|
| 180 | vertex_program BumpMapping/BumpMapVPSpecularGLSL glsl |
---|
| 181 | { |
---|
| 182 | source Example_BumpMappingSpecularVp.glsl |
---|
| 183 | syntax glsl |
---|
| 184 | } |
---|
| 185 | |
---|
| 186 | vertex_program BumpMapping/BumpMapVPSpecular unified |
---|
| 187 | { |
---|
| 188 | delegate BumpMapping/BumpMapVPSpecularGLSL |
---|
| 189 | delegate BumpMapping/BumpMapVPSpecularGLSLES |
---|
| 190 | delegate BumpMapping/BumpMapVPSpecularCg |
---|
| 191 | } |
---|
| 192 | |
---|
| 193 | // Bump map fragment program, support for this is optional |
---|
| 194 | fragment_program BumpMapping/BumpMapFPSpecularCg cg |
---|
| 195 | { |
---|
| 196 | source Example_BumpMapping.cg |
---|
| 197 | entry_point specular_fp |
---|
| 198 | profiles ps_4_0 ps_4_0_level_9_1 ps_4_0_level_9_3 ps_2_0 arbfp1 fp20 |
---|
| 199 | } |
---|
| 200 | |
---|
| 201 | // Bump map fragment program, support for this is optional |
---|
| 202 | fragment_program BumpMapping/BumpMapFPSpecularGLSLES glsles |
---|
| 203 | { |
---|
| 204 | source Example_BumpMappingSpecularFp.glsles |
---|
| 205 | profiles glsles |
---|
| 206 | default_params |
---|
| 207 | { |
---|
| 208 | // assign samplers as required by GLSL |
---|
| 209 | param_named normalMap int 0 |
---|
| 210 | } |
---|
| 211 | } |
---|
| 212 | |
---|
| 213 | fragment_program BumpMapping/BumpMapFPSpecularGLSL glsl |
---|
| 214 | { |
---|
| 215 | source Example_BumpMappingSpecularFp.glsl |
---|
| 216 | syntax glsl |
---|
| 217 | default_params |
---|
| 218 | { |
---|
| 219 | // assign samplers as required by GLSL |
---|
| 220 | param_named normalMap int 0 |
---|
| 221 | } |
---|
| 222 | } |
---|
| 223 | |
---|
| 224 | fragment_program BumpMapping/BumpMapFPSpecular unified |
---|
| 225 | { |
---|
| 226 | delegate BumpMapping/BumpMapFPSpecularGLSL |
---|
| 227 | delegate BumpMapping/BumpMapFPSpecularGLSLES |
---|
| 228 | delegate BumpMapping/BumpMapFPSpecularCg |
---|
| 229 | } |
---|