Skip to content

Commit

Permalink
Bugfix stuff not being initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
celyk committed Sep 20, 2023
1 parent 8dce4c6 commit 3c1926b
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions GPUTrail3D.gd
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,19 @@ func _ready():
draw_pass_1 = QuadMesh.new()
draw_pass_1.material = ShaderMaterial.new()
draw_pass_1.material.shader = preload("shaders/trail_draw_pass.gdshader")
draw_pass_1.material.set_shader_parameter("tex", preload(_DEFAULT_TEXTURE))
draw_pass_1.material.set_shader_parameter("curve", preload(_DEFAULT_CURVE))

color_ramp = preload(_DEFAULT_TEXTURE)
curve = preload(_DEFAULT_CURVE)

draw_pass_1.material.resource_local_to_scene = true

length = length
vertical_texture = vertical_texture
use_red_as_alpha = use_red_as_alpha
billboard = billboard
dewiggle = dewiggle
clip_overlaps = clip_overlaps
snap_to_transform = snap_to_transform

func _set_length(value):
length = value
Expand Down

0 comments on commit 3c1926b

Please sign in to comment.