-
-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
With a new SV_Target variable for color buffer output.
- Loading branch information
Showing
41 changed files
with
1,447 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--[[ | ||
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 | ||
]]-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#ifndef COMMON_H | ||
#define COMMON_H | ||
|
||
#include "shared\common.h" | ||
|
||
//include "common_defines.h" | ||
//include "common_policies.h" | ||
#include "common_iostructs.h" | ||
//include "common_samplers.h" | ||
//include "common_cbuffers.h" | ||
//include "common_functions.h" | ||
|
||
// #define USE_SUPER_SPECULAR | ||
|
||
#ifdef USE_R2_STATIC_SUN | ||
# define xmaterial float(1.0f/4.fs) | ||
#else | ||
# define xmaterial float(L_material.w) | ||
#endif | ||
|
||
#endif |
Oops, something went wrong.