--- title: "Shader Properties" url: "https://help.maxon.net/c4d/en-us/Content/html/XSPECTRAL-ID_SHADERPROPERTIES.html" section_path: "Material Manager > Classic Materials > Classic material > Channel Shaders > Spectral Shader > Shader Properties" element_id: "XSPECTRAL" group_id: "ID_SHADERPROPERTIES" description: "The Intensity controls the overall brightness of the color reflexes. A value of 0 means no effect at all, while bigger values result in brighter color …" --- ## Shader Properties ### Intensity Parameter ID: `SPEC_INT` · Range: [0..+∞%] / ### Variation Parameter ID: `SPEC_VAR` · Range: [-∞..+∞%] The Intensity controls the overall brightness of the color reflexes. A value of 0 means no effect at all, while bigger values result in brighter color reflexes. Variation defines how many times the gradient is repeated within the defined range. ![Image: 004442.jpg](https://help.maxon.net/c4d/en-us/Content/Resources/Images/004442.jpg)\ Variation set to 100% (left) and 200% (right). ### Out of Range Type Parameter ID: `SPEC_RTYPE` In combination with the Variation parameter, **Out Of Range Type** controls if and how the gradient is repeated. Experiment with the **Stop**, **Mirror** and **Tiling** modes to see the effect. With Stop, the gradient is applied once only and the last color is used for the outer areas that are out of range. With **Mirror**, the gradient is mirrored when it is repeated to avoid seams. With Tiling, the gradient is repeated according to the Variation value. Stop The gradient will only be displayed once. In the remaining areas, only the last color will be repeated. Mirror The color range will be mirrored each time it is repeated, as defined by the variation setting. Tiling The color range will be repeated, as defined by the variation setting. ### Spectrum Parameter ID: `SPEC_GRADIENT` The Spectrum gradient defines the colors for the spectral reflexes. ### Use CD Effect Parameter ID: `SPEC_CD_ON` If you enable this option, the shader is optimized for cylindrical surfaces and you can render wedge-shaped, prismatic color effects, such as those seen on CD surfaces. ### Width Parameter ID: `SPEC_CD_WIDTH` · Range: [0..+∞%] Width defines how far the gradient spreads out. ![Image: 004443.jpg](https://help.maxon.net/c4d/en-us/Content/Resources/Images/004443.jpg)\ Left: greater width; right, less width ### Peak Parameter ID: `SPEC_CD_PEAK` · Range: [0..100%] Normally the entire rainbow colored spectrum is visible only if the angle between the light source and the camera forms a straight line. Increasing the **Peak** value allows you to generate a larger color spectrum. ### W Factor Parameter ID: `SPEC_CD_WFAC` · Range: [0..200%] W Factor defines the starting point of the prismatic effect, based on the center of the surface. A value of **1** makes the gradient start from the exact center of the surface. Values above **1** offset the gradient away from the center, and values below **1** shift it more towards the center. ![Image: 004444.jpg](https://help.maxon.net/c4d/en-us/Content/Resources/Images/004444.jpg)\ W Factor 1.5, 1 and 0.7 ### Diffuse Intensity Parameter ID: `SPEC_CD_DINT` · Range: [0..+∞%] Diffuse Intensity controls the intensity of the actual spectral effect. Increasing the value results in overblown colors. ![Image: 004445.jpg](https://help.maxon.net/c4d/en-us/Content/Resources/Images/004445.jpg)\ Diffuse intensity 0.3 and 0.8 ### Diffuse Variation Parameter ID: `SPEC_CD_DVAR` · Range: [-∞..+∞%] Diffuse Variation scatters the spectral effect by bringing in random colors from the gradient. ![Image: 004446.jpg](https://help.maxon.net/c4d/en-us/Content/Resources/Images/004446.jpg)\ Lesser and greater **Diffuse Variation** values. ### Front Side Parameter ID: `SPEC_CD_STYPE` Here you can define how the spectral gradient is projected onto the surface, with reference to the object coordinate system. If you can't see the CD effect immediately, you probably need to adjust this parameter.