11.07.2015 Views

mental ray Architectural and Design Visualization Shader Library

mental ray Architectural and Design Visualization Shader Library

mental ray Architectural and Design Visualization Shader Library

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

84 3 Sun <strong>and</strong> Skyorigin 0 0 0energy 1 1 1exponent 2caustic photons 20000globillum photons 20000end lightThe shader is declared as follows:declare shader "mia_photometric_light" (boolean "on"default on,scalar "multiplier" default 1.0,color "color" default 1.0 1.0 1.0,# How to define the light intensity# 0 = using a manual peak intensity in cd# 1 = using a total amount of lumen# 2 = using the information stored in the IES fileinteger "intensity_mode",scalarscalar"manual_peak_intensity_cd","manual_flux_lm",# How to define the light distribution# 0 = Isotropic spherical distribution# 1 = Spotlight distribution# 2 = using the information stored in the IES fileinteger "distribution_mode" default 0,scalar "spotlight_cosine_bias",lightprofile "profile",# Scene <strong>and</strong> lighting unit managementscalar "units_to_meter_scale" default 1.0,scalar "cm2_factor" default 1.0)version 2apply light, emitterend declareon turns the light on or off.multiplier allows tweaking the intensity like a dimmer. Only when this is 1.0 will the intensitysettings mentioned below be accurate.color is the color of the light. Only if this is a normalized color (i.e. that the mi luminance() ofthe color is 1.0) will the intensity settings mentioned below be accurate. Fortunately, functionssuch as mib cie d <strong>and</strong> mib blackbody do return normalized colors.intensity mode guides what parameter <strong>and</strong> in what unit the light intensity is defined:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!