gdquest-demos / godot-shaders

A large library of free and open-source shaders for the Godot game engine. Here, you'll get 2D and 3D shaders with playable demos.
Other
3.06k stars 182 forks source link

Add random outside circle option #17

Closed nonunknown closed 4 years ago

nonunknown commented 4 years ago

Related issue (if applicable): N/A

What kind of change does this PR introduce?

Added a option to generate random grasses outside a circle radius!

Does this PR introduce a breaking change?

Nope

New feature or change

What is the current behavior?

Extends grass in a Square/Rectangle range

What is the new behavior?

Let the user extends in a Outside of the circle range

the result can be seen here

Razoric480 commented 4 years ago

There are still errors in your script. If you open WindGrassScene.tscn and, more specifically, the GrassMesh.gd script, Godot will highlight the issues.

Then make sure that toggling the Spawn Outside Circle property and reloading the scene actually does what you expect it to, because I cannot get it working without incrementing theta. See the image I posted in the conversation you marked as resolved.

nonunknown commented 4 years ago

Oh I just remember that, i did rewrite this via github, sorry for that one, I'll make the corrections, thanks!

Made it!

Razoric480 commented 4 years ago

Thanks