function normal(shader, t_base, t_second, t_detail) shader:begin("deffer_model_flat","models_scope_zwrite") : zb(false, true) : scopelense(2) shader:dx10texture("rt_tempzb", "$user$temp_zb") shader:dx10sampler("smp_rtlinear") shader:dx10stencil(true, cmp_func.equal, 2, 2, stencil_op.zero, stencil_op.zero, stencil_op.zero) shader:dx10stencil_ref(2) end