In https://github.com/SFTtech/openage/pull/1664 we switched the structure of OpenGL uniform inputs (GlUniformInput) to more performance friendly code. Uniform buffer inputs (GlUniformBufferInput) were not changed in the PR as the performance gain would have been only marginal. However, it would make sense for code quality purposes to keep the update syntax of both input types roughly the same, so that they can be maintained in the same way.
The tasks mostly consist of porting the changes from https://github.com/SFTtech/openage/pull/1664 to the flow used for updating the uniform buffers. A simple example for uniform buffers that can be used for testing purposes is available in renderer demo 5 which you can access by running this command:
Required Skills: C++, maybe OpenGL
Difficulty: Easy
In https://github.com/SFTtech/openage/pull/1664 we switched the structure of OpenGL uniform inputs (
GlUniformInput
) to more performance friendly code. Uniform buffer inputs (GlUniformBufferInput
) were not changed in the PR as the performance gain would have been only marginal. However, it would make sense for code quality purposes to keep the update syntax of both input types roughly the same, so that they can be maintained in the same way.The tasks mostly consist of porting the changes from https://github.com/SFTtech/openage/pull/1664 to the flow used for updating the uniform buffers. A simple example for uniform buffers that can be used for testing purposes is available in renderer demo 5 which you can access by running this command:
Tasks:
GlUniformInput
made in https://github.com/SFTtech/openage/pull/1664 to theGlUniformBufferInput
classFurther Reading