public void Set(mat3 val, bool transpose = false, bool keep_layout = true) { var t = transpose ? Type.MAT3_T : Type.MAT3; InnerVal.Set(val.serialize(ValType == t && keep_layout ? (float[])InnerVal.arrayv : null)); ValType = t; }
public Value(mat3 val, bool transpose = false) { InnerVal = new InnerValue(val.serialize()); ValType = transpose ? Type.MAT3_T : Type.MAT3; }