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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Name Type Storage Class Description<br />

P point varying Surface position on the light<br />

dPdu vector varying Derivitive of surface position along u<br />

dPdv vector varying Derivitive of surface position along v<br />

N normal varying Surface shading normal on the light<br />

Ng normal varying Surface geometric normal on the light<br />

u,v float varying Surface parameters<br />

du,dv float varying Change in surface parameters<br />

s,t float varying Surface texture coordinates<br />

L vector varying Outgoing light ray direction*<br />

Ps point varying Position being illuminated<br />

E point uniform Position of the eye<br />

ncomps float uniform Number of color components<br />

time float uniform Current shutter time<br />

dtime float uniform <strong>The</strong> amount of time covered by this shading<br />

sample.<br />

Cl color varying Outgoing light ray color<br />

Ol color varying Outgoing light ray opacity<br />

* Available only inside solar or illuminate statements.<br />

Table 12.2: Predefined Light Source Variables<br />

Name Type Storage Class Description<br />

P point varying Light ray endpoint<br />

I vector varying Ray direction (pointing toward P)<br />

E point uniform Position of the eye<br />

Ci color varying Ray color<br />

Oi color varying Ray opacity<br />

ncomps float uniform Number of color components<br />

time float uniform Current shutter time<br />

dtime float uniform <strong>The</strong> amount of time covered by this shading<br />

sample.<br />

Ci color varying Attenuated ray color<br />

Oi color varying Attenuated ray opacity<br />

Table 12.3: Predefined Volume Shader Variables<br />

123

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

Saved successfully!

Ooh no, something went wrong!