
info.laht.threekt.materials.LineBasicMaterial.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Port of the three.js 3D javascript library for Kotlin/JVM
The newest version!
package info.laht.threekt.materials
import info.laht.threekt.math.Color
open class LineBasicMaterial : Material(), MaterialWithColor, MaterialWithLineWidth {
override val color = Color(0xffffff)
override var linewidth = 1f
init {
lights = false
}
override fun clone(): LineBasicMaterial {
return LineBasicMaterial().copy(this)
}
fun copy(source: LineBasicMaterial): LineBasicMaterial {
super.copy(source)
this.color.copy(source.color)
this.linewidth = source.linewidth
return this
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy