Parser bonus - miniRT-jiphyeonjeon/MiniRT GitHub Wiki
bonus 기준 Parse 설명
[.rt]파일에 대한 파싱 문법 추가
Mandatory 기준 파싱
# [x,y,z point] [normalized vector] [ratio] [d] [h] [FOV] [RGB]
A [0-1] [0-255],[0-255],[0-255] (o)
C [none],[none],[none] [-1~1],[-1~1],[-1~1] [0-180) (o)
L [none],[none],[none] [0-1] [0-255],[0-255],[0-255] (o)
sp [none],[none],[none] [0-] [0-255],[0-255],[0-255] (o)
cy [none],[none],[none] [-1~1],[-1~1],[-1~1] [0-] [0-] [0-255],[0-255],[0-255] (o)
pl [none],[none],[none] [-1~1],[-1~1],[-1~1] [0-255],[0-255],[0-255] (o)
# 이외는 x
Bonus 기준 파싱
# [x,y,z point] [normalized vector] [ratio] [d] [h] [FOV] [texture type] [texture info] [kd] [ks] [ksn]
A [0-1] [0-255],[0-255],[0-255] (o)
C [none],[none],[none] [-1~1],[-1~1],[-1~1] [0-180) (o)
L [none],[none],[none] [0-1] [0-255],[0-255],[0-255] (o)
sp [none],[none],[none] [0-] [rgb,ck,bm] [texture info] [0-1] [0-1] [0-] (o)
cy [none],[none],[none] [-1~1],[-1~1],[-1~1] [0-] [0-] [rgb,ck,bm] [texture info] [0-1] [0-1] [0-] (o)
pl [none],[none],[none] [-1~1],[-1~1],[-1~1] [rgb,ck,bm] [texture info] [0-1] [0-1] [0-] (o)
# 이외는 x
추가된 부분의 문법
# [texture info]
# rgb [color1]
[0-255],[0-255],[0-255]
# ck [color1] [color2] [width] [height]
[0-255],[0-255],[0-255] [0-255],[0-255],[0-255] [0-] [0-]
# bm [texture file] [bumpmap file]
[texture file] [bumpmap file]
# [object spec]
[kd] [ks] [ksn]
[0-1] [0-1] [none]