src/RefractiveShader.cpp

Go to the documentation of this file.
00001 
00002 #include <cassert>
00003 
00004 #include "RefractiveShader.h"
00005 
00006 
00013 RefractiveShader::RefractiveShader( Scene *             scene,
00014                                     const RGBAColor &   color,
00015                                     float               refractionIdx )
00016     : Shader(scene),
00017         mColor(color),
00018         mRefractionIndex(refractionIdx),
00019         mInvRefractionIndex(1.0f / refractionIdx)
00020 {
00021     assert(0.01f <= refractionIdx && refractionIdx <= 10.0f);
00022 }
00023 
00024 

Generated on Fri Feb 1 00:01:42 2008 for Grayfall by  doxygen 1.5.1