A procedural textures addon for Godot
Go to file
Rodolphe Suescun 18015aec93 Implemented multi-pass nodes and fixed blur. Various other fixes.
* Added a "constant wave" in the pattern node
* Updated graphEdit to detect and forbid loops
* Modified code that renders to texture to update a texture instead of returning one (so we avoid updating everything and rely on everything being updated automatically wrt textures)
* base library is loaded from filesystem (instead of package) if available
2018-08-12 19:25:18 +02:00
addons/procedural_material Implemented multi-pass nodes and fixed blur. Various other fixes. 2018-08-12 19:25:18 +02:00
doc Implemented multi-pass nodes and fixed blur. Various other fixes. 2018-08-12 19:25:18 +02:00
examples Implemented multi-pass nodes and fixed blur. Various other fixes. 2018-08-12 19:25:18 +02:00
.gitignore Basic library editing + shortcuts 2018-08-07 23:21:12 +02:00
default_env.tres More nodes and load/save 2018-07-22 23:25:05 +02:00
export_presets.cfg Shrinked panoramas 2018-08-04 08:56:07 +02:00
generated_image.png.import Material export and usability improvements 2018-08-03 08:16:38 +02:00
icon.png Added ambient occlusion and parameters for the material node 2018-08-10 12:31:15 +02:00
icon.png.import First version 2018-07-22 17:20:27 +02:00
LICENSE Initial commit 2018-07-22 17:08:24 +02:00
project.godot Minor changes for 0.2 tag 2018-08-11 15:11:39 +02:00
README.md Updated generators descriptions 2018-08-04 22:16:37 +02:00

This is an addon for the Godot game engine that can be used to create texture procedurally.

Its user interface is based on Godot's GraphEditor: textures are described as interconnected texture generators and operators.

Screenshot

Generators

Image

This operator reads a bitmap from disk

Pattern

This generator creates a greyscale image by mixing an horizontal and a vertical pattern. Patterns can either be based on a sine, triangle or square waveform (i.e. the color as function of the x or y coordinate). The frequency (number of waves per unit) be configure for both axes. Mix functions can also be configured.

Sine pattern

Bricks

This generator creates bricks greyscale patterns.

The Bricks generator has 5 parameters:

  • the number of brick rows
  • the number of bricks per row
  • the offset between even and odd rows
  • the mortar space between bricks
  • the bevel at the edge of the bricks

The bricks generator has 2 output:

  • the first one will show mortal as black and bricks as white (bevel being shown as a gradient). It can be used as mask to mix brick and mortar, or to generate depth and normal textures
  • the second one will just show a different color for each brick. It can be used to affect the brick's colors (and will be used in the future to offset textures).

Bricks pattern

Perlin Noise

The Perlin Noise generator creates a greyscale pattern and has 4 parameters:

  • the horizontal and vertical scale of the first iteration
  • the number of iteration
  • the persistence (the weight ratio between 2 iterations)

Perlin Noise

Voronoi Noise

The Voronoi Noise generator creates greyscale patterns based on Voronoi diagrams and has 3 parameters:

  • the horizontal and vertical scale (the number of feature points)
  • the "intensity" of the noise (used to adjust the generated color)

The Voronoi generator has 3 outputs:

  • The first output shows a greyscale image where intensity depends on the distance to the cell centers
  • The second output shows a greyscale image where intensity depends on the distance to the cell edges
  • The third output shows a different color for each cell.

Voronoi Noise