26.01.2015 Views

The RenderMan Interface - Paul Bourke

The RenderMan Interface - Paul Bourke

The RenderMan Interface - Paul Bourke

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

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

LightSource ”spotlight” 2 ”coneangle” [5]<br />

LightSource ”ambientlight” 3 ”lightcolor” [.5 0 0] ”intensity” [.6]<br />

SEE ALSO<br />

RiAreaLightSource, RiIlluminate, RiFrameEnd, RiWorldEnd<br />

RtLightHandle RiAreaLightSource ( RtToken shadername, ...parameterlist...)<br />

shadername is the name of a light source shader. This procedure creates an area<br />

light and makes it the current area light source. Each subsequent geometric primitive<br />

is added to the list of surfaces that define the area light. RiAttributeEnd ends the<br />

assembly of the area light source.<br />

<strong>The</strong> light is also turned on and added to the current light source list. An RtLightHandle<br />

value is returned which can be used to turn the light off or on again.<br />

If the Area Light Source capability is not supported by a particular implementation,<br />

this subroutine is equivalent to RiLightSource.<br />

RIB BINDING<br />

AreaLightSource name sequencenumber ...parameterlist...<br />

<strong>The</strong> sequencenumber is a unique light identification number which is provided by<br />

the RIB client to the RIB server. Both client and server maintain independent mappings<br />

between the sequencenumber and their corresponding RtLightHandles. <strong>The</strong><br />

number must be in the range 0 to 65535.<br />

EXAMPLE<br />

RtFloat decay = .5, intensity = .6;<br />

RtColor color = {.5,0,0};<br />

RiAreaLightSource ( ”finite”, ”decayexponent”, (RtPointer)&decay,<br />

”lightcolor”, (RtPointer)color,<br />

”intensity”, (RtPointer)&intensity, RI NULL);<br />

SEE ALSO<br />

RiFrameEnd, RiLightSource, RiIlluminate, RiWorldEnd<br />

RiIlluminate ( RtLightHandle light, RtBoolean onoff )<br />

If onoff is RI TRUE and the light source referred to by the RtLightHandle is not<br />

currently in the current light source list, add it to the list. If onoff is RI FALSE and the<br />

light source referred to by the RtLightHandle is currently in the current light source<br />

list, remove it from the list. Note that popping the graphics state restores the onoff<br />

value of all lights to their previous values.<br />

RIB BINDING<br />

Illuminate sequencenumber onoff<br />

43

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

Saved successfully!

Ooh no, something went wrong!