mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-10 09:30:48 +08:00
Port of commit 1e1584357 adapted to the new source layout and modern NCollection_Mat3/NCollection_Mat4 types. - Graphic3d_ShaderVariable: register NCollection_Mat3<float> and NCollection_Mat4<float> type IDs; add template instantiations and Graphic3d_UniformMat3/Graphic3d_UniformMat4 typedefs. - Graphic3d_ShaderProgram: add PushVariableMat3() and PushVariableMat4() convenience methods. - OpenGl_ShaderProgram: add single-value SetUniform() for mat3 (wrapping glUniformMatrix3fv); register mat3/mat4 in OpenGl_VariableSetterSelector so custom uniforms are dispatched. - ViewerTest (vshader command): add -vec2, -vec3, -vec4, -mat3, -mat4 argument parsing for setting custom uniform variables from Draw Harness. - Add Draw Harness test exercising the new uniform types.