2007년 11월 17일 토요일

RibBox를 이용한 Conditional Evaluation

[Export Object for RibBox Attribute]

IfBegin "\$user:renderpass == 'shadow'"

Surface "null"

ElseIf "\$user:renderpass == 'beauty'"

Surface "rmarble"

Else Surface "plastic"

IfEnd

[Archive for RibBox Attribute]

Attribute "user" "string renderpass" "shadow"

ReadArchive "rib/filename.rib

댓글 없음: