All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.cesium.createTangentSpaceDebugPrimitive.kt Maven / Gradle / Ivy

The newest version!
// Automatically generated - do not modify!

@file:JsModule("cesium")

package cesium

/**
 * Creates a [Primitive] to visualize well-known vector vertex attributes:
 * `normal`, `tangent`, and `bitangent`.  Normal
 * is red; tangent is green; and bitangent is blue.  If an attribute is not
 * present, it is not drawn.
 * ```
 * scene.primitives.add(createTangentSpaceDebugPrimitive({
 *    geometry : instance.geometry,
 *    length : 100000.0,
 *    modelMatrix : instance.modelMatrix
 * }));
 * ```
 * @return A new `Primitive` instance with geometry for the vectors.
 * @see Online Documentation
 */
external fun createTangentSpaceDebugPrimitive(options: CreateTangentSpaceDebugPrimitiveOptions): Primitive

/**
 * @property [geometry] The `Geometry` instance with the attribute.
 * @property [length] The length of each line segment in meters.  This can be negative to point the vector in the opposite direction.
 *   Default value - `10000.0`
 * @property [modelMatrix] The model matrix that transforms to transform the geometry from model to world coordinates.
 *   Default value - [Matrix4.IDENTITY]
 */
external interface CreateTangentSpaceDebugPrimitiveOptions {
    var geometry: Geometry
    var length: Int?
    var modelMatrix: Matrix4?
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy