This commit is contained in:
Бранимир Караџић 2019-11-03 16:51:22 -08:00
parent f3ca372d85
commit 6014ca73a0

View File

@ -618,28 +618,16 @@ mat3 mtxFromCols(vec3 _0, vec3 _1, vec3 _2)
#endif // BGFX_SHADER_LANGUAGE_GLSL
}
#if BGFX_SHADER_LANGUAGE_GLSL
#define mtxFromRows4(_0, _1, _2, _3) transpose(mat4(_0, _1, _2, _3))
#else
#define mtxFromRows4(_0, _1, _2, _3) mat4(_0, _1, _2, _3)
#endif // BGFX_SHADER_LANGUAGE_GLSL
#if BGFX_SHADER_LANGUAGE_GLSL
#define mtxFromRows3(_0, _1, _2) transpose(mat3(_0, _1, _2))
#else
#define mtxFromRows3(_0, _1, _2) mat3(_0, _1, _2)
#endif // BGFX_SHADER_LANGUAGE_GLSL
#if BGFX_SHADER_LANGUAGE_GLSL
#define mtxFromRows4(_0, _1, _2, _3) transpose(mat4(_0, _1, _2, _3))
#define mtxFromCols3(_0, _1, _2) mat3(_0, _1, _2)
#define mtxFromCols4(_0, _1, _2, _3) mat4(_0, _1, _2, _3)
#else
#define mtxFromCols4(_0, _1, _2, _3) transpose(mat4(_0, _1, _2, _3))
#endif // BGFX_SHADER_LANGUAGE_GLSL
#if BGFX_SHADER_LANGUAGE_GLSL
#define mtxFromCols3(_0, _1, _2) mat3(_0, _1, _2)
#else
#define mtxFromRows3(_0, _1, _2) mat3(_0, _1, _2)
#define mtxFromRows4(_0, _1, _2, _3) mat4(_0, _1, _2, _3)
#define mtxFromCols3(_0, _1, _2) transpose(mat3(_0, _1, _2))
#define mtxFromCols4(_0, _1, _2, _3) transpose(mat4(_0, _1, _2, _3))
#endif // BGFX_SHADER_LANGUAGE_GLSL
uniform vec4 u_viewRect;