Last change
on this file since 9449 was
9449,
checked in by davidsa, 12 years ago
|
Added a transparent material for use in Hardware Occlusion Querying
|
File size:
1.2 KB
|
Line | |
---|
1 | material lensflare/halo |
---|
2 | { |
---|
3 | technique |
---|
4 | { |
---|
5 | pass |
---|
6 | { |
---|
7 | lighting off |
---|
8 | scene_blend src_alpha dest_alpha |
---|
9 | depth_write off |
---|
10 | |
---|
11 | cull_hardware none |
---|
12 | cull_software none |
---|
13 | |
---|
14 | texture_unit |
---|
15 | { |
---|
16 | tex_address_mode clamp |
---|
17 | texture lensflare-halo.png |
---|
18 | } |
---|
19 | } |
---|
20 | } |
---|
21 | } |
---|
22 | |
---|
23 | |
---|
24 | material lensflare/burst |
---|
25 | { |
---|
26 | technique |
---|
27 | { |
---|
28 | pass |
---|
29 | { |
---|
30 | lighting off |
---|
31 | scene_blend src_alpha dest_alpha |
---|
32 | depth_write off |
---|
33 | |
---|
34 | cull_hardware none |
---|
35 | cull_software none |
---|
36 | |
---|
37 | texture_unit |
---|
38 | { |
---|
39 | tex_address_mode clamp |
---|
40 | texture lensflare-burst.png |
---|
41 | } |
---|
42 | } |
---|
43 | } |
---|
44 | } |
---|
45 | |
---|
46 | //this material is fully transparent, it's only use is to calculate obscured pixels with HOQ |
---|
47 | material lensflare/hoq |
---|
48 | { |
---|
49 | technique |
---|
50 | { |
---|
51 | pass |
---|
52 | { |
---|
53 | lighting off |
---|
54 | scene_blend src_alpha dest_alpha |
---|
55 | depth_write off |
---|
56 | |
---|
57 | cull_hardware none |
---|
58 | cull_software none |
---|
59 | |
---|
60 | texture_unit |
---|
61 | { |
---|
62 | tex_address_mode clamp |
---|
63 | texture lensflare-hoq.png |
---|
64 | } |
---|
65 | } |
---|
66 | } |
---|
67 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.