commonMain.de.fabmax.kool.editor.data.ShadowMapComponentData.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kool-editor-model Show documentation
Show all versions of kool-editor-model Show documentation
A multiplatform OpenGL / Vulkan graphics engine written in kotlin
The newest version!
package de.fabmax.kool.editor.data
import kotlinx.serialization.Serializable
@Serializable
data class ShadowMapComponentData(
val shadowMap: ShadowMapTypeData,
val clipNear: Float = 0.5f,
val clipFar: Float = 200f
) : ComponentData
@Serializable
sealed class ShadowMapTypeData {
@Serializable
class Single(val mapInfo: ShadowMapInfo) : ShadowMapTypeData()
@Serializable
class Cascaded(val mapInfos: List) : ShadowMapTypeData()
}
@Serializable
data class ShadowMapInfo(
val mapSize: Int = 2048,
val rangeNear: Float = 0f,
val rangeFar: Float = 1f
)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy