diff --git a/docs-mini/README.effects b/docs-mini/README.effects index d5aa72721..60b30386a 100644 --- a/docs-mini/README.effects +++ b/docs-mini/README.effects @@ -1,75 +1,101 @@ - - city @@ -91,32 +117,28 @@ 1.2 - - city.png - linear-mipmap-linear - - clamp - clamp-to-edge - - - normalized - + city.png + linear-mipmap-linear + + clamp + clamp-to-edge + + + normalized - - detail.png - linear-mipmap-linear - - clamp - clamp-to-edge - - - normalized - + detail.png + linear-mipmap-linear + + clamp + clamp-to-edge + + + normalized .05 0 0 1 1.5708 @@ -146,10 +168,24 @@ material/shininess - texture[0]/texture2d + 0 + texture[0]/image + texture[0]/filter + texture[0]/wrap-s + texture[0]/wrap-t + + texture[0]/internal-format + - texture[1]/texture2d + 1 + texture[1]/image + texture[1]/filter + texture[1]/wrap-s + texture[1]/wrap-t + + texture[1]/internal-format + bumpHeight @@ -195,7 +231,14 @@ material/specular - texture[0]/texture2d + 0 + texture[0]/image + texture[0]/filter + texture[0]/wrap-s + texture[0]/wrap-t + + texture[0]/internal-format + diff --git a/src/Main/fg_commands.cxx b/src/Main/fg_commands.cxx index 237e041ce..e92cb0f52 100644 --- a/src/Main/fg_commands.cxx +++ b/src/Main/fg_commands.cxx @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -497,6 +498,13 @@ do_screen_capture (const SGPropertyNode * arg) return fgDumpSnapShot(); } +static bool +do_reload_shaders (const SGPropertyNode*) +{ + simgear::reload_shaders(); + return true; +} + static bool do_dump_scene_graph (const SGPropertyNode*) { @@ -1564,6 +1572,7 @@ static struct { { "release-cockpit-button", do_release_cockpit_button }, { "dump-scenegraph", do_dump_scene_graph }, { "dump-terrainbranch", do_dump_terrain_branch }, + { "reload-shaders", do_reload_shaders }, { 0, 0 } // zero-terminated };