[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
textureinfo()
will return 1.0. In case of failure, 0.0 is returned.
EXAMPLE
/* mapres[0] will contain map resolution in x, mapres[1] will contain map resolution in y */ uniform float mapres[2]; textureinfo( "grid.tdl", "resolution", mapres ); /* Get current to camera matrix used to create the shadow map */ uniform matrix Nl; if( textureinfo( "main-spot.tdl", "viewingmatrix", Nl )!= 1.0 ) { Nl = 1; } |
Field | Type | Description |
"resolution" | uniform float[2]
| Returns texture map resolution; |
"type" | uniform string
| Returns type of texture map. Can be one of the following: "texture", "shadow" or "environment"; |
"channels" | uniform float
| Returns the total number of channels in the map; |
"viewingmatrix" | uniform matrix
| Returns a matrix representing the transform from "current" space to "camera" space in which the map was created; |
"projectionmatrix" | uniform matrix
| Returns a matrix representing the transform from "current" space to map's raster space in which x varies from -1 to 1 and y from 1 to -1 (x increases from left to right and y increases from top to bottom). |
textureinfo()
possible field names.
varying
shader parameter to an uniform
variable will fail. Also, lightsource()
is only available inside an illuminance()
block and refers to the light source being examined.
Name | Type |
"ShadingRate" | uniform float
|
"Sides" | uniform float
|
"Matte" | uniform float
|
"GeometricApproximation:motionfactor" | uniform float
|
"displacementbound:sphere" | uniform float
|
"displacementbound:coordinatesystem" | uniform string
|
"identifer:name" | uniform string
|
attribute()
.
Name | Type | Description |
"Format" | uniform float[3]
| = [ x res, y res, aspect ratio ]; |
"FrameAspectRatio" | uniform float
| Frame aspect ratio; |
"CropWindow" | uniform float[4]
| Crop window coordinates; as specified by RiCropWindow ;
|
"DepthOfField" | uniform float[3]
| = [ fstop, focal length, focal distance ]; as specified by RiDepthOfField ;
|
"Shutter" | uniform float[2]
| = [ shutter open, shutter close ]; as specified by RiShutter ;
|
"Clipping" | uniform float[2]
| = [near, far]; as specified by RiClipping .
|
option()
.
Name | Type | Description |
"renderer" | uniform string
| = "3Delight"; |
"version" | uniform float[4]
| = [Major, Minor, release, 0] (eg [1,0,6,0] ); |
"versionstring" | uniform string
| version expressed as a string, (e.g., "1.0.6.0"). |
rendererinfo()
.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |