diff options
author | Stijn Buys <ingar@osirion.org> | 2009-08-14 11:58:20 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2009-08-14 11:58:20 +0000 |
commit | 05928e35b08a47f5c80b7aa9a5b391a0c1d76ad5 (patch) | |
tree | 2d5fb3bb77c03a42195aba1ddc751802e31ed2d7 /src/render/render.cc | |
parent | bab6eff9da1927a4fc1e22d97e56199c1b677670 (diff) |
implemented r_normalize cvar
Diffstat (limited to 'src/render/render.cc')
-rw-r--r-- | src/render/render.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/render/render.cc b/src/render/render.cc index e37f5f2..27204f6 100644 --- a/src/render/render.cc +++ b/src/render/render.cc @@ -35,6 +35,7 @@ core::Cvar *r_wireframe = 0; core::Cvar *r_mipmap = 0; core::Cvar *r_collision = 0; core::Cvar *r_normals = 0; +core::Cvar *r_normalize = 0; void func_list_textures(std::string const &args) { @@ -72,6 +73,9 @@ void init(int width, int height) r_normals = core::Cvar::get("r_normals", "0", core::Cvar::Archive); r_normals->set_info("[bool] render face normals"); + r_normalize = core::Cvar::get("r_normalize", "0", core::Cvar::Archive); + r_normalize->set_info("[bool] use GL_NORMALIZE instead of GL_RESCALE_NORMAL"); + r_grid = core::Cvar::get("r_grid", "0", core::Cvar::Archive); r_grid->set_info("[bool] render the space grid"); @@ -94,7 +98,7 @@ void init(int width, int height) Screenshot::screenshotquality->set_info("[int] screenshot jpg quality"); // hardware generate mipmaps - r_mipmap = core::Cvar::get("r_mipmap", "0", core::Cvar::Archive); + r_mipmap = core::Cvar::get("r_mipmap", "1", core::Cvar::Archive); r_mipmap->set_info("[bool] use hardware generated mipmaps"); if (!State::has_generate_mipmaps()) { con_print << " no hardware generated mipmap support" << std::endl; |