forked from Mirrors/openclonk
6847e50e79
Uniform variables are read from the "Uniforms" proplist set on Scenario or on individual objects. Proplist keys are uniform names. Values can either be an int or an array of one to four ints in C4Script. In GLSL, the uniforms then need a matching type (int/ivec2/ivec3/ivec4). There is no error reporting; uniforms are only set if both name and type match. The implementation walks the "Uniforms" proplists on each Draw call. We may need to cache the uniform maps if this turns out to be too slow. |
||
---|---|---|
.. | ||
C4Application.cpp | ||
C4Application.h | ||
C4FullScreen.cpp | ||
C4FullScreen.h | ||
C4Game.cpp | ||
C4Game.h | ||
C4GameScript.cpp | ||
C4GameScript.h | ||
C4GameVersion.h | ||
C4GraphicsSystem.cpp | ||
C4GraphicsSystem.h | ||
C4Physics.h | ||
C4Viewport.cpp | ||
C4Viewport.h | ||
ClonkMain.cpp |