[3255] | 1 | material GTP/Caustic/PhotonMap_HitEnv
|
---|
| 2 | {
|
---|
| 3 | technique
|
---|
| 4 | {
|
---|
| 5 | pass
|
---|
| 6 | {
|
---|
| 7 | vertex_program_ref GTP/Basic/Shaded_VS
|
---|
| 8 | {
|
---|
| 9 | param_named_auto WorldViewProj worldviewproj_matrix
|
---|
| 10 | param_named_auto World world_matrix
|
---|
| 11 | param_named_auto WorldInv inverse_world_matrix
|
---|
| 12 | }
|
---|
| 13 | fragment_program_ref GTP/Caustic/PhotonMapHitEnv_PS
|
---|
| 14 | {
|
---|
| 15 | param_named_auto cameraPos camera_position
|
---|
| 16 | param_named lastCenter float3 0 0 0
|
---|
| 17 | param_named refIndex float 0.85
|
---|
| 18 | }
|
---|
| 19 | //cubemap of distances
|
---|
| 20 | texture_unit
|
---|
| 21 | {
|
---|
| 22 | filtering none
|
---|
| 23 | }
|
---|
| 24 | }
|
---|
| 25 | }
|
---|
| 26 | }
|
---|
| 27 |
|
---|
| 28 | material GTP/Caustic/CauCube_PointSprite
|
---|
| 29 | {
|
---|
| 30 | technique
|
---|
| 31 | {
|
---|
| 32 | pass
|
---|
| 33 | {
|
---|
| 34 | cull_hardware none
|
---|
| 35 | scene_blend one one
|
---|
| 36 | scene_blend_alpha one zero
|
---|
| 37 | depth_check off
|
---|
| 38 | point_sprites on
|
---|
| 39 | vertex_program_ref GTP/Caustic/CauCube_PointSprite_VS
|
---|
| 40 | {
|
---|
| 41 | param_named_auto WorldView worldview_matrix
|
---|
| 42 | param_named_auto Proj projection_matrix
|
---|
| 43 | param_named CauSpriteSize float 10
|
---|
| 44 | }
|
---|
| 45 | fragment_program_ref GTP/Caustic/CauCube_PointSprite_PS
|
---|
| 46 | {
|
---|
| 47 | param_named CausticColor float4 1 1 1 0.8
|
---|
| 48 | }
|
---|
| 49 | texture_unit
|
---|
| 50 | {
|
---|
| 51 | vertex_texture true
|
---|
| 52 | }
|
---|
| 53 | texture_unit
|
---|
| 54 | {
|
---|
| 55 | texture PowerOfPhotonHitTexel.dds
|
---|
| 56 | }
|
---|
| 57 | }
|
---|
| 58 | }
|
---|
| 59 | }
|
---|
| 60 |
|
---|
| 61 | material GTP/Caustic/CauCube_Triangles
|
---|
| 62 | {
|
---|
| 63 | technique
|
---|
| 64 | {
|
---|
| 65 | pass
|
---|
| 66 | {
|
---|
| 67 | cull_hardware none
|
---|
| 68 | scene_blend one one
|
---|
| 69 | scene_blend_alpha one zero
|
---|
| 70 | depth_write off
|
---|
| 71 | vertex_program_ref GTP/Caustic/CauCube_Triangles_VS
|
---|
| 72 | {
|
---|
| 73 | param_named_auto WorldView worldview_matrix
|
---|
| 74 | param_named_auto Proj projection_matrix
|
---|
| 75 | param_named PhotonMapResolution float 64
|
---|
| 76 | param_named WorldSize float 10
|
---|
| 77 | }
|
---|
| 78 | fragment_program_ref GTP/Caustic/CauCube_Triangles_PS
|
---|
| 79 | {
|
---|
| 80 | param_named CausticColor float4 0.7 0.7 0.5 1
|
---|
| 81 |
|
---|
| 82 | }
|
---|
| 83 | texture_unit
|
---|
| 84 | {
|
---|
| 85 | vertex_texture true
|
---|
| 86 | }
|
---|
| 87 | }
|
---|
| 88 | }
|
---|
| 89 | }
|
---|
| 90 |
|
---|
| 91 | material GTP/Caustic/Glass
|
---|
| 92 | {
|
---|
| 93 | technique
|
---|
| 94 | {
|
---|
| 95 | pass
|
---|
| 96 | {
|
---|
| 97 | IllumTechniques
|
---|
| 98 | {
|
---|
| 99 | RenderTechnique ColorCubeMap
|
---|
| 100 | {
|
---|
| 101 | update_interval 0
|
---|
| 102 | update_all_face true
|
---|
| 103 | }
|
---|
| 104 | RenderTechnique DistanceCubeMap
|
---|
| 105 | {
|
---|
| 106 | update_interval 0
|
---|
| 107 | update_all_face true
|
---|
| 108 | }
|
---|
| 109 | RenderTechnique CausticCaster
|
---|
| 110 | {
|
---|
| 111 | attenuation 1000
|
---|
| 112 | update_interval 1
|
---|
| 113 | update_all_face true
|
---|
| 114 | photonmap_resolution 64
|
---|
| 115 | caustic_cubemap_resolution 256
|
---|
| 116 | photon_map_material GTP/Caustic/PhotonMap_HitEnv
|
---|
| 117 | //caustic_map_material GTP/Caustic/CauCube_PointSprite
|
---|
| 118 | caustic_map_material GTP/Caustic/CauCube_Triangles
|
---|
| 119 | use_triangles true
|
---|
| 120 | blur_caustic_cubemap true
|
---|
| 121 | }
|
---|
| 122 |
|
---|
| 123 | }
|
---|
| 124 | vertex_program_ref GTP/Basic/Shaded_VS
|
---|
| 125 | {
|
---|
| 126 | param_named_auto WorldViewProj worldviewproj_matrix
|
---|
| 127 | param_named_auto World world_matrix
|
---|
| 128 | param_named_auto WorldInv inverse_world_matrix
|
---|
| 129 | }
|
---|
| 130 | fragment_program_ref GTP/EnvMap/Localized_Refraction_PS
|
---|
| 131 | {
|
---|
| 132 | param_named_auto cameraPos camera_position
|
---|
| 133 | param_named lastCenter float3 0 0 0
|
---|
| 134 | param_named sFresnel float 0.1
|
---|
| 135 | param_named sRefraction float 0.85
|
---|
| 136 |
|
---|
| 137 | }
|
---|
| 138 | //Cube map for reflections and refractions
|
---|
| 139 | texture_unit
|
---|
| 140 | {
|
---|
| 141 |
|
---|
| 142 | }
|
---|
| 143 | //Cube map of distances
|
---|
| 144 | texture_unit
|
---|
| 145 | {
|
---|
| 146 | filtering none
|
---|
| 147 | }
|
---|
| 148 | }
|
---|
| 149 | }
|
---|
| 150 | }
|
---|
| 151 |
|
---|
| 152 | material GTP/Caustic/Glass_PointSprite
|
---|
| 153 | {
|
---|
| 154 | technique
|
---|
| 155 | {
|
---|
| 156 | pass
|
---|
| 157 | {
|
---|
| 158 | IllumTechniques
|
---|
| 159 | {
|
---|
| 160 | RenderTechnique ColorCubeMap
|
---|
| 161 | {
|
---|
| 162 | update_interval 0
|
---|
| 163 | update_all_face true
|
---|
| 164 | }
|
---|
| 165 | RenderTechnique DistanceCubeMap
|
---|
| 166 | {
|
---|
| 167 | update_interval 0
|
---|
| 168 | update_all_face true
|
---|
| 169 | }
|
---|
| 170 | RenderTechnique CausticCaster
|
---|
| 171 | {
|
---|
| 172 | attenuation 1000
|
---|
| 173 | update_interval 1
|
---|
| 174 | update_all_face true
|
---|
| 175 | photonmap_resolution 64
|
---|
| 176 | caustic_cubemap_resolution 256
|
---|
| 177 | photon_map_material GTP/Caustic/PhotonMap_HitEnv
|
---|
| 178 | caustic_map_material GTP/Caustic/CauCube_PointSprite
|
---|
| 179 | blur_caustic_cubemap false
|
---|
| 180 | }
|
---|
| 181 |
|
---|
| 182 | }
|
---|
| 183 | vertex_program_ref GTP/Basic/Shaded_VS
|
---|
| 184 | {
|
---|
| 185 | param_named_auto WorldViewProj worldviewproj_matrix
|
---|
| 186 | param_named_auto World world_matrix
|
---|
| 187 | param_named_auto WorldInv inverse_world_matrix
|
---|
| 188 | }
|
---|
| 189 | fragment_program_ref GTP/EnvMap/Localized_Refraction_PS
|
---|
| 190 | {
|
---|
| 191 | param_named_auto cameraPos camera_position
|
---|
| 192 | param_named lastCenter float3 0 0 0
|
---|
| 193 | param_named sFresnel float 0.1
|
---|
| 194 | param_named sRefraction float 0.8
|
---|
| 195 | }
|
---|
| 196 | //Cube map for reflections and refractions
|
---|
| 197 | texture_unit
|
---|
| 198 | {
|
---|
| 199 |
|
---|
| 200 | }
|
---|
| 201 | //Cube map of distances
|
---|
| 202 | texture_unit
|
---|
| 203 | {
|
---|
| 204 | filtering none
|
---|
| 205 | }
|
---|
| 206 | }
|
---|
| 207 | }
|
---|
| 208 | } |
---|