spring: develop 0554f017 | [ Diff ] [ Back to Repository ] | |||
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
jK | jK | develop | 2016-07-04 17:10:30 | develop 976b33d2 |
Changeset | LuaMat: stop calling glGetUniformLocation for every unit drawcall * the glGetUniformLoc was called in SetObjectTeamColorCustom (hidden in abstraction) * move teamColor unifom handling to the same class as the other uniforms (i.e. viewMatrixLoc, cameraPosLoc, ...) * add AutoLinking for all uniforms not just teamColor (again viewMatrix, cameraPos, ...) * also handle them all in CamelCase, camelCase & lowercase notation * print a warning when teamColor uniform doesn't exist * print a warning when a given uniform name is unknown * print a warning when the given uniform got an invalid type (i.e. cameraPos has to be vec3) |
|||
mod - rts/Lua/LuaMaterial.cpp | [ Diff ] [ File ] | |||
mod - rts/Lua/LuaMaterial.h | [ Diff ] [ File ] | |||
mod - rts/Lua/LuaObjectMaterial.h | [ Diff ] [ File ] | |||
mod - rts/Rendering/LuaObjectDrawer.cpp | [ Diff ] [ File ] | |||
mod - rts/Rendering/LuaObjectDrawer.h | [ Diff ] [ File ] |