struct hiro::shader::MatAndInv — HIRO 0.7.0 documentation

# struct hiro::shader::MatAndInv

## Overview

Matrix and its inverse. More…

    #include <ShaderApi.h>

    struct MatAndInv {
        // fields

        glm::mat4 matrix { 1.0f };
        glm::mat4 inverse { 1.0f };

        // construction

        MatAndInv(const glm::mat4& mat);
    };

## Detailed Documentation

Matrix and its inverse.

### Construction

    MatAndInv(const glm::mat4& mat)

Initializes the structure by setting a matrix to the specified and calculating inverse.