Glen Whitney
8a0ece1dde
Construct a proper package.json in the dist file and copy the README there for a reasonably complete shipped package. Reviewed-on: #8 Co-authored-by: Glen Whitney <glen@studioinfinity.org> Co-committed-by: Glen Whitney <glen@studioinfinity.org>
34 lines
837 B
HTML
34 lines
837 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>vrml1to97 test</title>
|
|
<script>
|
|
(async () => {
|
|
const vrml1to97 = await import('../dist/vrml1to97/index.js')
|
|
console.log(vrml1to97.convert( `
|
|
#VRML V1.0 ascii
|
|
|
|
# Example 2 - using the Separator and Material Nodes
|
|
|
|
# Here comes the Sun
|
|
# The Separator node groups everything within it together
|
|
Separator {
|
|
# The material will affect all subsequent nodes
|
|
# The Sun becomes yellow
|
|
Material {
|
|
diffuseColor 1 1 0 # R G B
|
|
}
|
|
Sphere {
|
|
radius 10 # the Sun is very big
|
|
}
|
|
}`))
|
|
})()
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<p>Nothing will show in this page, but the result of the conversion
|
|
should appear in the console.</p>
|
|
</body>
|
|
</html>
|