visionforge/visionforge-threejs/src/main/kotlin/three/ktutils.kt

9 lines
259 B
Kotlin
Raw Normal View History

2022-08-14 22:03:46 +03:00
@file:Suppress("FunctionName")
package three
import three.renderers.WebGLRenderer
import three.renderers.WebGLRendererParams
fun WebGLRenderer(builder: WebGLRendererParams.() -> Unit): WebGLRenderer =
WebGLRenderer(WebGLRendererParams().apply(builder))