以下、黄色い大きな球の奥に、
赤い円すいが透けて見えるシーンの記述例です。
transparency の値に着目してください。
#VRML V2.0 utf8
Transform {
translation 0.0 0.0 -3.0
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1.0 0.0 0.0
}
}
geometry Cone {
height 3.0
bottomRadius 2.0
}
}
]
}
Transform {
translation 0.0 0.0 3.0
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1.0 1.0 0.0
transparency 0.5
}
}
geometry Sphere {
radius 2.0
}
}
]
}
|