openclonk/src/landscape
Lukas Werling 6847e50e79 Implement setting shader uniforms from script (#1206)
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.
2016-11-12 22:09:23 +01:00
..
fow Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4Landscape.cpp Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4Landscape.h Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4LandscapeRender.cpp Implement setting shader uniforms from script (#1206) 2016-11-12 22:09:23 +01:00
C4LandscapeRender.h Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4Map.cpp Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4Map.h Update all copyright notices for 2016 2016-04-03 20:24:42 +02:00
C4MapCreatorS2.cpp Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4MapCreatorS2.h Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4MapScript.cpp Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4MapScript.h Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4MapScriptAlgo.cpp Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4MassMover.cpp Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4MassMover.h Update all copyright notices for 2016 2016-04-03 20:24:42 +02:00
C4Material.cpp Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4Material.h Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4MaterialList.cpp Update all copyright notices for 2016 2016-04-03 20:24:42 +02:00
C4MaterialList.h Update all copyright notices for 2016 2016-04-03 20:24:42 +02:00
C4PXS.cpp Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4PXS.h Update all copyright notices for 2016 2016-04-03 20:24:42 +02:00
C4Particles.cpp Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4Particles.h Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4PathFinder.cpp Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4PathFinder.h Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4Scenario.cpp Merge branch 'master' into qteditor 2016-06-20 22:27:03 -04:00
C4Scenario.h Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4ScenarioSection.cpp Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4Sky.cpp Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4Sky.h Rework sky definition parsing 2016-10-15 13:34:39 +02:00
C4SolidMask.cpp Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4SolidMask.h Update all copyright notices for 2016 2016-04-03 20:24:42 +02:00
C4Texture.cpp Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4Texture.h Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4TextureShape.cpp Fix dedicated: Load JPEG surfaces so the texture shape information can be correctly generated 2016-10-30 21:36:29 +01:00
C4TextureShape.h Update all copyright notices for 2016 2016-04-03 20:24:42 +02:00
C4TransferZone.cpp Replace NULL by nullptr in C++ sources 2016-11-02 19:58:02 -04:00
C4TransferZone.h Update all copyright notices for 2016 2016-04-03 20:24:42 +02:00
C4Weather.cpp Twiddle with header organization: lib{misc,c4script} do no longer include GL/glew.h 2016-10-20 18:46:32 +02:00
C4Weather.h Update all copyright notices for 2016 2016-04-03 20:24:42 +02:00