[12096] | 1 | //------------------------ |
---|
| 2 | // Bump mapping section |
---|
| 3 | //------------------------ |
---|
| 4 | |
---|
| 5 | // Bump map vertex program, support for this is required |
---|
| 6 | vertex_program Examples/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 Examples/BumpMapVPGLSLES glsles |
---|
| 14 | { |
---|
| 15 | source Example_BumpMappingVp.glsles |
---|
| 16 | profiles glsles |
---|
| 17 | } |
---|
| 18 | |
---|
| 19 | vertex_program Examples/BumpMapVPGLSL glsl |
---|
| 20 | { |
---|
| 21 | source Example_BumpMappingVp.glsl |
---|
| 22 | syntax glsl |
---|
| 23 | } |
---|
| 24 | |
---|
| 25 | vertex_program Examples/BumpMapVP unified |
---|
| 26 | { |
---|
| 27 | delegate Examples/BumpMapVPGLSL |
---|
| 28 | delegate Examples/BumpMapVPGLSLES |
---|
| 29 | delegate Examples/BumpMapVPCg |
---|
| 30 | } |
---|
| 31 | |
---|
| 32 | // Bump map vertex program, with tangent parity support for this is required |
---|
| 33 | vertex_program Examples/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 Examples/BumpMapVPTangentParityGLSLES glsles |
---|
| 43 | { |
---|
| 44 | source BumpMapVPTangentParity.glsles |
---|
| 45 | } |
---|
| 46 | |
---|
| 47 | vertex_program Examples/BumpMapVPTangentParityGLSL glsl |
---|
| 48 | { |
---|
| 49 | source BumpMapVPTangentParity.glsl |
---|
| 50 | syntax glsl |
---|
| 51 | } |
---|
| 52 | |
---|
| 53 | vertex_program Examples/BumpMapVPTangentParity unified |
---|
| 54 | { |
---|
| 55 | delegate Examples/BumpMapVPTangentParityGLSL |
---|
| 56 | delegate Examples/BumpMapVPTangentParityGLSLES |
---|
| 57 | delegate Examples/BumpMapVPTangentParityCg |
---|
| 58 | } |
---|
| 59 | |
---|
| 60 | // Bump map fragment program, support for this is optional |
---|
| 61 | fragment_program Examples/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 Examples/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 Examples/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 Examples/BumpMapFP unified |
---|
| 91 | { |
---|
| 92 | delegate Examples/BumpMapFPGLSL |
---|
| 93 | delegate Examples/BumpMapFPGLSLES |
---|
| 94 | delegate Examples/BumpMapFPCg |
---|
| 95 | } |
---|
| 96 | |
---|
| 97 | // Bump map vertex program shadow receiver |
---|
| 98 | vertex_program Examples/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 Examples/BumpMapVPShadowRcvGLSLES glsles |
---|
| 107 | { |
---|
| 108 | source Example_BumpMappingShadowRcvVp.glsles |
---|
| 109 | profiles glsles |
---|
| 110 | } |
---|
| 111 | |
---|
| 112 | vertex_program Examples/BumpMapVPShadowRcvGLSL glsl |
---|
| 113 | { |
---|
| 114 | source Example_BumpMappingShadowRcvVp.glsl |
---|
| 115 | syntax glsl |
---|
| 116 | } |
---|
| 117 | |
---|
| 118 | vertex_program Examples/BumpMapVPShadowRcv unified |
---|
| 119 | { |
---|
| 120 | delegate Examples/BumpMapVPShadowRcvGLSL |
---|
| 121 | delegate Examples/BumpMapVPShadowRcvGLSLES |
---|
| 122 | delegate Examples/BumpMapVPShadowRcvCg |
---|
| 123 | } |
---|
| 124 | |
---|
| 125 | // Bump map fragment program shadow receiver, support for this is optional |
---|
| 126 | fragment_program Examples/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 Examples/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 Examples/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 Examples/BumpMapFPShadowRcv unified |
---|
| 159 | { |
---|
| 160 | delegate Examples/BumpMapFPShadowRcvGLSL |
---|
| 161 | delegate Examples/BumpMapFPShadowRcvGLSLES |
---|
| 162 | delegate Examples/BumpMapFPShadowRcvCg |
---|
| 163 | } |
---|
| 164 | |
---|
| 165 | // Bump map with specular vertex program, support for this is required |
---|
| 166 | vertex_program Examples/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 Examples/BumpMapVPSpecularGLSLES glsles |
---|
| 175 | { |
---|
| 176 | source Example_BumpMappingSpecularVp.glsles |
---|
| 177 | profiles glsles |
---|
| 178 | } |
---|
| 179 | |
---|
| 180 | vertex_program Examples/BumpMapVPSpecularGLSL glsl |
---|
| 181 | { |
---|
| 182 | source Example_BumpMappingSpecularVp.glsl |
---|
| 183 | syntax glsl |
---|
| 184 | } |
---|
| 185 | |
---|
| 186 | vertex_program Examples/BumpMapVPSpecular unified |
---|
| 187 | { |
---|
| 188 | delegate Examples/BumpMapVPSpecularGLSL |
---|
| 189 | delegate Examples/BumpMapVPSpecularGLSLES |
---|
| 190 | delegate Examples/BumpMapVPSpecularCg |
---|
| 191 | } |
---|
| 192 | |
---|
| 193 | // Bump map fragment program, support for this is optional |
---|
| 194 | fragment_program Examples/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 Examples/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 Examples/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 Examples/BumpMapFPSpecular unified |
---|
| 225 | { |
---|
| 226 | delegate Examples/BumpMapFPSpecularGLSL |
---|
| 227 | delegate Examples/BumpMapFPSpecularGLSLES |
---|
| 228 | delegate Examples/BumpMapFPSpecularCg |
---|
| 229 | } |
---|