Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] r1339 - trunk/Core/Color


Chronological Thread 
  • From: bigler@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [MANTA] r1339 - trunk/Core/Color
  • Date: Thu, 12 Apr 2007 01:40:13 -0600 (MDT)

Author: bigler
Date: Thu Apr 12 01:40:13 2007
New Revision: 1339

Modified:
   trunk/Core/Color/RGBTraits.h
Log:

Should use ComponentType instead of Real (whose type definition isn't
explicitly included).


Modified: trunk/Core/Color/RGBTraits.h
==============================================================================
--- trunk/Core/Color/RGBTraits.h        (original)
+++ trunk/Core/Color/RGBTraits.h        Thu Apr 12 01:40:13 2007
@@ -37,7 +37,7 @@
     }
 
     static ComponentType luminance(const ComponentType data[3]) {
-      return data[0] * Real(0.3) + data[1] * Real(0.59) + data[2] * 
Real(0.11);
+      return data[0] * ComponentType(0.3) + data[1] * ComponentType(0.59) + 
data[2] * ComponentType(0.11);
     }
   };
 }




  • [MANTA] r1339 - trunk/Core/Color, bigler, 04/12/2007

Archive powered by MHonArc 2.6.16.

Top of page