Giter Site home page Giter Site logo

godot-simple-wind-shader's Introduction

Simple Wind Shader

A simlpe shader for the godot engine that gives objects like grass or plants a wiggle/wind effect.

Videos:

Godot 3: https://www.youtube.com/watch?v=mGYYeZf-4k8

Godot 2: https://www.youtube.com/watch?v=3MrdB-qcXAg

How to use

There is a demo scene in the demo folder where you can test all features and play with the settings.

If you don't need the demo just ignore the demo folder and connect your mesh with one of the wind_shader_XXX.tres files that can be found in the shaders folder.

Documentation:

Shader settings avaiable from Editor/GDscript. (Shader Version 1.1)

  • float speed - The speed of the wind movement.
  • float minStrength - The minimal strength of the wind movement.
  • float maxStrength - The maximal strength of the wind movement.
  • float interval - The time between minimal and maximal strength changes.
  • float detail - The detail (number of waves) of the wind movement.
  • float distortion - The strength of geometry distortion.
  • vec2 direction - The direction of wind movement.
  • float heightOffset - The height where the wind begins to move. By default 0.0, so everything over the object origin will have wind. (Make sure that you position the object on the right height or adapt it with this setting!)

Image

License

All parts of this project that are not copyrighted or licensed by someone else are released free under the MIT License - see the LICENSE.md file for details. Please keep license file, thanks. :)

godot-simple-wind-shader's People

Contributors

aaronfranke avatar maujoe avatar

Watchers

Kotob avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.