VRML : Chemistry in VRML
Source code for example 1 : A simple nucleus.


#VRML V1.0 ascii

#Only 1 node allowed, so must be Separator

Separator {

#Create light from above and behind

	DirectionalLight {direction 0 0 -1}
	DirectionalLight { direction 0 -1 0 }

#Setup a PerspectiveCamera

	PerspectiveCamera { position 0 0 5 }

#Make the current material red

	Material {
		diffuseColor 1 0 0
		ambientColor 0.2 0 0
	}

#Create a Sphere in the current material

	Sphere { radius 1 }
}

#End of File




Previous Topic (Chemistry in VRML)
Back to the VRML Reference
Back to the Main Page

©Tom Thurston, 1997
Please feel free to use and redistribute this NONcommercially!