- Timestamp:
- 02/20/07 14:10:19 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPAdvancedEnvMap/multibounce
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPAdvancedEnvMap/multibounce/GTPMultipleReflection.hlsl
r2095 r2131 12 12 13 13 #define MAX_LIN_ITERATIONCOUNT 50 //80 14 #define MIN_LIN_ITERATIONCOUNT 15//6014 #define MIN_LIN_ITERATIONCOUNT 30 //60 15 15 #define SECANT_ITERATIONCOUNT 1 16 #define MAX_RAY_DEPTH 416 #define MAX_RAY_DEPTH 2 17 17 18 18 void linearSearch( float3 x, float3 R, float3 N, samplerCUBE mp, … … 240 240 float3 l = Hit(x, R, N, NormDistMap1, NormDistMap2, CubeMap, DistanceMap, Il, Nl); 241 241 if(Il.a == 0) 242 { 243 //I = readCubeMap(CubeMap, l); 242 { 244 243 depth += 1; 245 244 } … … 252 251 N = normalize(Nl); 253 252 V = R; 254 } 255 253 } 254 255 if(I.a == 0) 256 { 257 float ri = refIndex; 258 if(dot(V,N) > 0) 259 { 260 ri = 1.0 / ri; 261 N = -N; 262 } 263 float3 R = refract( V, N, ri); 264 if(dot(R,R) == 0) R = reflect( V, N); 265 I = readCubeMap(CubeMap, R); 266 } 267 256 268 I *= (1.0 - F); 257 269 … … 307 319 } 308 320 if(I.a == 0) 309 I = 0;321 I = float4(V,1); 310 322 else 311 323 I = float4(l,1); -
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPAdvancedEnvMap/multibounce/GTPMultipleReflection_MinMax.hlsl
r2095 r2131 11 11 } 12 12 13 #define MAX_LIN_ITERATIONCOUNT 80 //8014 #define MIN_LIN_ITERATIONCOUNT 60 //6013 #define MAX_LIN_ITERATIONCOUNT 50 //80 14 #define MIN_LIN_ITERATIONCOUNT 30 //60 15 15 #define SECANT_ITERATIONCOUNT 1 16 16 #define MAX_RAY_DEPTH 4 -
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPAdvancedEnvMap/multibounce/multipleReflection/GTPMultipleReflection.material
r2054 r2131 36 36 RenderTechnique ColorCubeMap 37 37 { 38 resolution 102438 resolution 512 39 39 layer 1 40 40 texture_unit_id 2 41 update_interval 041 update_interval 1 42 42 distance_calc false 43 43 face_angle_calc false … … 49 49 RenderTechnique ColorCubeMap 50 50 { 51 resolution 102451 resolution 512 52 52 layer 2 53 53 texture_unit_id 3 54 update_interval 054 update_interval 1 55 55 distance_calc false 56 56 face_angle_calc false -
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPAdvancedEnvMap/multibounce/multipleReflectionMinMax/GTPMultipleReflectionMinMax.material
r2095 r2131 33 33 face_angle_calc false 34 34 update_all_face true 35 get_minmax true36 min_var_name min37 max_var_name Max35 //get_minmax true 36 //min_var_name min 37 //max_var_name Max 38 38 } 39 39 RenderTechnique ColorCubeMap 40 40 { 41 resolution 102441 resolution 512 42 42 layer 1 43 43 texture_unit_id 2 44 update_interval 044 update_interval 1 45 45 distance_calc false 46 46 face_angle_calc false … … 49 49 render_self true 50 50 self_material GTP/MultiBounce/NormalDistanceCCW 51 get_minmax true52 min_var_name min153 max_var_name max151 //get_minmax true 52 //min_var_name min1 53 //max_var_name max1 54 54 } 55 55 RenderTechnique ColorCubeMap 56 56 { 57 resolution 102457 resolution 512 58 58 layer 2 59 59 texture_unit_id 3 60 update_interval 060 update_interval 1 61 61 distance_calc false 62 62 face_angle_calc false … … 65 65 render_self true 66 66 self_material GTP/MultiBounce/NormalDistanceCW 67 get_minmax true68 min_var_name min269 max_var_name max267 //get_minmax true 68 //min_var_name min2 69 //max_var_name max2 70 70 } 71 71 } … … 78 78 fragment_program_ref GTP/MultiBounce/Reflection_MinMax_PS 79 79 { 80 param_named_auto cameraPos camera_position 80 param_named_auto cameraPos camera_position 81 param_named min float4 0 0 0 0.76 82 param_named Max float4 0 0 0 3.077 83 param_named min1 float4 0 0 0 0.14 84 param_named max1 float4 0 0 0 0.35 85 param_named min2 float4 0 0 0 0.15 86 param_named max2 float4 0 0 0 0.46 81 87 } 82 88 -
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPAdvancedEnvMap/multibounce/multipleRefraction/GTPMultipleRefraction.material
r2054 r2131 20 20 { 21 21 resolution 1024 22 update_interval 022 update_interval 1 23 23 distance_calc false 24 24 face_angle_calc false … … 29 29 { 30 30 resolution 1024 31 update_interval 031 update_interval 1 32 32 distance_calc false 33 33 face_angle_calc false … … 39 39 layer 1 40 40 texture_unit_id 2 41 update_interval 041 update_interval 1 42 42 distance_calc false 43 43 face_angle_calc false … … 52 52 layer 2 53 53 texture_unit_id 3 54 update_interval 054 update_interval 1 55 55 distance_calc false 56 56 face_angle_calc false
Note: See TracChangeset
for help on using the changeset viewer.