add game&rawdata
This commit is contained in:
parent
0133cd976c
commit
49b34b5546
45731 changed files with 709831 additions and 0 deletions
38
gamedata/shaders/r2/.s
Normal file
38
gamedata/shaders/r2/.s
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
function printf(fmt,...)
|
||||
log(string.format(fmt,unpack(arg)))
|
||||
end
|
||||
|
||||
--[[
|
||||
t_point_att = "internal\\internal_light_attpoint"
|
||||
|
||||
function r1_lspot (shader, t_base, vs, aref)
|
||||
shader:begin (vs,"add_spot")
|
||||
: fog (false)
|
||||
: zb (true,false)
|
||||
: blend (true,blend.one,blend.one)
|
||||
: aref (true,aref or 0)
|
||||
shader:sampler ("s_base") :texture (t_base)
|
||||
shader:sampler ("s_lmap") :texture ("internal\\internal_light_att")
|
||||
: clamp ()
|
||||
: f_linear ()
|
||||
: project (true)
|
||||
shader:sampler ("s_att") :texture ("internal\\internal_light_attclip")
|
||||
: clamp ()
|
||||
: f_linear ()
|
||||
end
|
||||
|
||||
function r1_lpoint (shader, t_base, vs, aref)
|
||||
shader:begin (vs,"add_point")
|
||||
: fog (false)
|
||||
: zb (true,false)
|
||||
: blend (true,blend.one,blend.one)
|
||||
: aref (true,aref or 0)
|
||||
shader:sampler ("s_base") :texture (t_base)
|
||||
shader:sampler ("s_lmap") :texture (t_point_att)
|
||||
: clamp ()
|
||||
: f_linear ()
|
||||
shader:sampler ("s_att") :texture (t_point_att)
|
||||
: clamp ()
|
||||
: f_linear ()
|
||||
end
|
||||
]]--
|
||||
Loading…
Add table
Add a link
Reference in a new issue