Perspective

@Serializable
data class Perspective(var name: String? = null, val aspectRatio: Float = 1.5f, val yfov: Float = 0.660593f, val zfar: Float = 100.0f, val znear: Float = 0.01f, val extensions: JsonElement? = null, val extras: JsonElement? = null) : GLTFProperty

Constructors

Link copied to clipboard
constructor(name: String? = null, aspectRatio: Float = 1.5f, yfov: Float = 0.660593f, zfar: Float = 100.0f, znear: Float = 0.01f, extensions: JsonElement? = null, extras: JsonElement? = null)

Properties

Link copied to clipboard
val aspectRatio: Float = 1.5f
Link copied to clipboard
open override val extensions: JsonElement? = null

JSON object with extension-specific objects.

Link copied to clipboard
open override val extras: JsonElement? = null

Although extras MAY have any type, it is common for applications to store and access custom data as key/value pairs. Therefore, extras SHOULD be a JSON object rather than a primitive value for best portability.

Link copied to clipboard
open override var name: String?
Link copied to clipboard
val yfov: Float = 0.660593f
Link copied to clipboard
val zfar: Float = 100.0f
Link copied to clipboard
val znear: Float = 0.01f