Divergent/mods/Glowsticks/gamedata/shaders/r3/models_selflight_det.s

23 lines
689 B
ArmAsm
Raw Normal View History

2024-03-17 20:18:03 -04:00
function normal (shader, t_base, t_second, t_detail)
shader:begin ("deffer_model_flat","deffer_base_flat")
: fog (false)
: emissive (true)
-- shader:sampler ("s_base") :texture (t_base)
shader:dx10texture ("s_base", t_base)
shader:dx10sampler ("smp_base")
shader:dx10stencil ( true, cmp_func.always,
255 , 127,
stencil_op.keep, stencil_op.replace, stencil_op.keep)
shader:dx10stencil_ref (1)
end
function l_special (shader, t_base, t_second, t_detail)
shader:begin ("deffer_model_flat", "accum_emissivelel")
: zb (true,false)
: fog (false)
: emissive (true)
shader:dx10texture ("s_base", t_base)
shader:dx10sampler ("smp_base")
end