Changeset 2414 for GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA
- Timestamp:
- 06/06/07 10:25:13 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/FPSarm.material
r2404 r2414 1 1 material phong3 2 2 { 3 technique 3 technique maintechnique 4 4 { 5 pass 5 pass mainpass 6 6 { 7 ambient 1 1 1 18 diffuse 1 1 1 19 specular 0 0 0 210 emissive 0 0 011 12 //scene_blend alpha_blend13 7 depth_write on 14 //depth_check off15 8 cull_hardware none 16 17 texture_unit9 10 vertex_program_ref GTP/Basic/ShadedTex_VS 18 11 { 19 texture colortex.png 20 tex_coord_set 0 21 colour_op modulate 12 param_named_auto WorldViewProj worldviewproj_matrix 13 param_named_auto World world_matrix 14 param_named_auto WorldInv inverse_world_matrix 15 } 16 fragment_program_ref GTP/Basic/Shaded/TexturedTwoLights_PS 17 { 18 param_named_auto lightPos1 light_position 0 19 param_named_auto lightDir1 light_direction 0 20 param_named_auto lightColor1 light_diffuse_colour 0 21 param_named_auto lightPower1 light_power 0 22 23 param_named_auto lightPos2 light_position 1 24 param_named_auto lightDir2 light_direction 1 25 param_named_auto lightColor2 light_diffuse_colour 1 26 param_named_auto lightPower2 light_power 1 27 } 28 29 texture_unit basetexture 30 { 31 texture colortex.png 22 32 } 23 33 } -
GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/GTPMoriaGlow.compositor
r2398 r2414 65 65 pass render_quad 66 66 { 67 material GTP/ PostProc/Add67 material GTP/Moria/GlowFinalCombine 68 68 input 0 scene 69 69 input 1 rt1 -
GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/GTPMoriaPostProc.material
r2398 r2414 1 1 material GTP/Moria/PostProc/GlowCut : GTP/PostProc/GlowCut 2 2 { 3 technique 03 technique maintechnique 4 4 { 5 pass 05 pass mainpass 6 6 { 7 7 fragment_program_ref 8 8 { 9 param_named cutValue float 35.010 param_named timeBlur float 0. 49 param_named cutValue float 2.0 10 param_named timeBlur float 0.3 11 11 } 12 } 13 } 14 } 15 16 material GTP/Moria/GlowFinalCombine : GTP/PostProc/Combine 17 { 18 technique maintechnique 19 { 20 pass mainpass 21 { 22 fragment_program_ref GTP/PostProc/Combine_PS 23 { 24 param_named weight1 float 1.0 25 param_named weight2 float 0.35 26 } 12 27 } 13 28 } … … 16 31 material GTP/Moria/PostProc/GlowBlurH : GTP/PostProc/GlowBlurH 17 32 { 18 technique 033 technique maintechnique 19 34 { 20 pass 035 pass mainpass 21 36 { 22 37 fragment_program_ref 23 38 { 24 param_named Stretch float 1. 339 param_named Stretch float 1.7 25 40 } 26 41 } … … 30 45 material GTP/Moria/PostProc/GlowBlurV : GTP/PostProc/GlowBlurV 31 46 { 32 technique 047 technique maintechnique 33 48 { 34 pass 049 pass mainpass 35 50 { 36 51 fragment_program_ref 37 52 { 38 param_named Stretch float 1. 353 param_named Stretch float 1.7 39 54 } 40 55 } -
GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/MoriaDust.hlsl
r2392 r2414 86 86 87 87 //illumination 88 float3 L = lightCPos - IN.Q * lightCPos.w; 88 lightCPos.z *= -1; 89 float2 L = lightCPos.xy - IN.Q.xy; 89 90 float ld = length(L); 90 91 L = L / ld; 91 92 float3 V = normalize(-IN.Q); 92 float phase = /*lightPower / (ld*ld) * */tex2D(PhaseMap, float2(symmetry, dot(L,V)) * 0.5 + 0.5).r;93 float phase;// = /*lightPower / (ld*ld) * */tex2D(PhaseMap, float2(symmetry, dot(L,V)) * 0.5 + 0.5).r; 93 94 // float phase = (dot(L, V) + 1.0) * 0.5; 95 96 float ld2 = max(0.01, ld * ld); 97 phase = lightPower / ld2; 94 98 Color.rgb *= phase; 95 99 return Color; -
GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/MoriaDust.material
r2398 r2414 43 43 param_named_auto farplane far_clip_distance 44 44 param_named_auto nearplane near_clip_distance 45 param_named color float4 0. 55 0.56 0.5 2.545 param_named color float4 0.95 0.96 0.95 0.1 46 46 param_named symmetry float 0.1 47 47 param_named_auto lightCPos light_position_view_space 0 -
GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/MoriaDust.particle
r2376 r2414 2 2 MoriaDust 3 3 { 4 quota 20 04 quota 20 5 5 material MoriaDust 6 6 particle_width 25 … … 21 21 colour_range_end 1 1 1 0 22 22 direction 0 1 0 23 emission_rate 64.5223 emission_rate 100 24 24 position 0 0 0 25 25 velocity_min 0.1 26 26 velocity_max 0.3 27 time_to_live 2.258 28 time_to_live_min 2.258 29 time_to_live_max 18.06 27 time_to_live_min 3 28 time_to_live_max 5 30 29 duration 0 31 30 duration_min 0 … … 34 33 repeat_delay_min 0 35 34 repeat_delay_max 0 36 width 4037 height 4038 depth 1035 width 10 36 height 10 37 depth 5 39 38 } 40 39 … … 44 43 green1 0 45 44 blue1 0 46 alpha1 0. 345 alpha1 0.5 47 46 red2 0 48 47 green2 0 49 48 blue2 0 50 alpha2 -0. 351 state_change 12.2649 alpha2 -0.5 50 state_change 2 52 51 } 53 52 } -
GTP/trunk/App/Demos/Illum/Ogre/Media/MORIA/troll.material
r2386 r2414 148 148 } 149 149 } 150
Note: See TracChangeset
for help on using the changeset viewer.