Procedural texturing: Difference between revisions

Jump to navigation Jump to search
Line 400: Line 400:
[[File:Rock-lichen.jpg|300px|Green overlay, small alpha, positive bias]]
[[File:Rock-lichen.jpg|300px|Green overlay, small alpha, positive bias]]
[[File:Rock-crust.jpg|300px|White overlay, large alpha, negative bias]]
[[File:Rock-crust.jpg|300px|White overlay, large alpha, negative bias]]
The crack layer is based on stretched Perlin noise isolines and controlled by the parameters
  <crack-depth type="float">0.9</crack-depth>
  <crack-pattern-stretch type="float">1.0</crack-pattern-stretch>
The <crack-depth> (from 0 to 1) regulates how pronounced the darkening inside the crack region is whereas the <crack-pattern-stretch> (from 1 to roughly 10) controls the elongation of the crack pattern.
For low stretch values, the crack layer can be used to draw bands of different mineral inside the rock, for high stretch values it can simukate a genuine pattern of cracks in the surface, see screenshots below for an illustration:
[[File:Rock-crust.jpg|300px|No cracks]]
[[File:Rock-crack1.jpg|300px|Stretch factor 1]]
[[File:Rock-crack7.jpg|300px|Stretch factor 7]]


=== Pixel color postprocessing ===
=== Pixel color postprocessing ===
1,360

edits

Navigation menu