Billboard
#VRML V2.0 utf8
# Exemplo - Billboard
# Baseado no exemplo 17.10, The VRML 2.0 Sourcebook
Group {
children [
# Chao
Shape {
appearance Appearance {
material Material {
ambientIntensity 0.6
}
}
geometry IndexedFaceSet {
coord Coordinate {
point [
-5.0 0.0 5.0, 5.0 0.0 5.0,
5.0 0.0 -5.0, -5.0 0.0 -5.0,
]
}
coordIndex [ 0, 1, 2, 3 ]
solid FALSE
}
},
# Retangulo para arvore
Billboard {
children
Shape {
appearance Appearance {
# Sem material, cor emissiva
texture ImageTexture {
url "tree.png"
}
}
geometry IndexedFaceSet {
coord Coordinate {
point [
-1.51 0.0 0.0, 1.51 0.0 0.0,
1.51 3.0 0.0, -1.51 3.0 0.0,
]
}
coordIndex [ 0, 1, 2, 3 ]
solid FALSE
}
}
}
]
}