mental ray Architectural and Design Visualization Shader Library
mental ray Architectural and Design Visualization Shader Library
mental ray Architectural and Design Visualization Shader Library
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
2.5 Detailed Description of Material Parameters 45• diffuse result is the resulting diffuse component after lighting, including textures,diffuse raw is the diffuse lighting itself, without textures, <strong>and</strong> diffuse level is thediffuse texture color adjusted by the energy conservation.• spec result is the resulting specular component, spec raw is the raw un-attenuatedhighlight, <strong>and</strong> spec level is the specular level, which is the same as refl level if theinput parameter hl vs refl balance is 1.0.• refl result is the resulting reflection component, refl raw is the raw (full intensity)reflection, <strong>and</strong> refl level is the actual reflectivity, including reflection color <strong>and</strong> BRDF(or Fresnel) curve attenuation effects.• refr result is the resulting refraction (transparency) component, refr raw is the rawfull intensity transparency, <strong>and</strong> refr level is the actual transparency level, which hasbeen adjusted by the energy conservation.• tran result is the resulting translucency component, tran raw is the raw translucency,<strong>and</strong> tran level the actual translucency level, adjusted by the energy conservation.• indirect result is the resulting indirect illumination including ambient occlusioneffects <strong>and</strong> multiplying by the diffuse color, indirect raw is the raw result frommi compute avg radiance(), indirect post ao is the indirect illumination affectedby AO but without being multiplied by the diffuse color, <strong>and</strong> ao raw is the rawcontribution of the AO.• add result is a straight pass-through of the add color parameter.• opacity result contains the final contribution of any background of the object as a resultof the input cutout opacity being less than 1.0. opacity raw contains the background‘without scaling by the opacity. These outputs will contain black if cutout opacity is1.0 since no actual transparency <strong>ray</strong> is ever traced in that case! The opacity outputcontains the actual opacity itself. Care must be taken if opacity equals zero, becausethis mean that the material has performed no shading whatsoever <strong>and</strong> none of the otheroutputs will contain any value at all!used, the multiple outputs parameter exists. If this is set to off, no other parameter than result is writtento (leaving the others unmodified <strong>and</strong> hence undefined). This also makes it safe to supply mia material x toparameters of type “shader” which only expect a single color return value.