-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More control on Particles randomness #13488
Comments
randf() * N would give a random float from 0 to N edit: not sure if that's what you mean |
I mean something like that (for example on particle scale) : I know that we can do what we want converting the particles materials to shader material, but I think the default particles material should get basic users more possibilities. |
The randf_range function is fixes this issue ? cc @akien-mga |
@Chaosus this issue is about CpuParticles/ParticleMaterial, not the Random class. |
Ah.. right |
Maybe the This means that if This would break compatibility, so it will have to be done for 4.0. |
I'll just link here to make it part of the discussion in the GIP: |
Superseded by godotengine/godot-proposals#815. |
Operating system or device, Godot version, GPU Model and driver (if graphics related):
Issue description:
Only providing one scalar in [0, 1] in random fields, is a bit limitating (for example with particles).
I think random should not be clamped so we can get a random value around ( not clamped) the initial one .
Now we can only have a value between initial and 1 (with random to 1 or even a lesser range with random < 1).
Steps to reproduce:
Link to minimal example project:
The text was updated successfully, but these errors were encountered: