定義
ImageTexture {
exposedField MFString url []
field SFBool repeatS TRUE
field SFBool repeatT TRUE
}
テキスチャにイメージを使う時に使用するノードです。
JPG,PNGがサポートされるはずです。GIF,CGMへの対応も
推奨されていますので大抵のブラウザで見る事が出来る
はずです。
- url
- イメージのURL
- repeatS
- 横方向に繰り返すかどうか
- repeatT
- 縦方向に繰り返すかどうか
サンプル
#VRML V2.0 utf8
Shape {
geometry Box {}
#テキスチャの貼り付け
appearance Appearance {
texture ImageTexture {
url "http://www.mag2.com/images/mglogo.gif"
}
}
}