โ† All examples

godot shaders

Terrazzo with random coloured chips

Terrazzo surface: irregular stone chips of several colours and sizes set in a speckled cement matrix, from jittered Voronoi cells with noisy edges, with a polished finish.

Recorded render of Terrazzo with random coloured chips

What this component contains

  • ATTRIBUTION.md
  • LICENSE
  • README.md
  • component.json
  • demo.tscn
  • inspect_shader.py
  • material.tres
  • preview.png
  • terrazzo_floor.gdshader
  • test_package.py
  • verification/native.json

How it works

Shader type
spatial
Parameters
matrix_color (vec4 = 0.88, 0.86, 0.82, 1), chip_a (vec4 = 0.85, 0.45, 0.35, 1), chip_b (vec4 = 0.25, 0.42, 0.55, 1), chip_c (vec4 = 0.9, 0.78, 0.45, 1), chip_d (vec4 = 0.28, 0.28, 0.3, 1), chip_scale (float = 12), chip_density (float = 0.65), chip_size (float = 0.38) and 3 more
Use it on
A horizontal surface; the pattern uses world X and Z.
Result
A pale polished floor scattered with irregular terracotta, blue, ochre and grey chips.
Renderers
compatibility: compiled and rendered, forward plus: not verified, mobile: not verified
Placement
res://baltor/godot_shaders/terrazzo_floor/

Recorded checks

godot 4.7.2.stable.official.ed1daf0bf

  • contract_static
  • engine_run
  • engine_log_clean
  • shader_in_scene
  • capture_written
  • render_not_uniform
  • shader_changes_pixels

Limits to consider

Chips are limited to neighbouring cells, so a chip larger than about one cell is clipped. Projected from above in world space, so walls show stretched chips. Flat: no relief between chips and matrix.