Changeset 1519 for GTP/trunk/App/Demos/Illum/Ogre/Media
- Timestamp:
- 09/27/06 16:04:44 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Illum/Ogre/Media/materials
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/programs/GameTools_ReduceCubeMap.hlsl
r777 r1519 24 24 OUT.hPosition = IN.Position; 25 25 OUT.Position = IN.Position.xy; 26 //OUT.Position.y = 1 - OUT.Position.y; 26 27 return OUT; 27 28 } … … 31 32 { 32 33 RATE = 32; 34 CUBEMAP_SIZE = 128; 33 35 float4 color = 0; 34 36 // color += texCUBE( EnvironmentMapSampler, Tex ); … … 47 49 if (nFace == 2) dir = float3(pos.x, 1, -pos.y); 48 50 if (nFace == 3) dir = float3(pos.x, -1, pos.y); 49 if (nFace == 4) dir = float3(pos.x y, 1);51 if (nFace == 4) dir = float3(pos.x, pos.y, 1); 50 52 if (nFace == 5) dir = float3(-pos.x, pos.y,-1); 51 53 52 color += readCubeMap( EnvironmentMapSampler, dir);54 color += texCUBE( EnvironmentMapSampler, dir); 53 55 } 56 /* 57 if (nFace == 0) dir = float3(1, 0, 0); 58 if (nFace == 1) dir = float3(-1, 0, 0); 59 if (nFace == 2) dir = float3(0, 1, 0); 60 if (nFace == 3) dir = float3(0, -1, 0); 61 if (nFace == 4) dir = float3(0, 0, 1); 62 if (nFace == 5) dir = float3(0, 0,-1); 63 64 return texCUBE(EnvironmentMapSampler, dir);*/ 54 65 //return float4(IN.Position.xy,1,1); 55 66 return color / (RATE*RATE); -
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/Diffuse.material
r1094 r1519 47 47 IllumTechniques 48 48 { 49 RenderTechnique DistanceCubeMap 50 { 51 update_interval 1 52 distance_calc false 53 } 49 54 RenderTechnique ReducedColorCubeMap 50 55 { 51 update_interval 3 56 update_interval 1 57 reduced_resolution 4 58 resolution 128 52 59 distance_calc false 53 60 face_angle_calc false 54 update_all_face false61 update_all_face true 55 62 } 56 63 } … … 88 95 } 89 96 } 97 98 99 100 vertex_program Diffuse2VS hlsl 101 { 102 source GameTools_Diffuse.hlsl 103 entry_point DiffuseVS 104 target vs_2_0 105 } 106 107 fragment_program Diffuse2PS hlsl 108 { 109 source GameTools_Diffuse.hlsl 110 entry_point DiffusePS 111 target ps_3_0 112 } 113 114 material GameTools/Diffuse2 115 { 116 technique 117 { 118 pass 119 { 120 121 IllumTechniques 122 { 123 RenderTechnique DistanceCubeMap 124 { 125 update_interval 1 126 distance_calc false 127 } 128 RenderTechnique ReducedColorCubeMap 129 { 130 update_interval 1 131 reduced_resolution 4 132 resolution 128 133 distance_calc false 134 face_angle_calc false 135 update_all_face true 136 } 137 } 138 139 140 vertex_program_ref Diffuse2VS 141 { 142 param_named_auto worldViewProj worldviewproj_matrix 143 param_named_auto world world_matrix 144 145 } 146 fragment_program_ref Diffuse2PS 147 { 148 param_named_auto cameraPos camera_position 149 param_named REDUCED_CUBEMAP_SIZE int 4 150 param_named lastCenter float3 0 0 0 151 param_named_auto world_IT inverse_transpose_world_matrix 152 } 153 154 //Cube map for reflections and refractions 155 texture_unit 156 { 157 cubic_texture cubemap.jpg combinedUVW 158 tex_address_mode clamp 159 colour_op replace 160 } 161 162 //Cube map of distances 163 texture_unit 164 { 165 cubic_texture cubemap.jpg combinedUVW 166 tex_address_mode clamp 167 colour_op replace 168 } 169 } 170 } 171 } -
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/GameTools.material
r1451 r1519 69 69 { 70 70 texture rockwall.tga 71 env_map cubic_normal71 //env_map cubic_normal 72 72 //vertex_texture true 73 73 } -
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/GlassHead.material
r1487 r1519 144 144 photonmap_resolution 32 145 145 caustic_cubemap_resolution 512 146 caustic_map_material GameTools/CauTri147 use_triangles true146 //caustic_map_material GameTools/CauTri 147 //use_triangles true 148 148 } 149 149
Note: See TracChangeset
for help on using the changeset viewer.