Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/fmodifier.c
| Context not available. | |||||
| data->size = 1.0f; | data->size = 1.0f; | ||||
| data->strength = 1.0f; | data->strength = 1.0f; | ||||
| data->phase = 1.0f; | data->phase = 1.0f; | ||||
| data->offset = 0.0f; | |||||
| data->depth = 0; | data->depth = 0; | ||||
| data->modification = FCM_NOISE_MODIF_REPLACE; | data->modification = FCM_NOISE_MODIF_REPLACE; | ||||
| } | } | ||||
| Context not available. | |||||
| * - 0.1 is passed as the 'z' value, otherwise evaluation fails for size = phase = 1 | * - 0.1 is passed as the 'z' value, otherwise evaluation fails for size = phase = 1 | ||||
| * with evaltime being an integer (which happens when evaluating on frame by frame basis) | * with evaltime being an integer (which happens when evaluating on frame by frame basis) | ||||
| */ | */ | ||||
| noise = BLI_turbulence(data->size, evaltime, data->phase, 0.1f, data->depth); | noise = BLI_turbulence(data->size, evaltime - data->offset, data->phase, 0.1f, data->depth); | ||||
| /* combine the noise with existing motion data */ | /* combine the noise with existing motion data */ | ||||
| switch (data->modification) { | switch (data->modification) { | ||||
| Context not available. | |||||