Text archives Help
- From: brownlee@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [MANTA] r1518 - trunk/Model/Materials
- Date: Fri, 20 Jul 2007 02:28:46 -0600 (MDT)
Author: brownlee
Date: Fri Jul 20 02:28:46 2007
New Revision: 1518
Modified:
trunk/Model/Materials/Lambertian.cc
Log:
reverting Lambertian.cc after accidental commit
Modified: trunk/Model/Materials/Lambertian.cc
==============================================================================
--- trunk/Model/Materials/Lambertian.cc (original)
+++ trunk/Model/Materials/Lambertian.cc Fri Jul 20 02:28:46 2007
@@ -29,17 +29,15 @@
#include <Model/Materials/Lambertian.h>
#include <Interface/Light.h>
#include <Interface/LightSet.h>
-#include <Interface/Primitive.h>
+#include <Interface/Primitive.h>
#include <Interface/RayPacket.h>
#include <Interface/AmbientLight.h>
#include <Interface/Context.h>
#include <Interface/ShadowAlgorithm.h>
#include <Model/Textures/Constant.h>
-#include <SCIRun/Core/Exceptions/InternalError.h>
#include <iostream>
using namespace Manta;
using std::cerr;
-using namespace SCIRun;
Lambertian::Lambertian(const Color& color)
{
@@ -77,12 +75,10 @@
// Compute ambient contributions for all rays
MANTA_ALIGN(16) ColorArray totalLight;
- if (! activeLights->getAmbientLight())
- exit(2);
activeLights->getAmbientLight()->computeAmbient(context, rays, totalLight);
ShadowAlgorithm::StateBuffer shadowState;
- do {
+ do {
RayPacketData shadowData;
RayPacket shadowRays(shadowData, RayPacket::UnknownShape, 0, 0,
rays.getDepth(), debugFlag);
- [MANTA] r1518 - trunk/Model/Materials, brownlee, 07/20/2007
Archive powered by MHonArc 2.6.16.