@@ -91,7 +91,7 @@ void CBlender_Particle::Compile(CBlender_Compile& C)
9191 C.r_Sampler (" s_base" , C.L_textures [0 ], false , oClamp.value ? D3DTADDRESS_CLAMP : D3DTADDRESS_WRAP);
9292 C.r_End ();
9393}
94- #elif RENDER == R_R2
94+ #elif RENDER == R_R2 || RENDER == R_GL
9595void CBlender_Particle::Compile (CBlender_Compile& C)
9696{
9797 IBlender::Compile (C);
@@ -128,7 +128,7 @@ void CBlender_Particle::Compile(CBlender_Compile& C)
128128 C.r_End ();
129129 break ;
130130 case SE_R2_SHADOW: // smap
131- // HARD or SOFT: shadow-map
131+ // HARD or SOFT: shadow-map
132132 switch (oBlend.IDselected )
133133 {
134134 case 0 :
@@ -184,18 +184,18 @@ void CBlender_Particle::Compile(CBlender_Compile& C)
184184 " particle" , " particle" , FALSE , TRUE , FALSE , TRUE , D3DBLEND_SRCALPHA, D3DBLEND_INVSRCALPHA, TRUE , 0 );
185185 break ; // BLEND
186186 case 2 :
187- C.r_Pass (" particle" , " particle" , FALSE , TRUE , FALSE , TRUE , D3DBLEND_ONE, D3DBLEND_ONE, TRUE , 0 );
187+ C.r_Pass (" particle" , " particle" , false , TRUE , FALSE , TRUE , D3DBLEND_ONE, D3DBLEND_ONE, TRUE , 0 );
188188 break ; // ADD
189189 case 3 :
190- C.r_Pass (" particle" , " particle" , FALSE , TRUE , FALSE , TRUE , D3DBLEND_DESTCOLOR, D3DBLEND_ZERO, TRUE , 0 );
190+ C.r_Pass (" particle" , " particle" , false , TRUE , FALSE , TRUE , D3DBLEND_DESTCOLOR, D3DBLEND_ZERO, TRUE , 0 );
191191 break ; // MUL
192192 case 4 :
193- C.r_Pass (" particle" , " particle" , FALSE , TRUE , FALSE , TRUE , D3DBLEND_DESTCOLOR, D3DBLEND_SRCCOLOR, TRUE , 0 );
193+ C.r_Pass (" particle" , " particle" , false , TRUE , FALSE , TRUE , D3DBLEND_DESTCOLOR, D3DBLEND_SRCCOLOR, TRUE , 0 );
194194 break ; // MUL_2X
195195 case 5 :
196- C.r_Pass (" particle" , " particle" , FALSE , TRUE , FALSE , TRUE , D3DBLEND_SRCALPHA, D3DBLEND_ONE, TRUE , 0 );
196+ C.r_Pass (" particle" , " particle" , false , TRUE , FALSE , TRUE , D3DBLEND_SRCALPHA, D3DBLEND_ONE, TRUE , 0 );
197197 break ; // ALPHA-ADD
198- };
198+ }
199199 {
200200 // C.r_Sampler ("s_base", C.L_textures[0],false,oClamp.value?D3DTADDRESS_CLAMP:D3DTADDRESS_WRAP);
201201 C.r_dx10Texture (" s_base" , C.L_textures [0 ]);
@@ -214,45 +214,45 @@ void CBlender_Particle::Compile(CBlender_Compile& C)
214214 switch (oBlend.IDselected )
215215 {
216216 case 0 :
217- C.r_Pass (" particle" , " particle" , FALSE , TRUE , TRUE , FALSE , D3DBLEND_ONE, D3DBLEND_ZERO, TRUE , 200 );
217+ C.r_Pass (" particle" , " particle" , false , TRUE , TRUE , FALSE , D3DBLEND_ONE, D3DBLEND_ZERO, TRUE , 200 );
218218 C.r_ColorWriteEnable (false , false , false , false );
219219 break ; // SET
220220 case 1 :
221- C.r_Pass (" particle-clip" , " particle_s-blend" , FALSE , TRUE , FALSE , TRUE , D3DBLEND_DESTCOLOR, D3DBLEND_ZERO,
222- TRUE , 0 );
221+ C.r_Pass (" particle-clip" , " particle_s-blend" , false , TRUE , FALSE , TRUE , D3DBLEND_DESTCOLOR, D3DBLEND_ZERO,
222+ TRUE , 0 );
223223 break ; // BLEND
224224 case 2 :
225- C.r_Pass (" particle-clip" , " particle_s-add" , FALSE , TRUE , FALSE , TRUE , D3DBLEND_DESTCOLOR, D3DBLEND_ZERO,
226- TRUE , 0 );
225+ C.r_Pass (" particle-clip" , " particle_s-add" , false , TRUE , FALSE , TRUE , D3DBLEND_DESTCOLOR, D3DBLEND_ZERO,
226+ TRUE , 0 );
227227 break ; // ADD
228228 case 3 :
229- C.r_Pass (" particle-clip" , " particle_s-mul" , FALSE , TRUE , FALSE , TRUE , D3DBLEND_DESTCOLOR, D3DBLEND_ZERO,
230- TRUE , 0 );
229+ C.r_Pass (" particle-clip" , " particle_s-mul" , false , TRUE , FALSE , TRUE , D3DBLEND_DESTCOLOR, D3DBLEND_ZERO,
230+ TRUE , 0 );
231231 break ; // MUL
232232 case 4 :
233- C.r_Pass (" particle-clip" , " particle_s-mul" , FALSE , TRUE , FALSE , TRUE , D3DBLEND_DESTCOLOR, D3DBLEND_ZERO,
234- TRUE , 0 );
233+ C.r_Pass (" particle-clip" , " particle_s-mul" , false , TRUE , FALSE , TRUE , D3DBLEND_DESTCOLOR, D3DBLEND_ZERO,
234+ TRUE , 0 );
235235 break ; // MUL_2X
236236 case 5 :
237- C.r_Pass (" particle-clip" , " particle_s-aadd" , FALSE , TRUE , FALSE , TRUE , D3DBLEND_DESTCOLOR, D3DBLEND_ZERO ,
238- TRUE , 0 );
237+ C.r_Pass (" particle-clip" , " particle_s-aadd" , false , TRUE , FALSE , TRUE , D3DBLEND_DESTCOLOR,
238+ D3DBLEND_ZERO, TRUE , 0 );
239239 break ; // ALPHA-ADD
240- };
240+ }
241241 {
242- // C.r_Sampler ("s_base", C.L_textures[0],false,oClamp.value?D3DTADDRESS_CLAMP:D3DTADDRESS_WRAP);
242+ // C.r_Sampler ("s_base", C.L_textures[0],false,oClamp.value?D3DTADDRESS_CLAMP:D3DTADDRESS_WRAP);
243243 C.r_dx10Texture (" s_base" , C.L_textures [0 ]);
244244 u32 hSampler = C.r_dx10Sampler (" smp_base" );
245245 if (oClamp.value && (hSampler != (u32 )-1 ))
246246 C.i_dx10Address (hSampler, D3DTADDRESS_CLAMP);
247247 // Igor: soft particles
248- // C.r_Sampler ("s_position", "$user$position");
248+ // C.r_Sampler ("s_position", "$user$position");
249249 C.r_dx10Texture (" s_position" , " $user$position" );
250250 C.r_dx10Sampler (" smp_nofilter" );
251251 }
252252 C.r_End ();
253253 break ;
254254 case 4 : // deffer-EMAP
255255 break ;
256- };
256+ }
257257}
258258#endif
0 commit comments