| Cover | TOC | Chap | Prev Chap | Prev Fig | Next Fig | Next Chap |
|
Figure 31.2
An external file containing a material library with the WallColor-node-type definition. |
|
|
Click on the image to view the VRML scene. |
#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright (c) 1997
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
PROTO WallColor [ ] {
Material {
diffuseColor 0.0 0.6 1.0
}
}
PROTO Gold [ ] {
Material {
ambientIntensity 0.4
diffuseColor 0.22 0.15 0.0
specularColor 0.71 0.70 0.56
shininess 0.16
}
}
PROTO Aluminum [ ] {
Material {
ambientIntensity 0.3
diffuseColor 0.30 0.30 0.50
specularColor 0.70 0.70 0.80
shininess 0.10
}
}
PROTO Copper [ ] {
Material {
ambientIntensity 0.26
diffuseColor 0.30 0.11 0.00
specularColor 0.75 0.33 0.00
shininess 0.08
}
}