Cleanup.
This commit is contained in:
parent
f3ca372d85
commit
6014ca73a0
@ -619,29 +619,17 @@ mat3 mtxFromCols(vec3 _0, vec3 _1, vec3 _2)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if BGFX_SHADER_LANGUAGE_GLSL
|
#if BGFX_SHADER_LANGUAGE_GLSL
|
||||||
|
#define mtxFromRows3(_0, _1, _2) transpose(mat3(_0, _1, _2))
|
||||||
#define mtxFromRows4(_0, _1, _2, _3) transpose(mat4(_0, _1, _2, _3))
|
#define mtxFromRows4(_0, _1, _2, _3) transpose(mat4(_0, _1, _2, _3))
|
||||||
#else
|
#define mtxFromCols3(_0, _1, _2) mat3(_0, _1, _2)
|
||||||
#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 mtxFromCols4(_0, _1, _2, _3) mat4(_0, _1, _2, _3)
|
#define mtxFromCols4(_0, _1, _2, _3) mat4(_0, _1, _2, _3)
|
||||||
#else
|
#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))
|
#define mtxFromCols4(_0, _1, _2, _3) transpose(mat4(_0, _1, _2, _3))
|
||||||
#endif // BGFX_SHADER_LANGUAGE_GLSL
|
#endif // BGFX_SHADER_LANGUAGE_GLSL
|
||||||
|
|
||||||
#if BGFX_SHADER_LANGUAGE_GLSL
|
|
||||||
#define mtxFromCols3(_0, _1, _2) mat3(_0, _1, _2)
|
|
||||||
#else
|
|
||||||
#define mtxFromCols3(_0, _1, _2) transpose(mat3(_0, _1, _2))
|
|
||||||
#endif // BGFX_SHADER_LANGUAGE_GLSL
|
|
||||||
|
|
||||||
uniform vec4 u_viewRect;
|
uniform vec4 u_viewRect;
|
||||||
uniform vec4 u_viewTexel;
|
uniform vec4 u_viewTexel;
|
||||||
uniform mat4 u_view;
|
uniform mat4 u_view;
|
||||||
|
Loading…
Reference in New Issue
Block a user