1 | ///////////////////////////////////////////////////////////////////////////////
|
---|
2 | //
|
---|
3 | // ## ######
|
---|
4 | // ###### ###
|
---|
5 | // ## ############### Shark 3D Engine (www.shark3d.com)
|
---|
6 | // ########## # # #
|
---|
7 | // ######## Copyright (c) 1996-2006 Spinor GmbH.
|
---|
8 | // ######### # # # All rights reserved.
|
---|
9 | // ## ##########
|
---|
10 | // ##
|
---|
11 | //
|
---|
12 | ///////////////////////////////////////////////////////////////////////////////
|
---|
13 |
|
---|
14 | // Definition of the shaders.
|
---|
15 | // A shader is an object responsible for drawing objects.
|
---|
16 |
|
---|
17 | shader_array
|
---|
18 | {
|
---|
19 | name "plain"
|
---|
20 | ident "eng_shader_std.group"
|
---|
21 | param
|
---|
22 | {
|
---|
23 | env "shaderenv"
|
---|
24 | init_method "init_method"
|
---|
25 | child_array
|
---|
26 | {
|
---|
27 | ident "eng_shader_std.modelmesh"
|
---|
28 | param
|
---|
29 | {
|
---|
30 | env "shaderenv"
|
---|
31 | methods "init_method"
|
---|
32 | usage "render"
|
---|
33 | mesh_var "mesh"
|
---|
34 | texchan_var_array "tex0"
|
---|
35 | tex_attr_var_array "attr0"
|
---|
36 | }
|
---|
37 | }
|
---|
38 | {
|
---|
39 | ident "eng_shader_std.meshenter"
|
---|
40 | param
|
---|
41 | {
|
---|
42 | env "shaderenv"
|
---|
43 | mesh_var_array "mesh"
|
---|
44 | insp_ident "insp_shader_bound"
|
---|
45 | insp_rank 80000
|
---|
46 | insp_color 1.0 0.0 0.0
|
---|
47 | enter_array
|
---|
48 | {
|
---|
49 | triggers "main_trigger" "mirror_trigger"
|
---|
50 | method "main_method"
|
---|
51 | }
|
---|
52 | {
|
---|
53 | triggers "gtp_distance_impostor_trigger_MRT"
|
---|
54 | method "gtp_distance_impostor_MRT_method"
|
---|
55 | }
|
---|
56 | {
|
---|
57 | triggers "gtp_distance_impostor_trigger"
|
---|
58 | method "gtp_distance_impostor_method"
|
---|
59 | }
|
---|
60 | }
|
---|
61 | }
|
---|
62 | {
|
---|
63 | ident "eng_shader_std.paintmesh"
|
---|
64 | param
|
---|
65 | {
|
---|
66 | env "shaderenv"
|
---|
67 | methods "main_method"
|
---|
68 | rank 12000
|
---|
69 | insp_ident "insp_shader_mesh"
|
---|
70 | cull_mode "back"
|
---|
71 | depth_test "less_equal"
|
---|
72 | depth_write 1
|
---|
73 | mesh_var "mesh"
|
---|
74 | texchan_var_array "tex0"
|
---|
75 | tex_attr_var_array "attr0"
|
---|
76 | attrmat_var_array ""
|
---|
77 | use_vertex_bone_wgh 1
|
---|
78 | use_vertex_bone_subscr 1
|
---|
79 | use_vertex_point 1
|
---|
80 |
|
---|
81 | lightarray_var ""
|
---|
82 |
|
---|
83 | shaderprog_ident "levelutil/shader/prog/"
|
---|
84 | & "plain_pointtex.s3d_shaderprog_run"
|
---|
85 | shaderprog_param_array
|
---|
86 | }
|
---|
87 | }
|
---|
88 | {
|
---|
89 | ident "eng_shader_std.paintmesh"
|
---|
90 | param
|
---|
91 | {
|
---|
92 | env "shaderenv"
|
---|
93 | methods "gtp_distance_impostor_MRT_method"
|
---|
94 | rank 12000
|
---|
95 | insp_ident "insp_shader_mesh"
|
---|
96 | cull_mode "back"
|
---|
97 | depth_test "less_equal"
|
---|
98 | depth_write 1
|
---|
99 | mesh_var "mesh"
|
---|
100 | texchan_var_array "tex0"
|
---|
101 | tex_attr_var_array "attr0"
|
---|
102 | attrmat_var_array ""
|
---|
103 | use_vertex_bone_wgh 1
|
---|
104 | use_vertex_bone_subscr 1
|
---|
105 | use_vertex_point 1
|
---|
106 |
|
---|
107 | lightarray_var ""
|
---|
108 |
|
---|
109 | shaderprog_ident "levelutil/shader/prog/"
|
---|
110 | & "gtp_plain_pointtex.s3d_shaderprog_run"
|
---|
111 | shaderprog_param_array
|
---|
112 | }
|
---|
113 | }
|
---|
114 | {
|
---|
115 | ident "eng_shader_std.paintmesh"
|
---|
116 | param
|
---|
117 | {
|
---|
118 | env "shaderenv"
|
---|
119 | methods "gtp_distance_impostor_method"
|
---|
120 | rank 12000
|
---|
121 | insp_ident "insp_shader_mesh"
|
---|
122 | cull_mode "back"
|
---|
123 | depth_test "less_equal"
|
---|
124 | depth_write 1
|
---|
125 | mesh_var "mesh"
|
---|
126 | texchan_var_array "tex0"
|
---|
127 | tex_attr_var_array "attr0"
|
---|
128 | attrmat_var_array ""
|
---|
129 | use_vertex_bone_wgh 1
|
---|
130 | use_vertex_bone_subscr 1
|
---|
131 | use_vertex_point 1
|
---|
132 |
|
---|
133 | lightarray_var ""
|
---|
134 |
|
---|
135 | shaderprog_ident "levelutil/shader/prog/"
|
---|
136 | & "gtp_distance_impostor.s3d_shaderprog_run"
|
---|
137 | shaderprog_param_array
|
---|
138 | }
|
---|
139 | }
|
---|
140 | }
|
---|
141 | }
|
---|