Skip to content

Use uniform blocks in most shaders #51

@tatjam

Description

@tatjam

Instead of setting all the transform matrices (which are quite a few in our "double" world) every frame, we can create a uniform block and set that instead.

This should offer a performance improvement (albeit possibly minor) as instead of (5 * object) uniform sets, we would have a single call at the start of the frame. Implementation details here: https://learnopengl.com/Advanced-OpenGL/Advanced-GLSL

Metadata

Metadata

Assignees

No one assigned

    Labels

    code-improvementImprovements to the code base which don't change the gamegraphics

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions