Hugo Locurcio 2a962929f3 Update demo files for Godot 4.2.1 (#1013) | 10 months ago | |
---|---|---|
.. | ||
materials | 1 year ago | |
screenshots | 1 year ago | |
scripts | 1 year ago | |
shaders | 1 year ago | |
README.md | 1 year ago | |
checker.png | 1 year ago | |
checker.png.import | 1 year ago | |
icon.webp | 1 year ago | |
icon.webp.import | 1 year ago | |
loading.gd | 1 year ago | |
loading.tscn | 1 year ago | |
project.godot | 10 months ago | |
test.tscn | 1 year ago | |
tester.gd | 1 year ago |
This demo includes procedurally generated materials with 3 different techniques:
NoiseTexture2D: Built-in class that generates images on the CPU based on noise patterns (such as Simplex or Cellular). This is suited for static textures only. Texture generation is done asynchronously and is faster than using scripting, since the noise algorithms are implemented in C++ in the engine.
Scripting: Uses the Image class to procedurally generate an ImageTexture on the CPU. This is suited for static textures only. This approach is more flexible than NoiseTexture2D, but is slower to generate textures. Once the texture is generated, rendering performance is identical to NoiseTexture2D.
Shaders: Uses a 2D shader on a ColorRect node that matches a Viewport's size with the resulting ViewportTexture applied to a material. This is updated on the GPU in real-time, and is most suited for animated textures. This approach can also be used for static textures, with a lower performance overhead since the texture doesn't need to be updated every frame.
Language: GDScript
Renderer: Forward Plus