Changeset 2266 for GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPBasic
- Timestamp:
- 03/19/07 16:53:44 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPBasic
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPBasic/GTPBasic.material
r2188 r2266 166 166 } 167 167 168 material GTP/Basic/ShadowReciever/Depth 168 material GTP/Basic/Focusing 169 { 170 technique 171 { 172 pass 173 { 174 vertex_program_ref GTP/Basic/LightVPos_VS 175 { 176 param_named_auto World world_matrix 177 param_named_auto WorldViewProj worldviewproj_matrix 178 param_named LightViewProj matrix4x4 179 } 180 fragment_program_ref GTP/Basic/LightVPos_PS 181 { 182 183 } 184 } 185 } 186 } 187 188 material GTP/Basic/ShadowReciever/Depth_VSM 169 189 { 170 190 technique … … 176 196 { 177 197 RenderTechnique DepthShadowReciever 178 179 180 181 182 183 184 185 186 187 198 { 199 max_light_count 1 200 vertex_program_name GTP/Basic/LightVPos_VS 201 fragment_program_name GTP/Basic/SM/Depth_VSM_PS 202 set_light_view false 203 set_light_farplane false 204 world_view_proj_param_name WorldViewProj 205 world_param_name World 206 light_viewproj_param_name LightViewProj 207 } 188 208 } 189 209 } … … 191 211 } 192 212 213 material GTP/Basic/ShadowReciever/Distance_VSM 214 { 215 technique 216 { 217 pass 218 { 219 lighting off 220 IllumTechniques 221 { 222 RenderTechnique DepthShadowReciever 223 { 224 max_light_count 1 225 vertex_program_name GTP/Basic/LightCPos_VS 226 fragment_program_name GTP/Basic/SM/Dist_VSM_PS 227 world_view_proj_param_name WorldViewProj 228 world_param_name World 229 light_viewproj_param_name LightViewProj 230 set_light_view true 231 set_light_farplane true 232 light_view_param_name LightView 233 light_farplane_param_name lightFarPlane 234 } 235 } 236 } 237 } 238 } 239 193 240 material GTP/Basic/ShadowReciever/ShadowAccum 194 241 { … … 197 244 pass 198 245 { 199 lighting off 200 ambient 1 1 1 1 201 diffuse 1 1 1 1 202 specular 1 1 1 1 203 emissive 0 0 0 204 246 lighting off 205 247 IllumTechniques 206 248 { -
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPBasic/GTPBasic.program
r2246 r2266 151 151 source GTPBasic_PS.hlsl 152 152 entry_point PlainTex3D 153 target ps_2_0 154 } 155 156 fragment_program GTP/Basic/LightVPos_PS hlsl 157 { 158 source GTPBasic_PS.hlsl 159 entry_point LightVPosPS 153 160 target ps_2_0 154 161 } -
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPBasic/GTPBasic_PS.hlsl
r2188 r2266 23 23 float4 CPos : TEXCOORD0; 24 24 }; 25 26 struct LightVPos_OUT 27 { 28 float4 VPos : POSITION; 29 float4 LightVPos : TEXCOORD0; 30 }; 31 25 32 26 33 … … 71 78 return IN.color * tex3D(Texture, IN.texCoord.xyz); 72 79 } 80 81 float4 LightVPosPS(LightVPos_OUT IN):COLOR 82 { 83 return float4(IN.LightVPos.xyz / IN.LightVPos.w, 1); 84 }
Note: See TracChangeset
for help on using the changeset viewer.