Go to: Related nodes. Attributes.
The Ramp texture creates a texture map that graduates from
one color to another through a series of colors.
You can easily create effects ranging from simple stripes to
geometric patterns and mottled surfaces are easily created by the
choice of Ramp and Interpolation types. By default, the Ramp
texture graduates from red to green to blue in a linear, horizontal
(V ramp) fashion. When applied as a bump map, the colors in a ramp
appear as a gray scale based on the luminance of each color. Aside
from the attributes listed here, Ramp 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 |
ramp |
texture2d |
texture/2d |
kRamp |
kBase
kNamedObject
kDependencyNode
kTexture2d
kRamp |
Related nodes
layeredTexture, envCube, envSphere,
envSky, envBall, envChrome,
bump3d, uvChooser, bump2d,
texture2d, file, cloth, water, stencil,
checker, fractal, bulge,
grid, mountain,
texture3d, projection, cloud,
granite, crater, leather,
stucco, brownian, solidFractal, marble, wood, rock, snow, defaultTextureList, place2dTexture, place3dTexture
Attributes (18)
color, colorB, colorEntryList, colorG, colorR,
hueNoise, hueNoiseFreq, interpolation, noise, noiseFreq,
position, satNoise, satNoiseFreq, type,
uWave, vWave,
valNoise, valNoiseFreq
Long name (short name) |
Type |
Default |
Flags |
|
type
(t ) |
enum |
V_RAMP |
|
|
interpolation
(in ) |
enum |
LINEAR_INTERP |
|
|
colorEntryList
(cel ) |
compound |
n/a |
|
|
|
color
(ec ) |
float3 |
1.0, 0.0, 0.0 |
|
|
|
|
|
|
uWave
(uw ) |
float |
0.0 |
|
|
vWave
(vw ) |
float |
0.0 |
|
|
noise
(n ) |
float |
0.0 |
|
|
noiseFreq
(nf ) |
float |
0.5 |
|
|
hueNoise
(hn ) |
float |
0.0 |
|
|
satNoise
(sn ) |
float |
0.0 |
|
|
valNoise
(vn ) |
float |
0.0 |
|
|
hueNoiseFreq
(hnf ) |
float |
0.5 |
|
|
satNoiseFreq
(snf ) |
float |
0.5 |
|
|
valNoiseFreq
(vnf ) |
float |
0.5 |
|