diff --git a/game/modules/tome/data/gfx/particles/bolt_fire.lua b/game/modules/tome/data/gfx/particles/bolt_fire.lua index d7f7a4abfd6fac0ff454e67831e53665bd7646fd..bb5a3236aa439434d30e1cbad01d624a42e4569d 100644 --- a/game/modules/tome/data/gfx/particles/bolt_fire.lua +++ b/game/modules/tome/data/gfx/particles/bolt_fire.lua @@ -21,7 +21,7 @@ -- Advanced shaders -------------------------------------------------------------------------------------- if core.shader.active(4) then -use_shader = {type="fireball"} +use_shader = {type="fireball", trail_length=trail_length or 1} base_size = 64 size_factor = size_factor or 1 diff --git a/game/modules/tome/data/gfx/shaders/fireball.lua b/game/modules/tome/data/gfx/shaders/fireball.lua index 06ca844055bd7a71d7b1c436fd924797f6e10cd0..a1a10a67780319ba8c208e0bb7ef25bff78631b1 100644 --- a/game/modules/tome/data/gfx/shaders/fireball.lua +++ b/game/modules/tome/data/gfx/shaders/fireball.lua @@ -25,6 +25,6 @@ return { projectile_time_factor = time_factor or 2000, explosion_time_factor = explosion_time_factor or 1000, is_exploding = 0, - trail_length = 1.0, + trail_length = trail_length or 1.0, }, }