1 | vertex_program BottleVS hlsl
|
---|
2 | {
|
---|
3 | source bottle.hlsl
|
---|
4 | entry_point BottleVS
|
---|
5 | target vs_2_0
|
---|
6 | }
|
---|
7 |
|
---|
8 | fragment_program BottlePS hlsl
|
---|
9 | {
|
---|
10 | source bottle.hlsl
|
---|
11 | entry_point BottlePS
|
---|
12 | target ps_3_0
|
---|
13 | }
|
---|
14 |
|
---|
15 | fragment_program BottlePhotonMapPS hlsl
|
---|
16 | {
|
---|
17 | source bottle.hlsl
|
---|
18 | entry_point BottlePhotonMapPS
|
---|
19 | target ps_3_0
|
---|
20 | }
|
---|
21 |
|
---|
22 | material bottle
|
---|
23 | {
|
---|
24 |
|
---|
25 | transparency_casts_shadows on
|
---|
26 |
|
---|
27 | technique
|
---|
28 | {
|
---|
29 | pass
|
---|
30 | {
|
---|
31 | IllumTechniques
|
---|
32 | {
|
---|
33 | RenderTechnique ColorCubeMap
|
---|
34 | {
|
---|
35 | update_interval 1
|
---|
36 | distance_calc false
|
---|
37 | face_angle_calc false
|
---|
38 | update_all_face false
|
---|
39 | }
|
---|
40 | }
|
---|
41 |
|
---|
42 |
|
---|
43 | vertex_program_ref BottleVS
|
---|
44 | {
|
---|
45 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
46 | param_named_auto world world_matrix
|
---|
47 | param_named_auto worldI inverse_world_matrix
|
---|
48 | }
|
---|
49 | fragment_program_ref BottlePS
|
---|
50 | {
|
---|
51 | param_named_auto cameraPos camera_position
|
---|
52 | param_named_auto lightPosition light_position 0
|
---|
53 | param_named color float3 0.65 0.4 0.2
|
---|
54 | }
|
---|
55 |
|
---|
56 | //Cube map for reflections and refractions
|
---|
57 | texture_unit
|
---|
58 | {
|
---|
59 | cubic_texture cubemap.jpg combinedUVW
|
---|
60 | tex_address_mode clamp
|
---|
61 | colour_op replace
|
---|
62 | }
|
---|
63 |
|
---|
64 | }
|
---|
65 | }
|
---|
66 | }
|
---|
67 |
|
---|
68 |
|
---|
69 | material bottle2
|
---|
70 | {
|
---|
71 |
|
---|
72 | transparency_casts_shadows on
|
---|
73 | technique
|
---|
74 | {
|
---|
75 | pass
|
---|
76 | {
|
---|
77 | IllumTechniques
|
---|
78 | {
|
---|
79 | RenderTechnique ColorCubeMap
|
---|
80 | {
|
---|
81 | update_interval 1
|
---|
82 | distance_calc false
|
---|
83 | face_angle_calc false
|
---|
84 | update_all_face false
|
---|
85 | }
|
---|
86 |
|
---|
87 | }
|
---|
88 |
|
---|
89 |
|
---|
90 | vertex_program_ref BottleVS
|
---|
91 | {
|
---|
92 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
93 | param_named_auto world world_matrix
|
---|
94 | param_named_auto worldI inverse_world_matrix
|
---|
95 | }
|
---|
96 | fragment_program_ref BottlePS
|
---|
97 | {
|
---|
98 | param_named_auto cameraPos camera_position
|
---|
99 | param_named_auto lightPosition light_position 0
|
---|
100 | param_named color float3 0.2 0.65 0.2
|
---|
101 | }
|
---|
102 |
|
---|
103 | //Cube map for reflections and refractions
|
---|
104 | texture_unit
|
---|
105 | {
|
---|
106 | cubic_texture cubemap.jpg combinedUVW
|
---|
107 | tex_address_mode clamp
|
---|
108 | colour_op replace
|
---|
109 | }
|
---|
110 |
|
---|
111 | }
|
---|
112 | }
|
---|
113 | }
|
---|
114 |
|
---|