Line | |
---|
1 | material GameTools/CubeMap/Reduce
|
---|
2 | {
|
---|
3 |
|
---|
4 | technique
|
---|
5 | {
|
---|
6 | pass
|
---|
7 | {
|
---|
8 | //depth_check off
|
---|
9 | lighting off
|
---|
10 |
|
---|
11 | vertex_program_ref GameTools/CubeMap/VertexPrograms/ReduceVS
|
---|
12 | {
|
---|
13 | // param_named_auto worldViewProj worldviewproj_matrix
|
---|
14 | // param_named_auto world world_matrix
|
---|
15 | }
|
---|
16 | fragment_program_ref GameTools/CubeMap/FragmentPrograms/ReducePS
|
---|
17 | {
|
---|
18 | //param_named_auto cameraPos camera_position
|
---|
19 | param_named nFace int 0
|
---|
20 | param_named CUBEMAP_SIZE int 256
|
---|
21 | //param_named RATE int 2
|
---|
22 |
|
---|
23 | }
|
---|
24 |
|
---|
25 | //Cube map for reflections and refractions
|
---|
26 | texture_unit
|
---|
27 | {
|
---|
28 | filtering point point point
|
---|
29 | cubic_texture cubemap.jpg combinedUVW
|
---|
30 | tex_address_mode clamp
|
---|
31 | // env_map cubic_reflection
|
---|
32 | colour_op modulate
|
---|
33 | }
|
---|
34 |
|
---|
35 |
|
---|
36 | }
|
---|
37 | }
|
---|
38 | }
|
---|
39 |
|
---|
40 | material GameTools/CubeMap/Diffuse
|
---|
41 | {
|
---|
42 | technique
|
---|
43 | {
|
---|
44 | pass
|
---|
45 | {
|
---|
46 |
|
---|
47 | IllumTechniques
|
---|
48 | {
|
---|
49 | RenderTechnique ReducedColorCubeMap
|
---|
50 | {
|
---|
51 | update_interval 3
|
---|
52 | distance_calc false
|
---|
53 | face_angle_calc false
|
---|
54 | update_all_face false
|
---|
55 | }
|
---|
56 | }
|
---|
57 |
|
---|
58 |
|
---|
59 | vertex_program_ref GameTools/DiffuseVS
|
---|
60 | {
|
---|
61 | param_named_auto worldViewProj worldviewproj_matrix
|
---|
62 | param_named_auto world world_matrix
|
---|
63 |
|
---|
64 | }
|
---|
65 | fragment_program_ref GameTools/DiffusePS
|
---|
66 | {
|
---|
67 | param_named_auto cameraPos camera_position
|
---|
68 | param_named REDUCED_CUBEMAP_SIZE int 8
|
---|
69 | param_named lastCenter float3 0 0 0
|
---|
70 | }
|
---|
71 |
|
---|
72 | //Cube map for reflections and refractions
|
---|
73 | texture_unit
|
---|
74 | {
|
---|
75 | cubic_texture cubemap.jpg combinedUVW
|
---|
76 | tex_address_mode clamp
|
---|
77 | colour_op replace
|
---|
78 | }
|
---|
79 |
|
---|
80 | //Cube map of distances
|
---|
81 | texture_unit
|
---|
82 | {
|
---|
83 | cubic_texture cubemap.jpg combinedUVW
|
---|
84 | tex_address_mode clamp
|
---|
85 | colour_op replace
|
---|
86 | }
|
---|
87 | }
|
---|
88 | }
|
---|
89 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.