commit
This commit is contained in:
@@ -217,9 +217,6 @@
|
||||
<Filter Include="02.Element\02.Component\07.RigidBody\00.Static">
|
||||
<UniqueIdentifier>{fda41884-634b-4dd4-8bd2-f6f7ad68ab1f}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.Element\02.Component\09.Light">
|
||||
<UniqueIdentifier>{7c82051e-19af-4284-8156-16f504db30b6}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="03.Management\03.Light_Manager">
|
||||
<UniqueIdentifier>{8727e975-e9e2-4b59-9a52-27ad3ad79f2f}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -295,6 +292,9 @@
|
||||
<Filter Include="03.Management\02.Resource_Manager">
|
||||
<UniqueIdentifier>{685d2cc6-b29a-4018-b72f-d66a2807463d}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.Element\02.Component\09.Light">
|
||||
<UniqueIdentifier>{7c82051e-19af-4284-8156-16f504db30b6}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Base.cpp">
|
||||
|
||||
@@ -198,7 +198,7 @@ void CLight::Describe_Entity()
|
||||
|
||||
|
||||
|
||||
GUI::DragFloat4("Diffuse", reinterpret_cast<float*>(&m_LightDesc.vDiffuse) , 0.01f , 0.f ,1.f);
|
||||
GUI::ColorEdit4("Diffuse", (_float*)&m_LightDesc.vDiffuse);
|
||||
GUI::DragFloat4("Ambient", reinterpret_cast<float*>(&m_LightDesc.vAmbient), 0.01f, 0.f, 1.f);
|
||||
GUI::DragFloat4("Specular", reinterpret_cast<float*>(&m_LightDesc.vSpecular), 0.01f, 0.f, 1.f);
|
||||
GUI::DragFloat("Range", &m_LightDesc.fRange, 1.f, 0.f);
|
||||
|
||||
@@ -42,10 +42,10 @@ class ENGINE_DLL CLight final : public CComponent
|
||||
|
||||
m_fAccLightTime += fTimeDelta;
|
||||
|
||||
if (m_fAccLightTime >= fTime)
|
||||
return;
|
||||
|
||||
m_fAmbientRatio = 1 - (m_fAccLightTime / fTime);
|
||||
|
||||
if (m_fAmbientRatio <= 0)
|
||||
m_fAmbientRatio = 0;
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user