Go to: Related nodes. Attributes.

The Grid texture simply creates a regular grid of horizontal and vertical lines.

Aside from the attributes listed here, Grid inherits many other attributes from its parent node, Texture2d. In the table below, important attributes are shown in bold in the description column.

This node is MP safe

Node name Parents Classification MFn type Compatible function sets
grid texture2d texture/2d kGrid kBase
kNamedObject
kDependencyNode
kTexture2d
kGrid

Related nodes

layeredTexture, envCube, envSphere, envSky, envBall, envChrome, bump3d, uvChooser, bump2d, texture2d, ramp, file, cloth, water, stencil, checker, fractal, bulge, mountain, texture3d, projection, cloud, granite, crater, leather, stucco, brownian, solidFractal, marble, wood, rock, snow, defaultTextureList, place2dTexture, place3dTexture

Attributes (11)

contrast, fillerColor, fillerColorB, fillerColorG, fillerColorR, lineColor, lineColorB, lineColorG, lineColorR, uWidth, vWidth

Long name (short name) Type Default Flags
fillerColor (fc) float3 0.0, 0.0, 0.0 outputinputconnectablestorable
Filler Color controls the color of the spaces between the horizontal and vertical lines of the grid.
fillerColorR (fcr) float 0.0 outputinputconnectablestorablekeyable
Filler Color red value
fillerColorG (fcg) float 0.0 outputinputconnectablestorablekeyable
Filler Color green value
fillerColorB (fcb) float 0.0 outputinputconnectablestorablekeyable
Filler Color blue value
lineColor (lc) float3 1.0, 1.0, 1.0 outputinputconnectablestorable
Line Color controls the color of the horizontal and vertical grid lines.
lineColorR (lcr) float 0.0 outputinputconnectablestorablekeyable
Line Color red value
lineColorG (lcg) float 0.0 outputinputconnectablestorablekeyable
Line Color green value
lineColorB (lcb) float 0.0 outputinputconnectablestorablekeyable
Line Color blue value
contrast (c) float 1.0 outputinputconnectablestorablekeyable
Contrast is used to control the contrast between the Line Color and the Filler Color. When set to 1.0 (the default) the two colors do not affect each other at all. As contrast is decreased, each color starts to blend with other. When contrast is 0, there is no grid at all, but just a flat texture consisting of the average of the two input colors. Use this attribute to control the sharpness of the ridges when using a Grid Texture as a bump map.
uWidth (uw) float 0.1 outputinputconnectablestorablekeyable
U Width controls the width of the grid lines that run in the surface's "U" direction.
vWidth (vw) float 0.1 outputinputconnectablestorablekeyable
V Width controls the width of the grid lines that run in the surface's "V" direction.