Files
tech5/bin/base/generated/decls/renderprog/softparticleadditiveblend.decl
2026-08-09 04:23:10 -07:00

26 lines
443 B
Plaintext

{
parms {
stageSort sortTrans
}
state {
blend GL_SRC_ALPHA GL_ONE
depthmask
}
hlsl_vp {
#include "softparticle_vp.inc"
result.color = vertColor * $exposure;
result.color.w *= fade;
}
hlsl_fp {
#include "softparticle_fp.inc"
color *= fragment.color;
// additive, so the global fog is just a modulate instead of a blend
color.xyz *= fogVal;
result.color.xyz = color.xyz;
result.color.w = color.w * scale;
}
}