From 38686782bb7bcdc1c3327c3f674ac3de52e520aa Mon Sep 17 00:00:00 2001 From: David Williams Date: Tue, 8 Jan 2008 20:21:40 +0000 Subject: [PATCH] Texture atlas approach basics working but with no texture interpolation and no blending between material. Next task should probably be to simplify the code to remove unnecessary maps. --- source/PolyVoxSceneManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/PolyVoxSceneManager.cpp b/source/PolyVoxSceneManager.cpp index a571df0f..c7db2ac7 100644 --- a/source/PolyVoxSceneManager.cpp +++ b/source/PolyVoxSceneManager.cpp @@ -529,11 +529,11 @@ namespace Ogre //If all the materials are the same, we just need one triangle for that material with all the alphas set high. - if((material0 == material1) && (material1 == material2)) + //if((material0 == material1) && (material1 == material2)) { SurfaceVertex surfaceVertex0Alpha1(vertex0,material0 + 0.1); - SurfaceVertex surfaceVertex1Alpha1(vertex1,material1 + 0.1); - SurfaceVertex surfaceVertex2Alpha1(vertex2,material2 + 0.1); + SurfaceVertex surfaceVertex1Alpha1(vertex1,material0 + 0.1); + SurfaceVertex surfaceVertex2Alpha1(vertex2,material0 + 0.1); surfacePatchMapResult[1]->addTriangle(surfaceVertex0Alpha1, surfaceVertex1Alpha1, surfaceVertex2Alpha1); } //If there not all the same, we need one triangle for each unique material.