2023-09-01 15:20:34 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<title>vrml1to97 test</title>
|
|
|
|
<script>
|
|
|
|
(async () => {
|
2023-09-01 21:32:25 +00:00
|
|
|
const vrml1to97 = await import('../dist/vrml1to97/index.js')
|
2023-09-05 01:12:55 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}`))
|
2023-09-01 15:20:34 +00:00
|
|
|
})()
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<p>Nothing will show in this page, but the result of the conversion
|
|
|
|
should appear in the console.</p>
|
|
|
|
</body>
|
|
|
|
</html>
|