commit x64 compilation from lulu cause the other branch dont seems to compile properly at home
This commit is contained in:
27
include/engine/scene3d/mlight.cpp
Normal file
27
include/engine/scene3d/mlight.cpp
Normal file
@ -0,0 +1,27 @@
|
||||
/* -----------------------------------------------------------------------------
|
||||
GSFramework
|
||||
Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
|
||||
----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
#include "scene3d/mlight.h"
|
||||
#include "scene3d/scene_message.h"
|
||||
|
||||
using namespace GS::S3D;
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
bool MLight::isActive() const
|
||||
{
|
||||
if ((diffuse_intensity <= 0.01f) && (specular_intensity <= 0.01f))
|
||||
return false;
|
||||
return MItem::isActive();
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
MLight::MLight()
|
||||
{
|
||||
item_type = Type_Light;
|
||||
mitem = (void *)((MItem *)this);
|
||||
priority = 1.f;
|
||||
}
|
||||
Reference in New Issue
Block a user