00001 00005 #include "ConstantBackground.h" 00006 ConstantBackground::ConstantBackground(const Color& bgcolor) 00007 : bgcolor(bgcolor) 00008 { 00009 } 00010 00011 ConstantBackground::~ConstantBackground() 00012 { 00013 } 00014 00015 void ConstantBackground::preprocess() 00016 { 00017 } 00018 00019 void ConstantBackground::getBackgroundColor(Color& result, const RenderContext&, 00020 const Ray&) 00021 { 00022 result=bgcolor; 00023 }