ALS technical notes: Difference between revisions

Jump to navigation Jump to search
Line 90: Line 90:
[[File:Als secondary light fog.jpg|400px|ALS generic lights illuminating dense fog]]
[[File:Als secondary light fog.jpg|400px|ALS generic lights illuminating dense fog]]


== The grain texture and the rain effect ==
== ALS specific features of the model effect ==
 
=== The grain texture ===
 
ALS supports a grain texture for models. This is a semi-transparent overlay texture that works just as [[Procedural Texturing#The grain texture|its equivalent for terrain texturing]] and provides the option of generating centimeter-scale details such as rust or discoloration on a surface without having to use huge textures. An example of a surface rendered with grain texture is the image of the USS Vinson flightdeck below:
ALS supports a grain texture for models. This is a semi-transparent overlay texture that works just as [[Procedural Texturing#The grain texture|its equivalent for terrain texturing]] and provides the option of generating centimeter-scale details such as rust or discoloration on a surface without having to use huge textures. An example of a surface rendered with grain texture is the image of the USS Vinson flightdeck below:


Line 134: Line 137:
If the number is less than 0, the grain resolution is lower than the base layer. If the parameter is greater than 0, it is higher (note that in the above case, the grain is mapped to (xy) rather than (uv), hence the base size is 1 m, so the grain texture is mapped on a 10x10 m patch on the flightdeck, for which a 1024x1024 pixel texture provides ~1 cm sized details).
If the number is less than 0, the grain resolution is lower than the base layer. If the parameter is greater than 0, it is higher (note that in the above case, the grain is mapped to (xy) rather than (uv), hence the base size is 1 m, so the grain texture is mapped on a 10x10 m patch on the flightdeck, for which a 1024x1024 pixel texture provides ~1 cm sized details).


Finally, any number greater than 0 passed to
=== The rain effect ===
 
Any number greater than 0 passed to
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<rain-enabled type="int">2</rain-enabled>
<rain-enabled type="int">2</rain-enabled>
1,360

edits

Navigation menu