This commit is contained in:
Бранимир Караџић 2019-07-19 21:36:49 -07:00
parent 6106f8b279
commit 5209758d61

View File

@ -594,35 +594,6 @@ mat3 mtxFromCols(vec3 _0, vec3 _1, vec3 _2)
#endif // BGFX_SHADER_LANGUAGE_GLSL #endif // BGFX_SHADER_LANGUAGE_GLSL
} }
vec4 mtxGetRow(mat4 _0, uint row)
{
#if BGFX_SHADER_LANGUAGE_GLSL
return vec4(_0[0][row], _0[1][row], _0[2][row], _0[3][row]);
#else
return vec4(_0[row]);
#endif // BGFX_SHADER_LANGUAGE_GLSL
}
vec4 mtxGetColumn(mat4 _0, uint column)
{
#if BGFX_SHADER_LANGUAGE_GLSL
return vec4(_0[column]);
#else
return vec4(_0[0][column], _0[1][column], _0[2][column], _0[3][column]);
#endif // BGFX_SHADER_LANGUAGE_GLSL
}
float mtxGetElement(mat4 _0, uint column, uint row)
{
#if BGFX_SHADER_LANGUAGE_GLSL
return _0[column][row];
#else
return _0[row][column];
#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;