[1094] | 1 | material GameTools/PhotonMapCaustic
|
---|
| 2 | {
|
---|
| 3 | technique
|
---|
| 4 | {
|
---|
| 5 |
|
---|
| 6 | pass
|
---|
| 7 | {
|
---|
| 8 | vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS
|
---|
| 9 | {
|
---|
| 10 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
| 11 | param_named_auto world world_matrix
|
---|
| 12 | param_named_auto worldIT inverse_transpose_world_matrix
|
---|
| 13 | }
|
---|
| 14 | fragment_program_ref GameTools/PhotonMapCausticPS
|
---|
| 15 | {
|
---|
| 16 | param_named_auto cameraPos camera_position
|
---|
| 17 | param_named lastCenter float3 0 0 0
|
---|
| 18 | }
|
---|
| 19 |
|
---|
| 20 | //distanec cubemap
|
---|
| 21 | texture_unit
|
---|
| 22 | {
|
---|
| 23 | cubic_texture
|
---|
| 24 | filtering none
|
---|
| 25 | }
|
---|
| 26 |
|
---|
| 27 | }
|
---|
| 28 | }
|
---|
| 29 | }
|
---|
| 30 |
|
---|
| 31 | material GameTools/Cau
|
---|
| 32 | {
|
---|
| 33 | technique
|
---|
| 34 | {
|
---|
| 35 | pass
|
---|
| 36 | {
|
---|
| 37 | cull_hardware none
|
---|
| 38 | cull_software none
|
---|
| 39 | lighting off
|
---|
| 40 | scene_blend add
|
---|
| 41 | scene_blend src_alpha one
|
---|
| 42 | depth_write off
|
---|
| 43 | point_sprites on
|
---|
| 44 |
|
---|
| 45 | vertex_program_ref GameTools/CauVS
|
---|
| 46 | {
|
---|
| 47 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
| 48 | param_named_auto worldView worldview_matrix
|
---|
| 49 | param_named_auto Proj projection_matrix
|
---|
| 50 | param_named_auto resolution viewport_width
|
---|
| 51 | param_named CauSpriteSize float 10.0
|
---|
| 52 | }
|
---|
| 53 | fragment_program_ref GameTools/CauPS
|
---|
| 54 | {
|
---|
| 55 | param_named CauSpriteIntens float 0.15
|
---|
| 56 | param_named color float3 0.7 0.7 0.5
|
---|
| 57 | }
|
---|
| 58 |
|
---|
| 59 | texture_unit
|
---|
| 60 | {
|
---|
| 61 | vertex_texture true
|
---|
| 62 | texture flare.png
|
---|
| 63 | }
|
---|
| 64 | texture_unit
|
---|
| 65 | {
|
---|
| 66 | texture PowerOfPhotonHitTexel.dds
|
---|
| 67 | }
|
---|
| 68 |
|
---|
| 69 | }
|
---|
| 70 | }
|
---|
| 71 | }
|
---|
| 72 |
|
---|
| 73 |
|
---|
| 74 | material GameTools/CausticGlass
|
---|
| 75 | {
|
---|
| 76 |
|
---|
| 77 | technique
|
---|
| 78 | {
|
---|
| 79 |
|
---|
| 80 | pass
|
---|
| 81 | {
|
---|
| 82 | IllumTechniques
|
---|
| 83 | {
|
---|
| 84 | RenderTechnique ColorCubeMap
|
---|
| 85 | {
|
---|
| 86 | update_interval 0
|
---|
| 87 | distance_calc true 3.5
|
---|
| 88 | }
|
---|
| 89 | RenderTechnique DistanceCubeMap
|
---|
| 90 | {
|
---|
| 91 | update_interval 0
|
---|
| 92 | distance_calc true 3.5
|
---|
| 93 | }
|
---|
| 94 | RenderTechnique CausticCaster
|
---|
| 95 | {
|
---|
| 96 | attenuation 0
|
---|
| 97 | }
|
---|
| 98 |
|
---|
| 99 | }
|
---|
| 100 |
|
---|
| 101 |
|
---|
| 102 | vertex_program_ref GameTools/CubeMap/VertexPrograms/LocalizedVS
|
---|
| 103 | {
|
---|
| 104 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
| 105 | param_named_auto world world_matrix
|
---|
| 106 | }
|
---|
| 107 | fragment_program_ref GameTools/CubeMap/FragmentPrograms/LocalizedPS
|
---|
| 108 | {
|
---|
| 109 | param_named_auto cameraPos camera_position
|
---|
| 110 | param_named_auto lightPosition light_position 0
|
---|
| 111 | }
|
---|
| 112 |
|
---|
| 113 | //Cube map for reflections and refractions
|
---|
| 114 | texture_unit
|
---|
| 115 | {
|
---|
| 116 | cubic_texture cubemap.jpg combinedUVW
|
---|
| 117 | tex_address_mode clamp
|
---|
| 118 | colour_op replace
|
---|
| 119 | }
|
---|
| 120 |
|
---|
| 121 | //Cube map of distances
|
---|
| 122 | texture_unit
|
---|
| 123 | {
|
---|
| 124 | cubic_texture cubemap.jpg combinedUVW
|
---|
| 125 | tex_address_mode clamp
|
---|
| 126 | colour_op replace
|
---|
| 127 | }
|
---|
| 128 |
|
---|
| 129 |
|
---|
| 130 | }
|
---|
| 131 | }
|
---|
| 132 | } |
---|