Procedural texturing: Difference between revisions

Jump to navigation Jump to search
Line 420: Line 420:
   <rock_strata type="int">0</rock_strata>  
   <rock_strata type="int">0</rock_strata>  


<slope-contrast> (value between 0 and 1) regulates how pronounced the slope lines are drawn and <rock_strata> (value 0 or 1) indicated whether stratified noise should be used or not.
<slope-contrast> (value between 0 and 1) regulates how pronounced the slope lines are drawn and <rock_strata> (value 0 or 1) indicated whether stratified noise should be used or not. Neither slope noise nor stratified noise affect flat rock surfaces, they only lead to modulation on sufficiently steep rock surfaces.


<b>Example 1:</b>


This parameter set


   <base-color type="vec3d">0.9 0.95 0.94</base-color>  
   <base-color type="vec3d">0.9 0.95 0.94</base-color>  
Line 435: Line 437:
   <grain-fade-power type="float">1.0</grain-fade-power>
   <grain-fade-power type="float">1.0</grain-fade-power>
   <rock_strata>0</rock_strata>
   <rock_strata>0</rock_strata>
results in rock drawn like this:
[[File:Rock-example1.jpg|500px|center|Procedural rock, example 1]]
The following set of parameters
  <base-color type="vec3d">0.9 0.95 0.94</base-color>
  <overlay-color type="vec3d">0.9 0.95 0.94</overlay-color>
  <overlay-alpha type="float">0.4</overlay-alpha>
  <overlay-bias type="float">0.0</overlay-bias>
  <contrast type="float">0.8</contrast>
  <slope-contrast type="float">0.2</slope-contrast>
  <crack-depth type="float">0.5</crack-depth>
  <crack-pattern-stretch type="float">1.0</crack-pattern-stretch>
  <rock-brightness type="float">1.3</rock-brightness>
  <grain-fade-power type="float">0.8</grain-fade-power>
  <rock_strata>1</rock_strata>
leads to stratified rock like this:
[[File:Rock-example2.jpg|500px|center|Procedural rock, example 2]]


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

edits

Navigation menu