2010년 5월 4일 화요일

RSL Information Function - attribute

float attribute( string name, output type variable )

Table 15.4 Data names known to the attribute function
   Name                                                    Type
"ShadingRate"uniform float
"Sides"uniform float
"matte"uniform float
"GeometricApproximation:motionfactor"uniform float
"displacementbound:sphere" *uniform float
"displacementbound:coordinatesystem" *uniform string
"identifier:name" *uniform string
* note that "displacementbound:sphere' does not return the value exactly as specified in the RIB file, but rather returns its length in the coordinate system returned by "displacementbound:coordinatesystem".


ex. 본인이 제일 많이 쓰는 스타일은...
string rayblur;
if (attribute("user:rayblur", rayblur) == 1) {
    ... ... ... ...
}

댓글 없음: