2021-03-07 16:19:43 +03:00
|
|
|
package space.kscience.visionforge.examples
|
2021-02-24 13:42:55 +03:00
|
|
|
|
2021-05-05 15:28:06 +03:00
|
|
|
import space.kscience.gdml.GdmlShowCase
|
2022-08-15 09:47:56 +03:00
|
|
|
import space.kscience.visionforge.Colors
|
2021-03-07 16:19:43 +03:00
|
|
|
import space.kscience.visionforge.gdml.toVision
|
|
|
|
import space.kscience.visionforge.html.ResourceLocation
|
|
|
|
import space.kscience.visionforge.solid.Solids
|
2022-08-15 09:47:56 +03:00
|
|
|
import space.kscience.visionforge.solid.ambientLight
|
|
|
|
import space.kscience.visionforge.solid.set
|
2021-02-24 13:42:55 +03:00
|
|
|
|
2022-08-15 09:47:56 +03:00
|
|
|
fun main() = makeVisionFile(resourceLocation = ResourceLocation.SYSTEM) {
|
2022-01-20 11:13:17 +03:00
|
|
|
vision("canvas") {
|
|
|
|
requirePlugin(Solids)
|
2022-08-15 09:47:56 +03:00
|
|
|
GdmlShowCase.cubes().toVision().also {
|
|
|
|
it.ambientLight {
|
|
|
|
color.set(Colors.white)
|
|
|
|
}
|
|
|
|
}
|
2021-02-24 13:42:55 +03:00
|
|
|
}
|
|
|
|
}
|