[add] Point Light
This commit is contained in:
@@ -255,6 +255,17 @@ HRESULT CPlayer::Ready_Components()
|
||||
reinterpret_cast<CComponent**>(&m_pShaderCom)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
LightDesc.eType = LIGHT::POINT;
|
||||
LightDesc.fRange = 10.f;
|
||||
LightDesc.iLevel = NEXT_LEVEL;
|
||||
LightDesc.pPosition = m_pTransformCom->Get_StatePtr(STATE::POSITION);
|
||||
LightDesc.vAmbient = CMyTools::ColorRGB_A_HEXtoFLOAT4(0xffffff, 1.f);
|
||||
LightDesc.vDiffuse = CMyTools::ColorRGB_A_HEXtoFLOAT4(0xffffff, 1.f);
|
||||
LightDesc.vSpecular = CMyTools::ColorRGB_A_HEXtoFLOAT4(0xffffff, 1.f);
|
||||
if (FAILED(Add_Component<CLight>(g_iStaticLevel, &m_pLightCom, &LightDesc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
{ // CCT
|
||||
CCharacter_Controller::Character_Controller_DESC Desc{};
|
||||
@@ -455,6 +466,7 @@ void CPlayer::Free()
|
||||
}
|
||||
SAFE_RELEASE(m_pCharacter_Controller);
|
||||
SAFE_RELEASE(m_pRigidBody);
|
||||
SAFE_RELEASE(m_pLightCom);
|
||||
Safe_Delete(m_pCallBack_Behavior);
|
||||
Safe_Delete(m_pCallBack_HitReport);
|
||||
SAFE_RELEASE(m_pCamPosition_TopDown_FollowPart);
|
||||
@@ -468,6 +480,7 @@ void CPlayer::Free()
|
||||
|
||||
void CPlayer::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("PLAYER_DESC");
|
||||
m_pCharacter_Controller->Describe_Entity();
|
||||
_float4 vMomentum = {};
|
||||
XMStoreFloat4(&vMomentum, m_pTransformCom->Get_CurrentMomentum());
|
||||
@@ -505,6 +518,8 @@ void CPlayer::Describe_Entity()
|
||||
|
||||
GUI::Text("%d", m_iStateMask);
|
||||
|
||||
m_pLightCom->Describe_Entity();
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
@@ -49,6 +49,8 @@ class CPlayer final : public CUnit
|
||||
CRigidBody_Dynamic* m_pRigidBody = { nullptr };
|
||||
class CCallBack_Playable_Behavior* m_pCallBack_Behavior = { nullptr };
|
||||
class CCallBack_Playable_HitReport* m_pCallBack_HitReport = { nullptr };
|
||||
CLight* m_pLightCom = { nullptr };
|
||||
LIGHT_DESC LightDesc = {};
|
||||
|
||||
class CModel* m_pBroomModel = { nullptr };
|
||||
class CTransform* m_pBroomTransform = { nullptr };
|
||||
|
||||
@@ -45,6 +45,20 @@ float GetRimLight(float3 vCamPosition, float3 vPosition, float3 vNormal, float f
|
||||
return fRimLight;
|
||||
}
|
||||
|
||||
float LinearAttenuation(float fLightRange, float fLightDistance)
|
||||
{
|
||||
return saturate((fLightRange - fLightDistance) / fLightRange);
|
||||
}
|
||||
|
||||
float PowerAttenuation(float fLightRange, float fLightDistance, float fPower)
|
||||
{
|
||||
// 1 -> Linear,
|
||||
// ( 1 > fPower )-> 뾰족하게 감쇄
|
||||
// ( 1 < fPower )-> 완만하게 감쇄
|
||||
float fValue = saturate((fLightRange - fLightDistance) / fLightRange);
|
||||
return pow(fValue, fPower);
|
||||
}
|
||||
|
||||
float2 Get_MovedUV(float2 vOriginalUV, float fDeltaU, float fDeltaV, uint iIndexU, uint iIndexV)
|
||||
{
|
||||
float2 vDelta = float2(fDeltaU, fDeltaV);
|
||||
|
||||
@@ -25,6 +25,9 @@ float g_fLightRange;
|
||||
float g_fSpotInnerAngle;
|
||||
float g_fSpotOuterAngle;
|
||||
|
||||
bool g_bUsePowerLightAttenuation;
|
||||
float g_fLightAttenuationPower;
|
||||
|
||||
vector g_vLightDir;
|
||||
vector g_vLightPos;
|
||||
vector g_vLightPosOffset;
|
||||
@@ -192,8 +195,8 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
|
||||
|
||||
PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, fAttenuation, vF0);
|
||||
PBR_Out.vShade *= fOcclusion;
|
||||
|
||||
float3 vAmbient = g_vLightAmbient.rgb * fOcclusion;
|
||||
|
||||
float3 vAmbient = g_vLightAmbient.rgb * fOcclusion * fAttenuation;
|
||||
float3 vFinalDiffuse = PBR_Out.vShade + vAmbient;
|
||||
float3 vFinalSpecular = PBR_Out.vSpecular * g_vLightSpecular.rgb;
|
||||
|
||||
@@ -239,7 +242,16 @@ PS_OUT_LIGHT PS_MAIN_POINT(PS_IN In)
|
||||
float3 vToView = normalize(g_vCamPosition.xyz - vWorldPosition.xyz); // 픽셀에서 카메라로
|
||||
float3 vToLight = normalize(vFinalLightPosition - vWorldPosition.xyz); // 픽셀에서 라이트로
|
||||
|
||||
fAttenuation = saturate((g_fLightRange - fLightDistance) / g_fLightRange);
|
||||
if (g_bUsePowerLightAttenuation)
|
||||
{
|
||||
fAttenuation = PowerAttenuation(g_fLightRange, fLightDistance, g_fLightAttenuationPower);
|
||||
}
|
||||
else
|
||||
{
|
||||
fAttenuation = LinearAttenuation(g_fLightRange, fLightDistance);
|
||||
}
|
||||
|
||||
|
||||
if (fAttenuation <= 0.f)
|
||||
{
|
||||
Out.vShade = float4(0.f, 0.f, 0.f, 1.f);
|
||||
@@ -287,7 +299,7 @@ PS_OUT_LIGHT PS_MAIN_POINT(PS_IN In)
|
||||
|
||||
float3 vAmbient = g_vLightAmbient.rgb * fOcclusion * fAttenuation;
|
||||
float3 vFinalDiffuse = PBR_Out.vShade + vAmbient;
|
||||
float3 vFinalSpecular = PBR_Out.vSpecular * g_vLightSpecular.rgb * fAttenuation;
|
||||
float3 vFinalSpecular = PBR_Out.vSpecular * g_vLightSpecular.rgb;
|
||||
|
||||
Out.vShade = float4(vFinalDiffuse, 1.f);
|
||||
Out.vSpecular = float4(vFinalSpecular, 1.f);
|
||||
@@ -327,11 +339,20 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In)
|
||||
float fCameraDistance = length(g_vCamPosition.xyz - vWorldPosition.xyz);
|
||||
float fLightDistance = length(g_vLightPos.xyz - vWorldPosition.xyz);
|
||||
float3 vToView = normalize(g_vCamPosition.xyz - vWorldPosition.xyz); // 픽셀에서 카메라로
|
||||
float3 vToLight = normalize(vWorldPosition.xyz - g_vLightPos.xyz); // 픽셀에서 라이트로
|
||||
float3 vLightToPixel = normalize(vWorldPosition.xyz - g_vLightPos.xyz);
|
||||
float3 vToLight = normalize(g_vLightPos.xyz - vWorldPosition.xyz); // 픽셀에서 라이트로
|
||||
float3 vLightToPixel = -vToLight;
|
||||
|
||||
|
||||
if (g_bUsePowerLightAttenuation)
|
||||
{
|
||||
fAttenuation = PowerAttenuation(g_fLightRange, fLightDistance, g_fLightAttenuationPower);
|
||||
}
|
||||
else
|
||||
{
|
||||
fAttenuation = LinearAttenuation(g_fLightRange, fLightDistance);
|
||||
}
|
||||
|
||||
|
||||
fAttenuation = saturate((g_fLightRange - fLightDistance) / g_fLightRange);
|
||||
if (fAttenuation <= 0.f)
|
||||
{
|
||||
Out.vShade = float4(0.f, 0.f, 0.f, 1.f);
|
||||
@@ -339,7 +360,10 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In)
|
||||
return Out;
|
||||
}
|
||||
|
||||
float fCosAngle = dot(-vLightToPixel, normalize(g_vLightDir.xyz));
|
||||
// 각도 기반 감쇠
|
||||
float3 vLightDir = normalize(g_vLightDir.xyz);
|
||||
float fCosAngle = dot(vLightDir, vLightToPixel);
|
||||
|
||||
if (fCosAngle < g_fSpotOuterAngle)
|
||||
{
|
||||
Out.vShade = float4(0.f, 0.f, 0.f, 1.f);
|
||||
@@ -348,6 +372,7 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In)
|
||||
}
|
||||
|
||||
float fSpotAttenenuation = saturate((fCosAngle - g_fSpotInnerAngle) / (g_fSpotInnerAngle - g_fSpotOuterAngle));
|
||||
fSpotAttenenuation *= fSpotAttenenuation;
|
||||
fAttenuation *= fSpotAttenenuation;
|
||||
|
||||
if (true == AlmostEqual3(vDepth.b, AI_TEXTURE_TYPE_METALNESS)) // Metallic
|
||||
@@ -376,7 +401,6 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In)
|
||||
return Out;
|
||||
}
|
||||
|
||||
//float fDiffuseAOStrength = lerp(0.3f, 3.f, fOcclusion);
|
||||
{ // 수치조정 // 점광원
|
||||
float fMinRoughness = 0.05f;
|
||||
fRoughness = max(fRoughness, fMinRoughness); // 러프니스 최소값 보장
|
||||
@@ -387,10 +411,10 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In)
|
||||
PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, fAttenuation, vF0);
|
||||
|
||||
PBR_Out.vShade *= fOcclusion;
|
||||
|
||||
|
||||
float3 vAmbient = g_vLightAmbient.rgb * fOcclusion * fAttenuation;
|
||||
float3 vFinalDiffuse = PBR_Out.vShade + vAmbient;
|
||||
float3 vFinalSpecular = PBR_Out.vSpecular * g_vLightSpecular.rgb * fAttenuation;
|
||||
float3 vFinalSpecular = PBR_Out.vSpecular * g_vLightSpecular.rgb;
|
||||
|
||||
Out.vShade = float4(vFinalDiffuse, 1.f);
|
||||
Out.vSpecular = float4(vFinalSpecular, 1.f);
|
||||
|
||||
@@ -45,6 +45,20 @@ float GetRimLight(float3 vCamPosition, float3 vPosition, float3 vNormal, float f
|
||||
return fRimLight;
|
||||
}
|
||||
|
||||
float LinearAttenuation(float fLightRange, float fLightDistance)
|
||||
{
|
||||
return saturate((fLightRange - fLightDistance) / fLightRange);
|
||||
}
|
||||
|
||||
float PowerAttenuation(float fLightRange, float fLightDistance, float fPower)
|
||||
{
|
||||
// 1 -> Linear,
|
||||
// ( 1 > fPower )-> 뾰족하게 감쇄
|
||||
// ( 1 < fPower )-> 완만하게 감쇄
|
||||
float fValue = saturate((fLightRange - fLightDistance) / fLightRange);
|
||||
return pow(fValue, fPower);
|
||||
}
|
||||
|
||||
float2 Get_MovedUV(float2 vOriginalUV, float fDeltaU, float fDeltaV, uint iIndexU, uint iIndexV)
|
||||
{
|
||||
float2 vDelta = float2(fDeltaU, fDeltaV);
|
||||
|
||||
@@ -25,6 +25,9 @@ float g_fLightRange;
|
||||
float g_fSpotInnerAngle;
|
||||
float g_fSpotOuterAngle;
|
||||
|
||||
bool g_bUsePowerLightAttenuation;
|
||||
float g_fLightAttenuationPower;
|
||||
|
||||
vector g_vLightDir;
|
||||
vector g_vLightPos;
|
||||
vector g_vLightPosOffset;
|
||||
@@ -192,8 +195,8 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
|
||||
|
||||
PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, fAttenuation, vF0);
|
||||
PBR_Out.vShade *= fOcclusion;
|
||||
|
||||
float3 vAmbient = g_vLightAmbient.rgb * fOcclusion;
|
||||
|
||||
float3 vAmbient = g_vLightAmbient.rgb * fOcclusion * fAttenuation;
|
||||
float3 vFinalDiffuse = PBR_Out.vShade + vAmbient;
|
||||
float3 vFinalSpecular = PBR_Out.vSpecular * g_vLightSpecular.rgb;
|
||||
|
||||
@@ -239,7 +242,16 @@ PS_OUT_LIGHT PS_MAIN_POINT(PS_IN In)
|
||||
float3 vToView = normalize(g_vCamPosition.xyz - vWorldPosition.xyz); // 픽셀에서 카메라로
|
||||
float3 vToLight = normalize(vFinalLightPosition - vWorldPosition.xyz); // 픽셀에서 라이트로
|
||||
|
||||
fAttenuation = saturate((g_fLightRange - fLightDistance) / g_fLightRange);
|
||||
if (g_bUsePowerLightAttenuation)
|
||||
{
|
||||
fAttenuation = PowerAttenuation(g_fLightRange, fLightDistance, g_fLightAttenuationPower);
|
||||
}
|
||||
else
|
||||
{
|
||||
fAttenuation = LinearAttenuation(g_fLightRange, fLightDistance);
|
||||
}
|
||||
|
||||
|
||||
if (fAttenuation <= 0.f)
|
||||
{
|
||||
Out.vShade = float4(0.f, 0.f, 0.f, 1.f);
|
||||
@@ -287,7 +299,7 @@ PS_OUT_LIGHT PS_MAIN_POINT(PS_IN In)
|
||||
|
||||
float3 vAmbient = g_vLightAmbient.rgb * fOcclusion * fAttenuation;
|
||||
float3 vFinalDiffuse = PBR_Out.vShade + vAmbient;
|
||||
float3 vFinalSpecular = PBR_Out.vSpecular * g_vLightSpecular.rgb * fAttenuation;
|
||||
float3 vFinalSpecular = PBR_Out.vSpecular * g_vLightSpecular.rgb;
|
||||
|
||||
Out.vShade = float4(vFinalDiffuse, 1.f);
|
||||
Out.vSpecular = float4(vFinalSpecular, 1.f);
|
||||
@@ -327,11 +339,20 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In)
|
||||
float fCameraDistance = length(g_vCamPosition.xyz - vWorldPosition.xyz);
|
||||
float fLightDistance = length(g_vLightPos.xyz - vWorldPosition.xyz);
|
||||
float3 vToView = normalize(g_vCamPosition.xyz - vWorldPosition.xyz); // 픽셀에서 카메라로
|
||||
float3 vToLight = normalize(vWorldPosition.xyz - g_vLightPos.xyz); // 픽셀에서 라이트로
|
||||
float3 vLightToPixel = normalize(vWorldPosition.xyz - g_vLightPos.xyz);
|
||||
float3 vToLight = normalize(g_vLightPos.xyz - vWorldPosition.xyz); // 픽셀에서 라이트로
|
||||
float3 vLightToPixel = -vToLight;
|
||||
|
||||
|
||||
if (g_bUsePowerLightAttenuation)
|
||||
{
|
||||
fAttenuation = PowerAttenuation(g_fLightRange, fLightDistance, g_fLightAttenuationPower);
|
||||
}
|
||||
else
|
||||
{
|
||||
fAttenuation = LinearAttenuation(g_fLightRange, fLightDistance);
|
||||
}
|
||||
|
||||
|
||||
fAttenuation = saturate((g_fLightRange - fLightDistance) / g_fLightRange);
|
||||
if (fAttenuation <= 0.f)
|
||||
{
|
||||
Out.vShade = float4(0.f, 0.f, 0.f, 1.f);
|
||||
@@ -339,7 +360,10 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In)
|
||||
return Out;
|
||||
}
|
||||
|
||||
float fCosAngle = dot(-vLightToPixel, normalize(g_vLightDir.xyz));
|
||||
// 각도 기반 감쇠
|
||||
float3 vLightDir = normalize(g_vLightDir.xyz);
|
||||
float fCosAngle = dot(vLightDir, vLightToPixel);
|
||||
|
||||
if (fCosAngle < g_fSpotOuterAngle)
|
||||
{
|
||||
Out.vShade = float4(0.f, 0.f, 0.f, 1.f);
|
||||
@@ -348,6 +372,7 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In)
|
||||
}
|
||||
|
||||
float fSpotAttenenuation = saturate((fCosAngle - g_fSpotInnerAngle) / (g_fSpotInnerAngle - g_fSpotOuterAngle));
|
||||
fSpotAttenenuation *= fSpotAttenenuation;
|
||||
fAttenuation *= fSpotAttenenuation;
|
||||
|
||||
if (true == AlmostEqual3(vDepth.b, AI_TEXTURE_TYPE_METALNESS)) // Metallic
|
||||
@@ -376,7 +401,6 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In)
|
||||
return Out;
|
||||
}
|
||||
|
||||
//float fDiffuseAOStrength = lerp(0.3f, 3.f, fOcclusion);
|
||||
{ // 수치조정 // 점광원
|
||||
float fMinRoughness = 0.05f;
|
||||
fRoughness = max(fRoughness, fMinRoughness); // 러프니스 최소값 보장
|
||||
@@ -387,10 +411,10 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In)
|
||||
PBR_LIGHT_OUT PBR_Out = PBR_Lighting(vNormal, vToView, vToLight, vAlbedo, fMetallic, fRoughness, g_vLightDiffuse.rgb, fAttenuation, vF0);
|
||||
|
||||
PBR_Out.vShade *= fOcclusion;
|
||||
|
||||
|
||||
float3 vAmbient = g_vLightAmbient.rgb * fOcclusion * fAttenuation;
|
||||
float3 vFinalDiffuse = PBR_Out.vShade + vAmbient;
|
||||
float3 vFinalSpecular = PBR_Out.vSpecular * g_vLightSpecular.rgb * fAttenuation;
|
||||
float3 vFinalSpecular = PBR_Out.vSpecular * g_vLightSpecular.rgb;
|
||||
|
||||
Out.vShade = float4(vFinalDiffuse, 1.f);
|
||||
Out.vSpecular = float4(vFinalSpecular, 1.f);
|
||||
|
||||
@@ -92,9 +92,18 @@ HRESULT CLight::Render(CShader* pShader, CVIBuffer* pVIBuffer) const
|
||||
if (FAILED(pShader->Bind_RawValue("g_fSpotOuterAngle", &m_LightDesc.vSpotAngles.y, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(pShader->Bind_RawValue("g_bUsePowerLightAttenuation", &m_bUsePowerAttenuation, sizeof(_bool)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(pShader->Bind_RawValue("g_fLightAttenuationPower", &m_fLightAttenuationPower, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
iPassIndex = ENUM_CLASS(SHADER_PASS_DEFERRED::SPOT);
|
||||
}
|
||||
else {
|
||||
if (FAILED(pShader->Bind_RawValue("g_fLightRange", &m_LightDesc.fRange, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(pShader->Bind_RawValue("g_vLightPos", m_LightDesc.pPosition, sizeof(_float4)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -104,6 +113,12 @@ HRESULT CLight::Render(CShader* pShader, CVIBuffer* pVIBuffer) const
|
||||
if (FAILED(pShader->Bind_RawValue("g_fLightRange", &m_LightDesc.fRange, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(pShader->Bind_RawValue("g_bUsePowerLightAttenuation", &m_bUsePowerAttenuation, sizeof(_bool)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(pShader->Bind_RawValue("g_fLightAttenuationPower", &m_fLightAttenuationPower, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
iPassIndex = ENUM_CLASS(SHADER_PASS_DEFERRED::POINT);
|
||||
}
|
||||
|
||||
@@ -180,6 +195,11 @@ void CLight::Describe_Entity()
|
||||
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);
|
||||
GUI::DragFloat2("SpotAngle", reinterpret_cast<float*>(&m_LightDesc.vSpotAngles));
|
||||
GUI::Checkbox("UseLinearAtt", &m_bUsePowerAttenuation);
|
||||
if (true == m_bUsePowerAttenuation) {
|
||||
GUI::SameLine();
|
||||
GUI::DragFloat("Power", &m_fLightAttenuationPower, 0.01f, 0.01f);
|
||||
}
|
||||
|
||||
GUI::Spacing();
|
||||
GUI::Spacing();
|
||||
|
||||
@@ -19,6 +19,12 @@ class ENGINE_DLL CLight final : public CComponent
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
void Switch_LightAttenationMethod() { m_bUsePowerAttenuation = !m_bUsePowerAttenuation; }
|
||||
_bool Is_PowerLightAtt() { return m_bUsePowerAttenuation; }
|
||||
void Set_PowerLightAtt(_bool bValue) { m_bUsePowerAttenuation = bValue; }
|
||||
_float Get_AttPower() { return m_fLightAttenuationPower; }
|
||||
void Set_AttPower(_float fValue) { m_fLightAttenuationPower = fValue; }
|
||||
|
||||
public:
|
||||
const LIGHT_DESC* Get_LightDesc() { return &m_LightDesc; }
|
||||
void Set_Color(_float4& vDiffuse, _float4& vAmbient, _float4& vSpecular);
|
||||
@@ -26,7 +32,12 @@ class ENGINE_DLL CLight final : public CComponent
|
||||
HRESULT Render(class CShader* pShader, class CVIBuffer* pVIBuffer) const;
|
||||
|
||||
private:
|
||||
LIGHT_DESC m_LightDesc = {};
|
||||
LIGHT_DESC m_LightDesc = {};
|
||||
_bool m_bUsePowerAttenuation = { true };
|
||||
_float m_fLightAttenuationPower = { 3.30f };
|
||||
// 1 -> Linear,
|
||||
// ( 1 > fPower )-> 뾰족하게 감쇄
|
||||
// ( 1 < fPower )-> 완만하게 감쇄
|
||||
public:
|
||||
static CLight* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CComponent* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
|
||||
Reference in New Issue
Block a user