Aaron Franke 5646c6a7a8 Open and save 3D demos in Godot 4.3 stable (#1109) 4 месяцев назад
..
materials fc7ff91882 Add glass material to Procedural materials demo (#980) 1 год назад
screenshots 6860a1e814 Add a 3D procedural materials demo 1 год назад
scripts 6860a1e814 Add a 3D procedural materials demo 1 год назад
shaders 6860a1e814 Add a 3D procedural materials demo 1 год назад
README.md b4c73f4888 Fix README links to asset library (#1078) 6 месяцев назад
checker.png 6860a1e814 Add a 3D procedural materials demo 1 год назад
checker.png.import bac1e69164 Use static typing in all demos (#1063) 7 месяцев назад
icon.webp 6860a1e814 Add a 3D procedural materials demo 1 год назад
icon.webp.import 6860a1e814 Add a 3D procedural materials demo 1 год назад
loading.gd bac1e69164 Use static typing in all demos (#1063) 7 месяцев назад
loading.tscn 6860a1e814 Add a 3D procedural materials demo 1 год назад
project.godot 5646c6a7a8 Open and save 3D demos in Godot 4.3 stable (#1109) 4 месяцев назад
test.tscn fc7ff91882 Add glass material to Procedural materials demo (#980) 1 год назад
tester.gd bac1e69164 Use static typing in all demos (#1063) 7 месяцев назад

README.md

Procedural Materials

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+

Check out this demo on the asset library: https://godotengine.org/asset-library/asset/2749

Screenshots

Screenshot