Skip to content

Commit 7ae37de

Browse files
author
nitrocaster
committed
Move script engine code to xrScriptEngine.
1 parent c83bc23 commit 7ae37de

File tree

891 files changed

+16474
-15253
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

891 files changed

+16474
-15253
lines changed

res/gamedata/shaders/r1/.s

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
--[[
2+
function printf(fmt,...)
3+
log(string.format(fmt,unpack(arg)))
4+
end
5+
]]--
6+
7+
t_point_att = "internal\\internal_light_attpoint"
8+
t_rt = "$user$rendertarget"
9+
t_distort = "$user$distort"
10+
t_noise = "fx\\fx_noise2"
11+
12+
function r1_lspot (shader, t_base, vs, aref)
13+
shader:begin (vs,"add_spot")
14+
: fog (false)
15+
: zb (true,false)
16+
: blend (true,blend.one,blend.one)
17+
: aref (true,aref or 0)
18+
shader:sampler ("s_base") :texture (t_base)
19+
shader:sampler ("s_lmap") :texture ("internal\\internal_light_att")
20+
: clamp ()
21+
: f_linear ()
22+
: project (true)
23+
shader:sampler ("s_att") :texture ("internal\\internal_light_attclip")
24+
: clamp ()
25+
: f_linear ()
26+
end
27+
28+
function r1_lpoint (shader, t_base, vs, aref)
29+
shader:begin (vs,"add_point")
30+
: fog (false)
31+
: zb (true,false)
32+
: blend (true,blend.one,blend.one)
33+
: aref (true,aref or 0)
34+
shader:sampler ("s_base") :texture (t_base)
35+
shader:sampler ("s_lmap") :texture (t_point_att)
36+
: clamp ()
37+
: f_linear ()
38+
shader:sampler ("s_att") :texture (t_point_att)
39+
: clamp ()
40+
: f_linear ()
41+
end

res/gamedata/shaders/r2/.s

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
--[[
2+
function printf(fmt,...)
3+
log(string.format(fmt,unpack(arg)))
4+
end
5+
]]--
6+
7+
--[[
8+
t_point_att = "internal\\internal_light_attpoint"
9+
10+
function r1_lspot (shader, t_base, vs, aref)
11+
shader:begin (vs,"add_spot")
12+
: fog (false)
13+
: zb (true,false)
14+
: blend (true,blend.one,blend.one)
15+
: aref (true,aref or 0)
16+
shader:sampler ("s_base") :texture (t_base)
17+
shader:sampler ("s_lmap") :texture ("internal\\internal_light_att")
18+
: clamp ()
19+
: f_linear ()
20+
: project (true)
21+
shader:sampler ("s_att") :texture ("internal\\internal_light_attclip")
22+
: clamp ()
23+
: f_linear ()
24+
end
25+
26+
function r1_lpoint (shader, t_base, vs, aref)
27+
shader:begin (vs,"add_point")
28+
: fog (false)
29+
: zb (true,false)
30+
: blend (true,blend.one,blend.one)
31+
: aref (true,aref or 0)
32+
shader:sampler ("s_base") :texture (t_base)
33+
shader:sampler ("s_lmap") :texture (t_point_att)
34+
: clamp ()
35+
: f_linear ()
36+
shader:sampler ("s_att") :texture (t_point_att)
37+
: clamp ()
38+
: f_linear ()
39+
end
40+
]]--

sdk/include/cs/lua_studio_backend/backend.h

Lines changed: 0 additions & 59 deletions
This file was deleted.

sdk/include/cs/lua_studio_backend/engine.h

Lines changed: 0 additions & 161 deletions
This file was deleted.

sdk/include/cs/lua_studio_backend/interfaces.h

Lines changed: 0 additions & 26 deletions
This file was deleted.

sdk/include/cs/lua_studio_backend/world.h

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)