mental ray User IBL Shaders

Version 3.11

Version 3.11.0.3
July 20 2012

Contents

User IBL Shaders

user_ibl_env
color "user_ibl_env" (
    color texture   "texture",                      # environment lookup shader or texture
    integer         "samples"   default 0,          # limit number of arealight samples
    color           "color"     default 1 1 1,      # light color scaling
    scalar          "intensity" default 1,          # scalar multiplier
    integer         "shadow_mode" default 2,        # 0=no shadow, 1=opaque, 2=transp
    scalar          "rotate",                       # rotation
    boolean         "as_reflection" default false,  # treat the texture as a reflection
    boolean         "primary"   default true
)
apply light, environment
version 3
user_ibl_rect
color "user_ibl_rect" (
    color texture   "texture",                      # environment lookup shader or texture
    integer         "samples"   default 0,          # limit number of arealight samples
    color           "color"     default 1 1 1,      # light color scaling
    scalar          "intensity" default 1,          # scalar multiplier
    integer         "shadow_mode" default 2,        # 0=no shadow, 1=opaque, 2=transp
    scalar	    "cone"      default 90.,
    scalar          "falloff"   default 2.0,
    scalar          "angular_falloff" default 1
)
apply light
version 3

Usage

The user IBL related shaders are contained in the useribl library. The declaration of the shaders and data blocks can be found in the file useribl.mi. To use the shaders, the declaration file must be included and the library linked:

link "useribl.so"
$include "useribl.mi"

Example


Copyright © 1986, 2015 NVIDIA ARC GmbH. All rights reserved.