mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-18 22:29:28 -07:00
A tiny bit of cleanup before tackling the WebGPU version
This commit is contained in:
@@ -43,11 +43,10 @@ vec4 computeResult(float simTime, bool isFirstFrame, vec2 glyphPos, vec2 screenP
|
|||||||
float symbol = previousSymbol;
|
float symbol = previousSymbol;
|
||||||
if (mod(tick, cycleFrameSkip) == 0.) {
|
if (mod(tick, cycleFrameSkip) == 0.) {
|
||||||
age += cycleSpeed * cycleFrameSkip;
|
age += cycleSpeed * cycleFrameSkip;
|
||||||
float advance = floor(age);
|
if (age >= 1.) {
|
||||||
if (advance > 0.) {
|
|
||||||
symbol = floor(glyphSequenceLength * randomFloat(screenPos + simTime));
|
symbol = floor(glyphSequenceLength * randomFloat(screenPos + simTime));
|
||||||
|
age = fract(age);
|
||||||
}
|
}
|
||||||
age = fract(age);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
vec4 result = vec4(symbol, age, 0., 0.);
|
vec4 result = vec4(symbol, age, 0., 0.);
|
||||||
|
|||||||
Reference in New Issue
Block a user