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) {
... ... ... ...
}
댓글 없음:
댓글 쓰기