Professional Documents
Culture Documents
LISTING
PointLight {
location 0.0 0.0 1.0 #the light is 1 units left on the X axis
color 110
children Shape {
appearance Appearance {
}}
},
cycleInterval 6
loop TRUE
},
keyValue [ 0 0 1 0,
0 0 1 -1.57,
0 0 1 -3.14,
0 0 1 -1.57,
0010]
}
texture ImageTexture {
url [ "blactex.jpg" ]}
}
geometry Box {
size 4 1 1
}
}
}
Viewpoint {
# position 0 5 5
# orientation 1 0 0 0.1
}
}
geometry Box {
size 1 1 1
}
}
Transform {
translation 2.5 0 0
children [
KotakPanjang {}
]
}
]
}
PROTO KotakPanjang1 []
#Pendefinisian Objek
{
Shape {
appearance Appearance {
material Material {
#menggunakan interface sebagai nilai
# field diffuseColor
}
texture ImageTexture {
url [ "merahtex.jpg" ]}
}
geometry Box {
size 3 1 1
}
}
}
Viewpoint {
# position 0 5 5
# orientation 1 0 0 0.1
}
}
geometry Box {
size 1 1 1
}
}
Transform {
translation 2 0 0
children [
KotakPanjang1 {}
]
}
]
}