定義
PixelTexture {
exposedField SFImage image 0 0 0
field SFBool repeatS TRUE
field SFBool repeatT TRUE
}
SFImage物体に貼り付けるために使います。
SFImageについてはリンク先をご参照下さい。
- image
- SFImageの設定
- repeatS
- 横方向に繰り返すかどうか
- repeatT
- 縦方向に繰り返すかどうか
no
サンプル
#VRML V2.0 utf8
Shape {
geometry Box {}
#テキスチャの貼り付け
appearance Appearance {
texture PixelTexture {
image 2 3 3 0xFF0000 0xFF00 0 0xFFFFFF 0xFF 0xFFFF00
}
}
}