Original Spec|
Sample
定義
Appearance {
exposedField SFNode material NULL
exposedField SFNode texture NULL
exposedField SFNode textureTransform NULL
}
物体の表面の色やテキスチャの設定をします。
- material
- 材質の指定、Materialノードを使用
- texture
- テキスチャの指定 ImageTexture,MovieTexture,
PixelTextureのいずれかを使用
- textureTransform
- テキスチャを変換する場合に指定。TextureTransformを使用
サンプル
テキスチャを使った例です。
#VRML V2.0 utf8
Shape {
geometry Box {}
#テキスチャの貼り付け
appearance Appearance {
texture ImageTexture {
url "http://www.mag2.com/images/mglogo.gif"
}
material Material { diffuseColor 1 1 1 }
}
}