Changeset 2246
- Timestamp:
- 03/13/07 16:41:52 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Illum/Ogre/Media
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/PMDemo/PRMDemo.material
r2217 r2246 22 22 IllumTechniques 23 23 { 24 RenderTechnique DepthShadowReciever 25 { 26 max_light_count 2 27 vertex_program_name GTP/Basic/LightCPos_VS 28 fragment_program_name GTP/Basic/SM/Dist_VSM_PS 29 set_light_view true 30 set_light_farplane true 31 light_viewproj_param_name LightViewProj 32 light_view_param_name LightView 33 light_farplane_param_name lightFarPlane 34 world_view_proj_param_name WorldViewProj 35 world_param_name World 36 } 37 RenderTechnique PathMap 38 { 24 // RenderTechnique PathMap 25 // { 39 26 40 } 27 // } 28 // RenderTechnique DepthShadowReciever 29 // { 30 // max_light_count 2 31 // vertex_program_name GTP/Basic/LightCPos_VS 32 // fragment_program_name GTP/Basic/SM/Dist_VSM_PS 33 // set_light_view true 34 // set_light_farplane true 35 // light_viewproj_param_name LightViewProj 36 // light_view_param_name LightView 37 // light_farplane_param_name lightFarPlane 38 // world_view_proj_param_name WorldViewProj 39 // world_param_name World 40 // } 41 } 42 vertex_program_ref GTP/Basic/ShadedTex_VS 43 { 44 param_named_auto WorldViewProj worldviewproj_matrix 45 param_named_auto World world_matrix 46 param_named_auto WorldInv inverse_world_matrix 47 } 48 fragment_program_ref GTP/Basic/Shaded/TexturedOneLight_PS 49 { 50 param_named_auto lightPos light_position 0 51 param_named_auto lightDir light_direction 0 52 param_named_auto lightColor light_diffuse_colour 0 53 param_named_auto lightPower light_power 0 41 54 } 42 55 texture_unit color 43 56 { 44 colour_op replace57 colour_op replace 45 58 } 46 59 } -
GTP/trunk/App/Demos/Illum/Ogre/Media/PMDemo/PathMap.hlsl
r2217 r2246 4 4 uniform sampler2D clusterWeightIndexSampler : register(s1); 5 5 uniform sampler2D clusterWeightSampler : register(s2); 6 uniform sampler2D colorSampler : register(s3); 6 7 uniform float allClusterCount; 7 8 uniform float clusterCount; … … 50 51 } 51 52 52 return float4(col * 300, 1); 53 float3 color = tex2D(colorSampler, input.tex).rgb; 54 return float4(col * color, 1); 53 55 } 54 56 -
GTP/trunk/App/Demos/Illum/Ogre/Media/PMDemo/PathMapWeightCompute.hlsl
r2217 r2246 6 6 uniform float3 lightPos; 7 7 uniform float3 lightDir; 8 uniform float lightPower; 8 9 uniform float clusterCount; 9 10 uniform float4x4 lightViewProj; … … 44 45 float3 pos = tex2D(radionSampler, float2((werx + 0.25) * dataColumnWidth, (wery + 0.5) / 4096.0) ).xyz; 45 46 float3 dir = tex2D(radionSampler, float2((werx + 0.75) * dataColumnWidth, (wery + 0.5) / 4096.0) ).xyz; 47 dir = normalize(dir); 46 48 47 49 float3 diff = lightPos - pos; … … 66 68 //visibility = visibility * 0.00001 + 1.0; 67 69 68 float4 ret = visibility * pow(cosa, 9) * cosb / dist2 ;70 float4 ret = visibility * pow(cosa, 9) * cosb / dist2 * lightPower; 69 71 return ret; 70 72 } -
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPBasic/GTPBasic.program
r2188 r2246 188 188 target ps_3_0 189 189 } 190 191 fragment_program GTP/Basic/Shaded/TexturedOneLight_PS hlsl 192 { 193 source GTPBasicShading.hlsl 194 entry_point TexturedShadedOneLight_PS 195 target ps_2_0 196 } 190 197
Note: See TracChangeset
for help on using the changeset viewer.