Line | |
---|
1 | fragment_program GTP/MultiBounce/Refraction_PS hlsl
|
---|
2 | {
|
---|
3 | source GTPMultipleReflection.hlsl
|
---|
4 | entry_point MultipleRefractionPS
|
---|
5 | target ps_3_0
|
---|
6 | flow_control prefer
|
---|
7 | }
|
---|
8 |
|
---|
9 | material GTP/MultiBounce/Refractor
|
---|
10 | {
|
---|
11 | technique
|
---|
12 | {
|
---|
13 | pass
|
---|
14 | {
|
---|
15 | //cull_hardware none
|
---|
16 | IllumTechniques
|
---|
17 | {
|
---|
18 | RenderTechnique ColorCubeMap
|
---|
19 | {
|
---|
20 | resolution 1024
|
---|
21 | update_interval 1
|
---|
22 | distance_calc false
|
---|
23 | face_angle_calc false
|
---|
24 | update_all_face true
|
---|
25 |
|
---|
26 | }
|
---|
27 | RenderTechnique DistanceCubeMap
|
---|
28 | {
|
---|
29 | resolution 1024
|
---|
30 | update_interval 1
|
---|
31 | distance_calc false
|
---|
32 | face_angle_calc false
|
---|
33 | update_all_face true
|
---|
34 | }
|
---|
35 | RenderTechnique ColorCubeMap
|
---|
36 | {
|
---|
37 | resolution 1024
|
---|
38 | layer 1
|
---|
39 | texture_unit_id 2
|
---|
40 | update_interval 1
|
---|
41 | distance_calc false
|
---|
42 | face_angle_calc false
|
---|
43 | update_all_face true
|
---|
44 | render_env false
|
---|
45 | render_self true
|
---|
46 | self_material GTP/MultiBounce/NormalDistanceCCW
|
---|
47 | }
|
---|
48 | RenderTechnique ColorCubeMap
|
---|
49 | {
|
---|
50 | resolution 1024
|
---|
51 | layer 2
|
---|
52 | texture_unit_id 3
|
---|
53 | update_interval 1
|
---|
54 | distance_calc false
|
---|
55 | face_angle_calc false
|
---|
56 | update_all_face true
|
---|
57 | render_env false
|
---|
58 | render_self true
|
---|
59 | self_material GTP/MultiBounce/NormalDistanceCW
|
---|
60 | }
|
---|
61 | }
|
---|
62 | vertex_program_ref GTP/Basic/Shaded_CPos_VS
|
---|
63 | {
|
---|
64 | param_named_auto WorldViewProj worldviewproj_matrix
|
---|
65 | param_named_auto World world_matrix
|
---|
66 | param_named_auto WorldInv inverse_world_matrix
|
---|
67 | }
|
---|
68 | fragment_program_ref GTP/MultiBounce/Refraction_PS
|
---|
69 | {
|
---|
70 | param_named_auto cameraPos camera_position
|
---|
71 | param_named refIndex float 0.77
|
---|
72 | param_named sFresnel float 0.04
|
---|
73 | }
|
---|
74 |
|
---|
75 | //Cube map of environment
|
---|
76 | texture_unit
|
---|
77 | {
|
---|
78 | //filtering none
|
---|
79 | }
|
---|
80 | //Cube map of environment distances
|
---|
81 | texture_unit
|
---|
82 | {
|
---|
83 | filtering none
|
---|
84 | }
|
---|
85 |
|
---|
86 | //Cube map of reflective object's normals and distances CCW
|
---|
87 | texture_unit
|
---|
88 | {
|
---|
89 | filtering none
|
---|
90 | }
|
---|
91 | //Cube map of reflective object's normals and distances CW
|
---|
92 | texture_unit
|
---|
93 | {
|
---|
94 | filtering none
|
---|
95 | }
|
---|
96 | }
|
---|
97 | }
|
---|
98 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.