3c4929873f
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@967 127b21dd-08f5-0310-b4b7-95ae10353056
41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
/* Settings for shader system.
|
|
|
|
While it is possible to override this in the usual fashion, it would not
|
|
be a very good idea.
|
|
*/
|
|
|
|
// Default shader uniform bindings for ship entities.
|
|
"ship-default-bindings" =
|
|
{
|
|
"engine_level" = { type = "binding"; value = "speedFactor"; };
|
|
"laser_heat_level" = { type = "binding"; value = "laserHeatLevel"; clamped = "YES"; };
|
|
"hull_heat_level" = { type = "binding"; value = "hullHeatLevel"; };
|
|
"entity_personality" = { type = "binding"; value = "entityPersonality"; };
|
|
"entity_personality_int" = { type = "binding"; value = "entityPersonalityInt"; };
|
|
"time" = { type = "binding"; value = "universalTime"; };
|
|
};
|
|
|
|
|
|
// Macros prepended to shader source code for ship entities.
|
|
"ship-prefix-macros" =
|
|
{
|
|
"OO_ENGINE_LEVEL" = 1;
|
|
"OO_ENTITY_PERSONALITY" = 1;
|
|
"OO_ENTITY_PERSONALITY_INT" = 1;
|
|
"OO_ENTITY_LASER_HEAT_LEVEL" = 1;
|
|
"OO_HULL_HEAT_LEVEL" = 1;
|
|
"OO_TIME" = 1;
|
|
};
|
|
|
|
|
|
// Material definition used for DAT files with no TEXTURES section (which specifies material names and texture co-ordinates).
|
|
"no-textures-material" =
|
|
{
|
|
"diffuse_map" = "";
|
|
"diffuse" = (0, 0, 0.4);
|
|
"ambient" = (0, 0, 0.4);
|
|
"emission" = (0.5, 0.1, 0.0);
|
|
"specular" = (1.0, 0.2, 0.2);
|
|
"shininess" = 5;
|
|
};
|