Last change
on this file since 11129 was
11084,
checked in by landauf, 9 years ago
|
added glow shader & textures
|
-
Property svn:eol-style set to
native
|
File size:
1.4 KB
|
Line | |
---|
1 | fragment_program GlowX_fp cg |
---|
2 | { |
---|
3 | source glow.cg |
---|
4 | entry_point GlowX_fp |
---|
5 | |
---|
6 | default_params |
---|
7 | { |
---|
8 | param_named_auto invTexSize inverse_texture_size 0 |
---|
9 | } |
---|
10 | |
---|
11 | profiles ps_2_0 arbfp1 |
---|
12 | } |
---|
13 | |
---|
14 | material GlowCompositorMat/GlowX |
---|
15 | { |
---|
16 | technique |
---|
17 | { |
---|
18 | pass |
---|
19 | { |
---|
20 | cull_hardware none |
---|
21 | cull_software none |
---|
22 | depth_func always_pass |
---|
23 | |
---|
24 | fragment_program_ref GlowX_fp |
---|
25 | { |
---|
26 | } |
---|
27 | |
---|
28 | texture_unit |
---|
29 | { |
---|
30 | tex_coord_set 0 |
---|
31 | tex_address_mode clamp |
---|
32 | filtering linear linear linear |
---|
33 | } |
---|
34 | } |
---|
35 | } |
---|
36 | } |
---|
37 | |
---|
38 | fragment_program GlowY_fp cg |
---|
39 | { |
---|
40 | source glow.cg |
---|
41 | entry_point GlowY_fp |
---|
42 | |
---|
43 | default_params |
---|
44 | { |
---|
45 | param_named_auto invTexSize inverse_texture_size 0 |
---|
46 | } |
---|
47 | |
---|
48 | profiles ps_2_0 arbfp1 |
---|
49 | } |
---|
50 | |
---|
51 | material GlowCompositorMat/GlowY |
---|
52 | { |
---|
53 | technique |
---|
54 | { |
---|
55 | pass |
---|
56 | { |
---|
57 | cull_hardware none |
---|
58 | cull_software none |
---|
59 | depth_func always_pass |
---|
60 | |
---|
61 | fragment_program_ref GlowY_fp |
---|
62 | { |
---|
63 | } |
---|
64 | |
---|
65 | texture_unit |
---|
66 | { |
---|
67 | tex_coord_set 0 |
---|
68 | tex_address_mode clamp |
---|
69 | filtering linear linear linear |
---|
70 | } |
---|
71 | } |
---|
72 | } |
---|
73 | } |
---|
74 | |
---|
75 | fragment_program GlowBlend_fp cg |
---|
76 | { |
---|
77 | source glow.cg |
---|
78 | entry_point GlowBlend_fp |
---|
79 | |
---|
80 | profiles ps_2_0 arbfp1 |
---|
81 | } |
---|
82 | |
---|
83 | material GlowCompositorMat/GlowBlend |
---|
84 | { |
---|
85 | technique |
---|
86 | { |
---|
87 | pass |
---|
88 | { |
---|
89 | cull_hardware none |
---|
90 | cull_software none |
---|
91 | depth_func always_pass |
---|
92 | |
---|
93 | fragment_program_ref GlowBlend_fp |
---|
94 | { |
---|
95 | } |
---|
96 | |
---|
97 | texture_unit |
---|
98 | { |
---|
99 | tex_coord_set 0 |
---|
100 | tex_address_mode clamp |
---|
101 | filtering trilinear |
---|
102 | } |
---|
103 | |
---|
104 | texture_unit |
---|
105 | { |
---|
106 | tex_coord_set 0 |
---|
107 | tex_address_mode clamp |
---|
108 | filtering trilinear |
---|
109 | } |
---|
110 | } |
---|
111 | } |
---|
112 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.