lingo3d
Version:
Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor
25 lines (18 loc) • 654 B
JavaScript
export default `
alpha = 0.0;
// alpha = velocityDisocclusion < FLOAT_EPSILON ? (alpha + 0.0075) : 0.0;
// alpha = clamp(alpha, 0.0, 1.0);
bool needsBlur = !didReproject || velocityDisocclusion > 0.5;
if (needsBlur) inputColor = boxBlurredColor;
if (alpha == 1.0) {
outputColor = accumulatedColor;
} else {
float m = mix(alpha, 1.0, blend);
// if there's been an abrupt change (e.g. teleporting) then we need to entirely use the input color
if (needsBlur) m = 0.0;
outputColor = accumulatedColor * m + inputColor * (1.0 - m);
}
`;
//# sourceMappingURL=trCompose.js.map