Closed podborski closed 11 months ago
Explantation during one of the meetings was that the function load_grain_params
is overwriting the grain_seed
. Updated text explains it better now:
tempGrainSeed is a temporary variable that is used to avoid losing the value of grain_seed when load_grain_params is called. When update_grain is equal to 0, a previous set of parameters should be used for everything except grain_seed.
When
update_grain=0
you still use the same parameters but you can signal a differentgrain_seed
value so that your grain looks different from the previous frame. Correct? I don’t understand why you need thetempGrainSeed
. Thegrain_seed
was already signaled before this:Was the idea to do the
tempGrainSeed = grain_seed
before thegrain_seed
is signaled and it got misplaced?