以下、赤い放射のある大きな球と、
青い放射のある小さな球の記述例です。
emissiveColor の値の違いに着目してください。
#VRML V2.0 utf8
Transform {
translation 3.0 0.0 0.0
children [
Shape {
appearance Appearance {
material Material {
emissiveColor 1.0 0.0 0.0
}
}
geometry Sphere {
radius 2.0
}
}
]
}
Transform {
translation -3.0 0.0 0.0
children [
Shape {
appearance Appearance {
material Material {
emissiveColor 0.0 0.0 1.0
}
}
geometry Sphere {
radius 1.0
}
}
]
}
|