add game&rawdata
This commit is contained in:
parent
0133cd976c
commit
49b34b5546
45731 changed files with 709831 additions and 0 deletions
23
gamedata/shaders/r2/particles_xadd.s
Normal file
23
gamedata/shaders/r2/particles_xadd.s
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
function normal (shader, t_base, t_second, t_detail)
|
||||
shader:begin ("particle", "particle")
|
||||
: sorting (3, false)
|
||||
: blend (true,blend.one,blend.one)
|
||||
: aref (false,0)
|
||||
: zb (true,false)
|
||||
: fog (false)
|
||||
: distort (true)
|
||||
shader:sampler ("s_base") :texture (t_base)
|
||||
shader:sampler ("s_position") :texture ("$user$position") : f_none ()
|
||||
end
|
||||
|
||||
function l_special (shader, t_base, t_second, t_detail)
|
||||
shader:begin ("particle", "particle_distort")
|
||||
: sorting (3, false)
|
||||
: blend (true,blend.srcalpha,blend.invsrcalpha)
|
||||
: zb (true,false)
|
||||
: fog (false)
|
||||
: distort (true)
|
||||
shader:sampler ("s_base") :texture (t_base)
|
||||
shader:sampler ("s_distort") :texture (t_second) -- "pfx\\pfx_distortion"
|
||||
shader:sampler ("s_position") :texture ("$user$position") : f_none ()
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue