“Grid” is a parametric texture.
GridRGB generates a color grid pattern based on the surface u, v parameters. The default case is white lines on a black background (filler). The "contrast" variable controls the relative contrast of the line color to the filler color. A "contrast" of 0.0 will set the color to the average of the line color and the filler color. A "contrast" of -1.0 will swap the line color and the filler color.
Argument Name | Absolute Range | Useful Range | Default | Description |
contrast | -1.0, 1.0 | -1, 1 | 1.0 | Relative contrast of the colors |
uwidth | 0, 0.5 | 0, 0.5 | 0.1 | Width of lines in the u direction |
vwidth | 0, 0.5 | 0, 0.5 | 0.1 | Width of lines in the v direction |
line_color (triple) | 0, infinity | 0, 255 | 255.0 | Line color |
filler_color (triple) | 0, infinity | 0, 255 | 0.0 | Area between lines color |
urepeat | -infinity, infinity | -10.0, 10.0 | 1.0 | # of copies in u direction within coverage area. |
vrepeat | -infinity, infinity | -10.0, 10.0 | 1.0 | # of copies in v direction within coverage area. |
uoffset | -infinity, infinity | -1.0, 1.0 | 0.0 | U offset repeat within coverage area |
voffset | -infinity, infinity | -1.0, 1.0 | 0.0 | V offset repeat within coverage area |
ucoverage | -infinity, infinity | 0.0, 1.0 | 1.0 | amount of U surface to be textured |
vcoverage | -infinity, infinity | 0.0, 1.0 | 1.0 | amount of V surface to be textured |
utranslate | -infinity, infinity | -1.0, 1.0 | 0.0 | amount of U coverage area to be moved. |
vtranslate | -infinity, infinity | -1.0, 1.0 | 0.0 | amount of V coverage area to be moved. |
uwrap | TRUE FALSE | TRUE | flag to wrap texture around U boundaries of coverage area. | |
vwrap | TRUE FALSE | TRUE | flag to wrap texture around U boundaries of coverage area. | |
worldspace | TRUE FALSE | FALSE | flag to use world space texture mapping | |
rotate | -infinity, infinity | -360.0, 360.0 | 0.0 | angle coverage area to be rotated |
mirror | TRUE FALSE | FALSE | flag to match edges of texture |