Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/render.cc')
-rw-r--r--src/render/render.cc6
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;