A tiny bit of cleanup before tackling the WebGPU version

This commit is contained in:
Rezmason
2022-09-16 17:34:44 -07:00
parent 3fc53f1bab
commit ab280a95d3

View File

@@ -43,11 +43,10 @@ vec4 computeResult(float simTime, bool isFirstFrame, vec2 glyphPos, vec2 screenP
float symbol = previousSymbol;
if (mod(tick, cycleFrameSkip) == 0.) {
age += cycleSpeed * cycleFrameSkip;
float advance = floor(age);
if (advance > 0.) {
if (age >= 1.) {
symbol = floor(glyphSequenceLength * randomFloat(screenPos + simTime));
age = fract(age);
}
age = fract(age);
}
vec4 result = vec4(symbol, age, 0., 0.);