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