Deprecated: Function set_magic_quotes_runtime() is deprecated in /storage/content/76/1004576/wiki.jpatch3d.org/public_html/inc/common.php on line 33 Deprecated: Function split() is deprecated in /storage/content/76/1004576/wiki.jpatch3d.org/public_html/inc/auth.php on line 95 Deprecated: Function split() is deprecated in /storage/content/76/1004576/wiki.jpatch3d.org/public_html/inc/common.php on line 743 dev:shaders [DokuWiki]
 

Global variables available to surface shaders (from “The Renderman Companion”):

Type Name Purpose
color Cs Surface color (input)
color Os Surface opacity(input)
point P Surface position
point dPdu Change in position with u
point dPdv Change in position with v
point N Surface shading normal
point Ng Surface geometric normal (before bump/displacement mapping)
float u,v Surface parameters
float du,dv Change in u,v across element
float s,t Surface texture coordinates
point L Direction from surface to light source (available in illuminance loops)
color Cl Light color
point I Direction of ray impinging on surface point
point Ci Color of light from surface (output)
point Oi Opacity of surface (output)
point E Position of the camera

 
  dev/shaders.txt · Last modified: 2006/08/22 08:38 by 195.3.113.168 (sascha)