From 09fcd72e43d3773cdea794510e35c6111f2167f3 Mon Sep 17 00:00:00 2001 From: andreja6 Date: Thu, 26 Apr 2018 11:17:54 -0700 Subject: [PATCH] Changed shade mode --- main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index b96bb9c..2e0d263 100644 --- a/main.cpp +++ b/main.cpp @@ -1121,6 +1121,7 @@ void Demo::onGraphics(RenderDevice* rd) { // Setup lighting app->renderDevice->enableLighting(); + app->renderDevice->setShadeMode(RenderDevice::SHADE_SMOOTH); app->renderDevice->setAmbientLightColor(Color3(1,1,1)); Draw::axes(CoordinateFrame(Vector3(0, 0, 0)), app->renderDevice); @@ -1166,7 +1167,7 @@ void Demo::onGraphics(RenderDevice* rd) { //IFSModel::save(ExePath() + "/content/model.ifs", str, arrayInd, arrayVector, NULL); //IFSModelRef model = IFSModel::create(ExePath() + "/content/model.ifs"); //app->renderDevice->setLight(0, GLight::directional(lighting.lightDirection, lighting.lightColor)); - app->renderDevice->setShadeMode(RenderDevice::SHADE_SMOOTH); + //app->renderDevice->beginIndexedPrimitives(); //{ // app->renderDevice->setNormalArray(G3D::VAR(arrayVector, varStatic));