You can find this material in the Hypershade Create tab, in the Surface category.
The Ramp Shader is a material (shader) that you can use for extra control over the way color changes with light and the view angle. You can simulate a variety of exotic materials and tweak traditional shading in subtle ways.
All the color-related attributes in the Ramp Shader are controlled by ramps (gradients). Graphs let you avoid complex shading networks by making certain looks, like toon shading, easier to achieve.
You can set the many attributes of the Ramp Shader to control the appearance of objects.
Each color entry in a ramp has a circular color handle above the ramp, and a square color icon below the ramp. The active color has a white border around its color handle and icon.
See Set attributes using ramps for more information on how to customize your ramp by adding additional color entries.
Diffuse = 0
Translucence = 1
Color: two entries, black at 0.5 and surface color at 1.0
With Interpolation > Linear, this should be the same as a normal lambertian falloff. Using Interpolation > Smooth makes the linear shading artifacts disappear.
In addition to color entries, you can also add texture entries to the ramp. You can map a texture to both the position or the color of a ramp.
Click the handle above the ramp and then click beside the Selected Color attribute in the Attribute Editor (or Ramp Editor) to map a texture. You can map textures to your ramp in both the Ramp Editor and within the Attribute Editor. However, you only see the effect of the texture in the material sample swatch and in the shader icon (in the hypershade), not in the Ramp Editor.
Consider the following example. Three entries have been entered into the ramp, the first a color entry, the second a check texture, and the third, a mountain texture.
The rendered result illustrates the surface color transitioning (ramping) from a yellow color to a checkered texture to a mountain texture.
You can map the position of a ramp index to a texture to achieve interesting effects. Using this technique, you can create variations within the color boundaries of a ramp. For example, you can make the boundary between two colors a blurry, noise-like pattern using the noise texture. Alternatively, you can experiment with the settings to create complex effects such as natural looking watercolors, or making the gradient more blurry in some areas and sharper in others.
Click the handle above the ramp to select it. Right-click the Selected Position attribute in the Attribute Editor (or Ramp Editor) and choose Create New Texture to map a texture.
After you have mapped a texture to the position of a handle, the position field becomes locked (the text box appears yellow). The position is now fully defined by the texture that you have chosen.
To alter the position of the handle, expand the Color Balance section of the texture in the Attribute Editor. Increase or decrease the Alpha Offset value.
To alter the effect of the texture, increase or decrease the Alpha Gain value.
For more interesting effects, you can also alter the Interpolation method of the ramp in the Attribute Editor. See Interpolation for more information.
You can map textures to your ramp in both the Ramp Editor and within the Attribute Editor. However, you only see the effect of the texture in the material sample swatch and in the shader icon (in the hypershade), not in the Ramp Editor.
Consider the following example. Two color entries have been entered into the ramp, the first of which has its position mapped to a fractal texture.
The basic color of the surface.
Position of the active color entry in the ramp.
The color of the active color entry.
See Interpolation for more information.
Determines how the color is spread over the surface. Select an option from the drop-down list: Light Angle, Facing Angle, Brightness, Normalized Brightness. The default is Light Angle.
The position along the ramp is determined by the angle of the light with the surface normal. The right side of the ramp is the color where the normal points directly towards the light. The center of the ramp represents the point at which the surface normal is perpendicular to the light. The left side is the color where the normal faces directly away from the light. The color values to the left of the ramp center is not be visible unless the shader has some translucency. This takes into account all lights in the scene.
The position along the ramp is determined by the angle of the surface with the view direction. The right side of the ramp is the color where the surface normal faces the camera. The left side is the color where the surface normal is perpendicular to the camera.
The total light brightness is used to index the ramp. This can be used to create cartoon style shading by using a ramp with stepped values. The right side of the ramp is the output color where the brightness of the diffuse and translucent lighting is 1.0 or greater. The left side is the output color where the brightness is zero.
The Normalized Brightness option is similar to the standard Brightness option, but the total light is normalized. Changing the overall light intensity does not affect shading. This option is useful for Toon shading where you may want the color band spacing to be relatively fixed, even when the lighting setup may be complex.
Controls how transparent or opaque the material is, as well as the transparency color. Black, the default, is completely opaque and white is completely transparent. You can set it to any level in between. If there is more than one index in the ramp then the transparency value varies with the facing angle.
For descriptions of the attributes, which are the same as the Color attributes, see Color .
Makes a material appear as if it were emitting light, such as lava or a phosphorescent moss. The default color is black, which has no effect on the surface. If there is more than one index in the ramp the incandescence value varies with the facing angle.
For descriptions of the first few attributes, which are the same as the Color attributes, see Color .
See Ambient Color.
See Bump Mapping.
See Diffuse.
Controls how much of the light is diffusely scattered along the light direction. At a value of 0 the light is scattered uniformly in a lambertian fashion, which is good for most surfaces. Some materials, such as skin, scatter the light more along the forward direction so values larger than zero may help in simulating these materials.
See Translucence.
See Translucence Focus.
See Translucence Depth.
Controls how bright the specular highlights are. It is a simple multiplier of the specular color.
Controls how big the specular highlights, or hot spots, are. For more information, see Specular Shading attributes (Blinn).
Is the color of the specular reflections, also called hot spots, on the material. The final color of a specular reflection is a combination of the Specular Color and the color of the light. By making the Specular Color brighter or dimmer, you can control the brightness of the specular reflections on an object. If there is more than one ramp index, the specular color varies based on the brightness of the highlight.
For descriptions of the attributes, which are the same as the Color attributes, see Color .
This modulates or scales the intensity of the specular highlight. The facing ratio is the input to the graph. Making the graph slope down to the right simulates the fresnel effect, where objects with a low refractive index are more reflective towards the edge (where the normal is perpendicular to the view). Water and wax both have a relatively low refractive index, thus this can help simulate the look of a waxed car finish, an ocean surface or a wet object. The horizontal dimension of the graph represents the brightness of specular reflections and the vertical represents the facing angle with the view.
Specular Roll Off does not affect the reflections produced when you render using raytracing.
To get a wet look, such as wet paint, make the edges more reflective.
The active value on the x-axis of the ramp graph.
The active value on the y-axis of the ramp graph.
Controls the way values are calculated in the ramp. Select an option from the drop-down list: None, Linear, Smooth, Spline. The default is Smooth.
There is no interpolation; the different colors show up as different bands in the final texture.
The values interpolated linearly in RGB color space.
The values interpolated along a bell curve, so that each value on the ramp dominates the region around it, then blends quickly to the next value.
This takes into account neighboring indices for a smoother effect.
This functions in the same manner as specular roll off, but modulates the environment and reflected color instead of specularity. It also affects raytrace reflections. Reflectivity is used to make an object reflect light and its environment like a mirror. Set to 0 for no reflection. Increase the value to make brighter reflections. Note that brighter reflections hide more of the base surface color. This attribute is only meaningful if there is a reflection map, or if you are raytracing the render.
If you are doing raytracing and you want other objects in the scene to be seen in reflections, then for those objects you must ensure the Visible In Reflections attribute is turned on in the Render Stats section of the Attribute Editor. (It is on by default.)
For descriptions of the Selected Position, Selected Value, and Interpolation attributes, see Specular Roll Off.
Defines a simple sky to ground environmental reflection using a ramp. The left of the ramp is the top of the sky and the right is the bottom.
For descriptions of the Selected Position, Selected Color, and Interpolation attributes, see Color .
Affects the color of light reflected from the material. You can map an image, texture, or environment map to this attribute in order to make fake reflections, which are less expensive than raytracing. This is called reflection mapping. Reflection mapping and raytracing may be used together, in which the reflection map is used as background, and raytraced reflections appear in the foreground.
Specifies the shadow mode to be used. Select one of the following options from the drop-down list:
Use this mode when you want the shadow color to be the same as the lowest color position in the ramp shader. The Shadow Color and Shadow Threshold options are not available in Normal mode.
Use this mode when you want to specify a particular shadow color that has gradients based on the background or objects that the shadow is cast on. You can set the shadow color with the Shadow Color attribute.
Use this mode when you want to specify a particular shadow color that has a consistent, solid color throughout the shadow regardless of the background or objects that the shadow is cast on. You can set the shadow color with the Shadow Color attribute.
Specifies the color of the shadow when using the Shaded Color or Constant Color modes.
Specifies the spread of your shadows. The higher the setting, the smaller the spread of your shadow. A value of 1 results in no shadow rendered.