init
This commit is contained in:
commit
2fe6ca2f65
1473 changed files with 251771 additions and 0 deletions
23
gamedata/shaders/r2/postprocess.lua
Normal file
23
gamedata/shaders/r2/postprocess.lua
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
-- normal pp
|
||||
t_rt = "$user$albedo"
|
||||
t_noise = "fx\\fx_noise2"
|
||||
|
||||
function normal (shader, t_base, t_second, t_detail)
|
||||
shader:begin ("null","postprocess")
|
||||
: fog (false)
|
||||
: zb (false,false)
|
||||
shader:sampler ("s_base0") :texture("$user$albedo") : clamp() : f_linear ()
|
||||
shader:sampler ("s_base1") :texture("$user$albedo") : clamp() : f_linear ()
|
||||
shader:sampler ("s_noise") :texture("fx\\fx_noise2") : f_linear ()
|
||||
end
|
||||
|
||||
function l_special (shader, t_base, t_second, t_detail)
|
||||
shader:begin ("null","postprocess_CM")
|
||||
: fog (false)
|
||||
: zb (false,false)
|
||||
shader:sampler ("s_base0") : texture("$user$albedo") : clamp() : f_linear ()
|
||||
shader:sampler ("s_base1") : texture("$user$albedo") : clamp() : f_linear ()
|
||||
shader:sampler ("s_noise") : texture("fx\\fx_noise2") : f_linear ()
|
||||
shader:sampler ("s_grad0") : texture("$user$cmap0") : clamp() : f_linear ()
|
||||
shader:sampler ("s_grad1") : texture("$user$cmap1") : clamp() : f_linear ()
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue