Skip to content

Instantly share code, notes, and snippets.

@wjt
Created March 3, 2026 15:06
Show Gist options
  • Select an option

  • Save wjt/eeb90c151d3bc09606125d47e25dfb11 to your computer and use it in GitHub Desktop.

Select an option

Save wjt/eeb90c151d3bc09606125d47e25dfb11 to your computer and use it in GitHub Desktop.
# SPDX-FileCopyrightText: The Threadbare Authors
# SPDX-License-Identifier: MPL-2.0
extends CanvasLayer
## The probability distribution for the amount of rain. The y-axis is the amount of rain for a given (randomly-chosen) point on the x-axis.
@export var rain_distribution: Curve
@onready var gpu_particles_2d: GPUParticles2D = %GPUParticles2D
func _ready() -> void:
print("a")
randomize()
print("b")
func randomize() -> void:
print("c")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment