@@ -174,7 +174,7 @@ PS_OUT PS_Logo_Text(PS_IN In)
|
||||
|
||||
Color.rgb = (Color.rgb - 0.5f) * 1.2f + 0.5f;
|
||||
|
||||
Color.rgb = pow(Color.rgb, 1.25f);
|
||||
Color.rgb = pow(clamp(Color.rgb, 0.f, 1.f), 1.25f);
|
||||
|
||||
float luminance = dot(Color.rgb, float3(0.299f, 0.587f, 0.114f));
|
||||
float light = smoothstep(0.7f, 0.92f, luminance);
|
||||
@@ -2734,7 +2734,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_MAIN();
|
||||
}
|
||||
|
||||
@@ -2744,7 +2744,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Texture_Color();
|
||||
}
|
||||
|
||||
@@ -2754,7 +2754,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_UIBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Logo();
|
||||
}
|
||||
|
||||
@@ -2764,7 +2764,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_UIBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Logo_Text();
|
||||
}
|
||||
|
||||
@@ -2774,7 +2774,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Logo_Glow();
|
||||
}
|
||||
|
||||
@@ -2784,7 +2784,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_AlphaBlend();
|
||||
}
|
||||
|
||||
@@ -2794,7 +2794,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Clamp();
|
||||
}
|
||||
|
||||
@@ -2804,7 +2804,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Cursor();
|
||||
}
|
||||
|
||||
@@ -2814,7 +2814,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_UIBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Sptire_Sheet();
|
||||
}
|
||||
|
||||
@@ -2824,7 +2824,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Key_Hold_Rotation();
|
||||
}
|
||||
|
||||
@@ -2834,7 +2834,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Mission();
|
||||
}
|
||||
|
||||
@@ -2844,7 +2844,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_QuestType();
|
||||
}
|
||||
|
||||
@@ -2854,7 +2854,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Spell_Anim();
|
||||
}
|
||||
|
||||
@@ -2864,7 +2864,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_NineSlice();
|
||||
}
|
||||
|
||||
@@ -2874,7 +2874,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Rotation();
|
||||
}
|
||||
|
||||
@@ -2884,7 +2884,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Slot();
|
||||
}
|
||||
|
||||
@@ -2894,7 +2894,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_SpellAnim();
|
||||
}
|
||||
pass HpBar
|
||||
@@ -2903,7 +2903,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_HpBar();
|
||||
}
|
||||
pass Magic_Meter
|
||||
@@ -2912,7 +2912,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Magic_Meter();
|
||||
}
|
||||
|
||||
@@ -2922,7 +2922,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Magic_Icon();
|
||||
}
|
||||
|
||||
@@ -2932,7 +2932,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_RemapUV();
|
||||
}
|
||||
|
||||
@@ -2942,7 +2942,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Revelio();
|
||||
}
|
||||
|
||||
@@ -2952,7 +2952,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Potion();
|
||||
}
|
||||
|
||||
@@ -2962,7 +2962,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Magic_Item();
|
||||
}
|
||||
|
||||
@@ -2972,7 +2972,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Spell_Preview();
|
||||
}
|
||||
|
||||
@@ -2982,7 +2982,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Spell_Header();
|
||||
}
|
||||
|
||||
@@ -2992,7 +2992,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Spell_Header_Line();
|
||||
}
|
||||
|
||||
@@ -3002,7 +3002,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Spell_Drag();
|
||||
}
|
||||
|
||||
@@ -3012,7 +3012,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Camera_LockOn();
|
||||
}
|
||||
|
||||
@@ -3022,7 +3022,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Loding_Screen();
|
||||
}
|
||||
|
||||
@@ -3032,7 +3032,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Enemy_HpBer();
|
||||
}
|
||||
|
||||
@@ -3042,7 +3042,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Boss_HpBer();
|
||||
}
|
||||
|
||||
@@ -3052,7 +3052,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Quest_Border();
|
||||
}
|
||||
|
||||
@@ -3062,7 +3062,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Quest_Info();
|
||||
}
|
||||
|
||||
@@ -3072,7 +3072,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Quest_Status();
|
||||
}
|
||||
|
||||
@@ -3082,7 +3082,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Broomstick();
|
||||
}
|
||||
|
||||
@@ -3092,7 +3092,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_SpellLearn();
|
||||
}
|
||||
|
||||
@@ -3102,7 +3102,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_SpellLearnColor();
|
||||
}
|
||||
|
||||
@@ -3112,7 +3112,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_SpellLearnBooster();
|
||||
}
|
||||
|
||||
@@ -3122,7 +3122,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_NPCInteraction();
|
||||
}
|
||||
|
||||
@@ -3132,7 +3132,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_CanvasFade();
|
||||
}
|
||||
|
||||
@@ -3142,7 +3142,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_FlagWave();
|
||||
}
|
||||
|
||||
@@ -3152,7 +3152,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_BroomCircle();
|
||||
}
|
||||
|
||||
@@ -3162,7 +3162,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Ride_info_Key();
|
||||
}
|
||||
|
||||
@@ -3172,7 +3172,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Ride_Info();
|
||||
}
|
||||
|
||||
@@ -3182,7 +3182,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Ride_HpSlot();
|
||||
}
|
||||
|
||||
@@ -3192,7 +3192,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_BoosterGauge();
|
||||
}
|
||||
|
||||
@@ -3202,7 +3202,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_BoosterHpBar();
|
||||
}
|
||||
|
||||
@@ -3212,7 +3212,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN3D();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Enemy_Detection();
|
||||
}
|
||||
|
||||
@@ -3222,7 +3222,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_None, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_NONESIZE3D();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Interaction_Object();
|
||||
}
|
||||
|
||||
@@ -3232,7 +3232,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_None, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_NONESIZE3D();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_Interaction_Npc();
|
||||
}
|
||||
|
||||
@@ -3242,7 +3242,7 @@ technique11 PosTexTechnique11
|
||||
SetDepthStencilState(DSS_None, 0);
|
||||
SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_NONESIZE3D();
|
||||
GeometryShader = NULL;
|
||||
|
||||
PixelShader = compile ps_5_0 PS_BroomGateTarget();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -179,7 +179,6 @@ ATOM MyRegisterClass(HINSTANCE hInstance)
|
||||
BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
|
||||
{
|
||||
g_hInstance = hInstance;
|
||||
#ifdef _DEBUG
|
||||
RECT rcWindow = { 0, 0, g_iWinSizeX, g_iWinSizeY };
|
||||
|
||||
AdjustWindowRect(&rcWindow, WS_OVERLAPPEDWINDOW, FALSE);
|
||||
@@ -196,9 +195,7 @@ BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
|
||||
UpdateWindow(hWnd);
|
||||
|
||||
g_hWnd = hWnd;
|
||||
#endif // _DEBUG
|
||||
|
||||
#ifdef Bin
|
||||
#ifndef _DEBUG
|
||||
int screenX = GetSystemMetrics(SM_CXSCREEN);
|
||||
int screenY = GetSystemMetrics(SM_CYSCREEN);
|
||||
@@ -224,7 +221,7 @@ BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
|
||||
UpdateWindow(hWnd);
|
||||
|
||||
#endif // !_DEBUG
|
||||
#endif // Bin
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
@@ -175,6 +175,7 @@ call Update_Resources.bat
|
||||
<ClInclude Include="..\Public\CallBack_NonPlayable_Behavior.h" />
|
||||
<ClInclude Include="..\Public\CallBack_NonPlayable_HitReport.h" />
|
||||
<ClInclude Include="..\Public\CallBack_Ranrok_HitReport.h" />
|
||||
<ClInclude Include="..\Public\Camera_Model.h" />
|
||||
<ClInclude Include="..\Public\Goblin_Assassin.h" />
|
||||
<ClInclude Include="..\Public\Goblin_Assassin_Spector.h" />
|
||||
<ClInclude Include="..\Public\Goblin_Sword.h" />
|
||||
@@ -446,6 +447,7 @@ call Update_Resources.bat
|
||||
<ClCompile Include="..\Private\CallBack_NonPlayable_Behavior.cpp" />
|
||||
<ClCompile Include="..\Private\CallBack_NonPlayable_HitReport.cpp" />
|
||||
<ClCompile Include="..\Private\CallBack_Ranrok_HitReport.cpp" />
|
||||
<ClCompile Include="..\Private\Camera_Model.cpp" />
|
||||
<ClCompile Include="..\Private\Goblin_Assassin.cpp" />
|
||||
<ClCompile Include="..\Private\Goblin_Assassin_Spector.cpp" />
|
||||
<ClCompile Include="..\Private\Goblin_Assassin_States.cpp" />
|
||||
|
||||
@@ -808,7 +808,7 @@
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\State_Fear.h">
|
||||
<Filter>04.Mechanic\State\Focus\Fear</Filter>
|
||||
</ClInclude>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Ride_Bbooster_Slot.h">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas\Ride_Panel\Ride_Bbooster_Slot</Filter>
|
||||
</ClInclude>
|
||||
@@ -833,6 +833,9 @@
|
||||
<ClInclude Include="..\Public\Ride_Panel.h">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas\Ride_Panel</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Public\Camera_Model.h">
|
||||
<Filter>02.GameObjects\Cameras\Camera_Model</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Image Include="Client.ico">
|
||||
@@ -1706,7 +1709,7 @@
|
||||
</Filter>
|
||||
<Filter Include="04.Mechanic\State\Focus\Fear">
|
||||
<UniqueIdentifier>{99712e38-b76a-4c04-8ba3-16ddaac72679}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\UI\GamePlay_Canvas\Ride_Panel">
|
||||
<UniqueIdentifier>{5bf233fa-6f9c-40d5-85c6-adbc7fcf7d28}</UniqueIdentifier>
|
||||
</Filter>
|
||||
@@ -1731,6 +1734,9 @@
|
||||
<Filter Include="02.GameObjects\UI\GamePlay_Canvas\Ride_Panel\Ride_Info">
|
||||
<UniqueIdentifier>{7876ff7e-f456-49ce-8fd6-766116613ff4}</UniqueIdentifier>
|
||||
</Filter>
|
||||
<Filter Include="02.GameObjects\Cameras\Camera_Model">
|
||||
<UniqueIdentifier>{40504926-63cc-4132-ade2-5a789e1a82a6}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Client.cpp">
|
||||
@@ -2486,7 +2492,7 @@
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\State_Fear.cpp">
|
||||
<Filter>04.Mechanic\State\Focus\Fear</Filter>
|
||||
</ClCompile>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Ride_Bbooster_Slot.cpp">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas\Ride_Panel\Ride_Bbooster_Slot</Filter>
|
||||
</ClCompile>
|
||||
@@ -2511,6 +2517,9 @@
|
||||
<ClCompile Include="..\Private\Ride_Panel.cpp">
|
||||
<Filter>02.GameObjects\UI\GamePlay_Canvas\Ride_Panel</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Private\Camera_Model.cpp">
|
||||
<Filter>02.GameObjects\Cameras\Camera_Model</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\Private\Goblin_States.cpp">
|
||||
|
||||
@@ -0,0 +1,205 @@
|
||||
#include "pch.h"
|
||||
#include "Camera_Model.h"
|
||||
#include "Shader.h"
|
||||
#include "Layer.h"
|
||||
#include "Player.h"
|
||||
|
||||
|
||||
CCamera_Model::CCamera_Model(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
: CCamera(pDevice, pContext)
|
||||
{
|
||||
}
|
||||
|
||||
CCamera_Model::CCamera_Model(const CCamera_Model& rhs)
|
||||
: CCamera(rhs)
|
||||
{
|
||||
}
|
||||
|
||||
void CCamera_Model::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_pGameInstance->Bind_Camera(NEXT_LEVEL, CAMERA_MODEL, false);
|
||||
#endif // _DEBUG
|
||||
|
||||
if (FAILED(m_pGameInstance->IsBinded_Camera(CAMERA_MODEL))) {
|
||||
return;
|
||||
}
|
||||
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
|
||||
|
||||
_float3 vCamPos = {};
|
||||
XMStoreFloat3(&vCamPos, m_pTransformCom->Get_State(STATE::POSITION));
|
||||
#ifdef _DEBUG
|
||||
GUI::Text("Cam_Model Coord %.2f, %.2f, %.2f", vCamPos.x, vCamPos.y, vCamPos.z);
|
||||
#endif // _DEBUG
|
||||
|
||||
__super::Bind_Matrices();
|
||||
}
|
||||
|
||||
void CCamera_Model::Update(_float fTimeDelta)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void CCamera_Model::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONLIGHT, this);
|
||||
}
|
||||
|
||||
HRESULT CCamera_Model::Render()
|
||||
{
|
||||
if (FAILED(Bind_ShaderResources())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
||||
|
||||
for (_uint i = 0; i < iNumMeshes; i++)
|
||||
{
|
||||
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||
"g_OffsetMatrix",
|
||||
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||
(_int)m_pModelCom->Get_OffsetMatrix(i).size()
|
||||
)))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_MESH::DEFAULT)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pModelCom->Bind_OutPut_SRV_VS(31, 0);
|
||||
m_pModelCom->Bind_OutPut_SRV_VS_Prev(32, 0);
|
||||
|
||||
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CCamera_Model::Initialize_Prototype()
|
||||
{
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CCamera_Model::Initialize(void* pArg)
|
||||
{
|
||||
CAMERA_MODEL_DESC* pDesc = static_cast<CAMERA_MODEL_DESC*>(pArg);
|
||||
|
||||
if (FAILED(__super::Initialize(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_matInitial = *m_pTransformCom->Get_WorldMatrixPtr();
|
||||
m_bActive = true;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CCamera_Model::Ready_Components(void* pArg)
|
||||
{
|
||||
if (FAILED(__super::Ready_Components(pArg))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_Camera_Model"),
|
||||
reinterpret_cast<CComponent**>(&m_pModelCom)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH,
|
||||
reinterpret_cast<CComponent**>(&m_pShaderCom)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CCamera_Model::Bind_ShaderResources()
|
||||
{
|
||||
if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CCamera_Model::Set_InitialPos()
|
||||
{
|
||||
m_pTransformCom->Set_WorldMatrix(m_matInitial);
|
||||
}
|
||||
|
||||
CCamera_Model* CCamera_Model::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CCamera_Model* pInstance = new CCamera_Model(pDevice, pContext);
|
||||
if (FAILED(pInstance->Initialize_Prototype()))
|
||||
{
|
||||
MSG_BOX("Failed to Created : CCamera_Model");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
CGameObject* CCamera_Model::Clone(void* pArg, CGameObject* pOwner)
|
||||
{
|
||||
CCamera_Model* pInstance = new CCamera_Model(*this);
|
||||
pInstance->m_pOwner = pOwner;
|
||||
if (FAILED(pInstance->Initialize(pArg)))
|
||||
{
|
||||
MSG_BOX("Failed to Cloned : CCamera_Model");
|
||||
SAFE_RELEASE(pInstance);
|
||||
}
|
||||
|
||||
return pInstance;
|
||||
}
|
||||
|
||||
void CCamera_Model::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pModelCom);
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
void CCamera_Model::Describe_Entity()
|
||||
{
|
||||
_float3 vPosition = {};
|
||||
GUI::Begin("CameraAnim List");
|
||||
for (_int i = 0; i < m_pModelCom->Get_AnimSize(); i++)
|
||||
{
|
||||
if (GUI::Button(m_pModelCom->Get_AnimList(i)))
|
||||
{
|
||||
m_pModelCom->Set_AnimationIndex(i);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
@@ -1013,6 +1013,11 @@ HRESULT CEffectObject::Bind_ShaderResources()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_vDissolveSmoothRange", &m_EffectInfo.vDissolveSmoothRange, sizeof(_float2)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_isBlurColor", &m_EffectInfo.isBlurColor, sizeof(_bool)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -27,11 +27,9 @@ void CInstancedProp::Late_Update(_float fTimeDelta)
|
||||
}
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
//pair<_bool, _ubyte> pairShadowResult = m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius());
|
||||
//if (0 == ((_ubyte)SHADOW::SHADOW_FAR & pairShadowResult.second)) {
|
||||
// pairShadowResult.first = true;
|
||||
// Set_Shadow(pairShadowResult);
|
||||
//}
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_NEAR, this);
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::SHADOW_MIDDLE, this);
|
||||
}
|
||||
|
||||
HRESULT CInstancedProp::Render()
|
||||
@@ -66,7 +64,10 @@ HRESULT CInstancedProp::Render_Shadow(SHADOW eType)
|
||||
}
|
||||
for (_uint i = 0; i < m_iNumMesh; i++)
|
||||
{
|
||||
if (FAILED(m_pShaderCom->Begin(0)))
|
||||
if (FAILED(m_pVIBufferInstanceCom->Bind_Matrial(m_pShaderCom, i)))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pShaderCom->Begin(3)))
|
||||
return E_FAIL;
|
||||
|
||||
m_pVIBufferInstanceCom->Render(i);
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
#include "Light_Main.h"
|
||||
#include "Camera_Debug.h"
|
||||
#include "InfoInstance.h"
|
||||
#include "Camera_Model.h"
|
||||
#include "UI_Manager.h"
|
||||
#include "Layer.h"
|
||||
#include "SkyBox.h"
|
||||
@@ -619,26 +620,48 @@ HRESULT CLevel_GamePlay::Ready_Layer_UI(const _wstring& strLayerTag)
|
||||
HRESULT CLevel_GamePlay::Ready_Layer_Camera()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
CCamera_Debug::CAMERA_DEBUG_DESC Camera_Desc{};
|
||||
Camera_Desc.fFovy = XMConvertToRadians(60.0f);
|
||||
Camera_Desc.fNear = 0.1f;
|
||||
Camera_Desc.fFar = 500.f;
|
||||
Camera_Desc.vEye = _float3(0.f, 10.f, -10.f);
|
||||
Camera_Desc.vAt = _float3(0.f, 0.f, 0.f);
|
||||
Camera_Desc.fSpeedPerSec = 5.f;
|
||||
Camera_Desc.pCameraKey = CAMERA_DEBUG;
|
||||
Camera_Desc.fRotationPerSec = XMConvertToRadians(90.0f);
|
||||
Camera_Desc.fMouseSensor = 0.1f;
|
||||
Camera_Desc.iPriority = 53;
|
||||
Camera_Desc.pFollowTarget = { nullptr };
|
||||
Camera_Desc.pLookTarget = { nullptr };
|
||||
{
|
||||
CCamera_Debug::CAMERA_DEBUG_DESC Camera_Desc{};
|
||||
Camera_Desc.fFovy = XMConvertToRadians(60.0f);
|
||||
Camera_Desc.fNear = 0.1f;
|
||||
Camera_Desc.fFar = 500.f;
|
||||
Camera_Desc.vEye = _float3(0.f, 10.f, -10.f);
|
||||
Camera_Desc.vAt = _float3(0.f, 0.f, 0.f);
|
||||
Camera_Desc.fSpeedPerSec = 5.f;
|
||||
Camera_Desc.pCameraKey = CAMERA_DEBUG;
|
||||
Camera_Desc.fRotationPerSec = XMConvertToRadians(90.0f);
|
||||
Camera_Desc.fMouseSensor = 0.1f;
|
||||
Camera_Desc.iPriority = 53;
|
||||
Camera_Desc.pFollowTarget = { nullptr };
|
||||
Camera_Desc.pLookTarget = { nullptr };
|
||||
|
||||
CCamera_Debug* pCamera = { nullptr };
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CCamera_Debug>(g_iStaticLevel, NEXT_LEVEL, LAYER_CAMERA, &Camera_Desc, nullptr, &pCamera))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pGameInstance->Add_Camera(NEXT_LEVEL, pCamera, CAMERA_DEBUG);
|
||||
}
|
||||
{
|
||||
CCamera_Model::CAMERA_MODEL_DESC Camera_Desc{};
|
||||
Camera_Desc.fSpeedPerSec = 5.f;
|
||||
Camera_Desc.fRotationPerSec = XMConvertToRadians(90.0f);
|
||||
Camera_Desc.fFovy = XMConvertToRadians(60.0f);
|
||||
Camera_Desc.fNear = 0.1f;
|
||||
Camera_Desc.fFar = 500.f;
|
||||
Camera_Desc.pCameraKey = CAMERA_MODEL;
|
||||
Camera_Desc.iPriority = 49;
|
||||
Camera_Desc.pFollowTarget = { nullptr };
|
||||
Camera_Desc.pLookTarget = { nullptr };
|
||||
|
||||
CCamera_Model* pCamera = { nullptr };
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CCamera_Model>(g_iStaticLevel, NEXT_LEVEL, LAYER_CAMERA, &Camera_Desc, nullptr, &pCamera))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pGameInstance->Add_Camera(NEXT_LEVEL, pCamera, CAMERA_MODEL);
|
||||
|
||||
CCamera_Debug* pCamera = { nullptr };
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CCamera_Debug>(g_iStaticLevel, NEXT_LEVEL, LAYER_CAMERA, &Camera_Desc, nullptr, &pCamera))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pGameInstance->Add_Camera(NEXT_LEVEL, pCamera, CAMERA_DEBUG);
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
|
||||
@@ -27,7 +27,6 @@ HRESULT CLight_Main::Initialize(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pTransformCom->Set_State(STATE::LOOK, XMVectorSet(-1.716f, 0.121f, 0.211f, 0.f));
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -98,6 +97,7 @@ HRESULT CLight_Main::Capture_PreShadow()
|
||||
HRESULT CLight_Main::Ready_Components(void* pArg)
|
||||
{
|
||||
__super::Ready_Components(nullptr);
|
||||
m_pTransformCom->Rotation(60.f, 0.f, 0.f);
|
||||
|
||||
LIGHT_DESC* pLightDescArg = static_cast<LIGHT_DESC*>(pArg);
|
||||
|
||||
|
||||
@@ -42,6 +42,10 @@
|
||||
#include "BroomRacerAI.h"
|
||||
#include "Ranrok.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#include "Camera_Model.h"
|
||||
#endif // _DEBUG
|
||||
|
||||
#pragma endregion
|
||||
|
||||
|
||||
@@ -1430,12 +1434,12 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
}
|
||||
/* HogsmeadeAlphaMap */
|
||||
if(FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Hogsmeade_AlphaMap"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Terrain/Hogsmeade_AlphaMap.dds"), 0)))) {
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Data/Map/Terrain/Hogsmeade_AlphaMap.dds"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
/* HogwartAlphaMap */
|
||||
if(FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("Hogwart_AlphaMap"),
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Textures/Terrain/Hogwart_AlphaMap.dds"), 0)))) {
|
||||
CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, TEXT("../Bin/Resources/Data/Map/Terrain/Hogwart_AlphaMap.dds"), 0)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -1959,21 +1963,13 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
Desc.ePxMaterialTypes = { PXMATERIAL::DEFAULT };
|
||||
Desc.vMatInfo = { 0.5f, 0.5f, 0.1f };
|
||||
Desc.fContactOffset = { 0.05f };
|
||||
Desc.vhalfGeometryInfo = { 0.5f, 1.f, 0.125f };
|
||||
Desc.fDensity = 1.f;
|
||||
Desc.vhalfGeometryInfo = { 0.5f, 1.f, 0.01f };
|
||||
Desc.fDensity = 100.f;
|
||||
PSX::PxTransform pxPivotTransform = PSX::PxTransform(PSX::PxVec3(0.f, 1.f, 0.f));
|
||||
Desc.vLocalRotQ = { 0.f, 0.f, 0.f, 1.f };
|
||||
Desc.vLocalTranslation = { 0.5f, 1.375f, 0.f };
|
||||
|
||||
Desc.pxMassCenter = pxPivotTransform;
|
||||
Desc.eLockFlag = {
|
||||
//PSX::PxRigidDynamicLockFlag::eLOCK_ANGULAR_X |
|
||||
//PSX::PxRigidDynamicLockFlag::eLOCK_ANGULAR_Y |
|
||||
//PSX::PxRigidDynamicLockFlag::eLOCK_ANGULAR_Z |
|
||||
//PSX::PxRigidDynamicLockFlag::eLOCK_LINEAR_Y |
|
||||
//PSX::PxRigidDynamicLockFlag::eLOCK_LINEAR_X |
|
||||
//PSX::PxRigidDynamicLockFlag::eLOCK_LINEAR_Z
|
||||
};
|
||||
Desc.vAutoDamping = { 10.f, 10.f };
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_DOOR"), CRigidBody_Dynamic::Create(m_pDevice, m_pContext, Desc)))) {
|
||||
@@ -2054,22 +2050,27 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Spector_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/GoblinSpector/GoblinSpector.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Assassin_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Spector_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/GoblinSpector/GoblinSpector.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Assassin_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/Goblin_Assassin/SK_GOB_M_Assassin_Master.bin", XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity()))))
|
||||
return E_FAIL;
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Camera_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Object/Camera/Camera.bin", XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
#pragma endregion
|
||||
|
||||
@@ -3148,6 +3149,13 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
if (FAILED(m_pGameInstance->Add_Prototype<CCamera_Model>(g_iStaticLevel, CCamera_Model::Create(m_pDevice, m_pContext)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#endif // _DEBUG
|
||||
|
||||
|
||||
#pragma endregion
|
||||
|
||||
|
||||
|
||||
@@ -45,7 +45,6 @@ HRESULT CMapElement_Door::Initialize(void* pArg)
|
||||
|
||||
void CMapElement_Door::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
GUI::Text("m_vKinematicTimer %.3f", m_vKinematicTimer.x);
|
||||
if (m_vKinematicTimer.x != 0) {
|
||||
m_vKinematicTimer.x += fTimeDelta;
|
||||
if (m_vKinematicTimer.y < m_vKinematicTimer.x) {
|
||||
@@ -60,8 +59,7 @@ void CMapElement_Door::Priority_Update(_float fTimeDelta)
|
||||
void CMapElement_Door::ActingIdle()
|
||||
{
|
||||
_float fCurrentDegree = XMConvertToDegrees(m_pJoint->getAngle());
|
||||
GUI::Text("%.2f", fCurrentDegree);
|
||||
GUI::Text("%.2f", m_pJoint->getVelocity());
|
||||
|
||||
if (fabsf(fCurrentDegree) >= 2.f) { // 각도가 벌어져 있는데
|
||||
if (false == m_bDrive) { // 드라이브 중이 아니면 드라이브시킴
|
||||
m_bDrive = true;
|
||||
@@ -70,15 +68,17 @@ void CMapElement_Door::ActingIdle()
|
||||
}
|
||||
if (true == m_bDrive) { // 드라이브 중이면
|
||||
if (fCurrentDegree > 0.f) {
|
||||
|
||||
m_pJoint->setRevoluteJointFlag(PSX::PxRevoluteJointFlag::eDRIVE_ENABLED, true);
|
||||
m_pJoint->setDriveVelocity(-fabsf(fCurrentDegree) * 0.2f);
|
||||
}
|
||||
else {
|
||||
m_pJoint->setDriveVelocity(40.f);
|
||||
m_pJoint->setRevoluteJointFlag(PSX::PxRevoluteJointFlag::eDRIVE_ENABLED, true);
|
||||
m_pJoint->setDriveVelocity(fabsf(fCurrentDegree) * 0.2f);
|
||||
}
|
||||
}
|
||||
}
|
||||
else { // 각도가 안벌어져 있음
|
||||
if (true == m_bDrive && fCurrentDegree < 0.3f) { // 드라이브 중지 트리거
|
||||
if (true == m_bDrive && fabsf(fCurrentDegree) < 0.3f) { // 드라이브 중지 트리거
|
||||
m_pJoint->setRevoluteJointFlag(PSX::PxRevoluteJointFlag::eDRIVE_ENABLED, false);
|
||||
}
|
||||
}
|
||||
@@ -132,6 +132,7 @@ HRESULT CMapElement_Door::Render()
|
||||
void CMapElement_Door::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
{
|
||||
if (0.f != m_vKinematicTimer.x) {
|
||||
m_vKinematicTimer.x = FLT_EPSILON3;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -179,19 +180,20 @@ HRESULT CMapElement_Door::Ready_Components(void* pArg)
|
||||
m_pRigidBody->Move_Kinematic(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_QuarternionVector(), true);
|
||||
}
|
||||
PSX::PxTransform doorWorldPose = m_pActor->getGlobalPose();
|
||||
PSX::PxVec3 hingePivotWorld = PSX::PxVec3(39.64f, 5.12f, 71.f);
|
||||
PSX::PxVec3 hingePivotWorld = PSX::PxVec3(39.7f, 5.12f, 71.12f);
|
||||
PSX::PxVec3 hingeAxisWorld = doorWorldPose.q.rotate(PSX::PxVec3(0.f, 1.f, 0.f)).getNormalized();
|
||||
PSX::PxTransform jointWorldPose;
|
||||
jointWorldPose.p = hingePivotWorld;
|
||||
jointWorldPose.q = CMyTools::Calc_RevJointPosFromWorldHingeAxis(hingeAxisWorld);
|
||||
PSX::PxTransform localFrameDoor = doorWorldPose.transformInv(jointWorldPose);
|
||||
|
||||
m_pActor->setSolverIterationCounts(8, 1);
|
||||
m_pJoint = (PSX::PxRevoluteJoint*)m_pGameInstance->Create_PxJoint(PHYSX_JOINT::REVOLUTE, nullptr, jointWorldPose, m_pActor, localFrameDoor);
|
||||
|
||||
m_pJoint->setLimit(PSX::PxJointAngularLimitPair(-XMConvertToRadians(100.f), XMConvertToRadians(100.f)));
|
||||
m_pJoint->setRevoluteJointFlag(PSX::PxRevoluteJointFlag::eLIMIT_ENABLED, true);
|
||||
|
||||
m_pJoint->setDriveForceLimit(120.f);
|
||||
m_pJoint->setDriveForceLimit(10.f);
|
||||
|
||||
m_pJoint->setConstraintFlag(PSX::PxConstraintFlag::eVISUALIZATION, true);
|
||||
m_pActor->setLinearVelocity(PSX::PxVec3(0.f, 0.f, 0.f));
|
||||
@@ -269,6 +271,10 @@ void CMapElement_Door::Describe_Entity()
|
||||
GUI::Begin("PhysX");
|
||||
if (GUI::CollapsingHeader("Door")) {
|
||||
GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH);
|
||||
GUI::Text("m_vKinematicTimer %.3f", m_vKinematicTimer.x);
|
||||
_float fCurrentDegree = XMConvertToDegrees(m_pJoint->getAngle());
|
||||
GUI::Text("%.2f", fCurrentDegree);
|
||||
GUI::Text("%.2f", m_pJoint->getVelocity());
|
||||
if (GUI::CollapsingHeader("DOOR")) {
|
||||
{
|
||||
GUI::Text("Velo : %.2f", m_pJoint->getVelocity());
|
||||
|
||||
@@ -36,19 +36,11 @@ void CNPC_EleazarFig::Update(_float fTimeDelta)
|
||||
#ifdef _DEBUG
|
||||
Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
|
||||
{ // 세트
|
||||
m_pCallBack_HitReport->BeginFrame();
|
||||
m_pCharacter_Controller->Move(fTimeDelta);
|
||||
m_pCallBack_HitReport->Set_CurrentSlop();
|
||||
}
|
||||
|
||||
//m_pNPCInteraction->Set_Visible(0 < m_iEntered);
|
||||
}
|
||||
|
||||
void CNPC_EleazarFig::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_FootPosition());
|
||||
m_pRigidBody->Set_Position(m_pTransformCom->Get_State(STATE::POSITION), true);
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
|
||||
@@ -185,12 +177,9 @@ HRESULT CNPC_EleazarFig::Initialize(void* pArg)
|
||||
|
||||
_vector vPos = XMLoadFloat4(&pDesc->vPos);
|
||||
m_pTransformCom->Set_State(STATE::POSITION, vPos);
|
||||
m_pCharacter_Controller->Set_Position(vPos);
|
||||
m_pTransformCom->Rotation(XMLoadFloat4(&pDesc->vRotQ));
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(0, true);
|
||||
m_pCallBack_Behavior->Initialize(m_pCharacter_Controller);
|
||||
m_pCallBack_HitReport->Initialize(m_pCharacter_Controller);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -215,28 +204,6 @@ HRESULT CNPC_EleazarFig::Ready_Components(void* pArg)
|
||||
reinterpret_cast<CComponent**>(&m_pModelCom)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
{ // CCT
|
||||
CCharacter_Controller::Character_Controller_DESC Desc{};
|
||||
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::ELEAZARFIG);
|
||||
Desc.pTransform = m_pTransformCom;
|
||||
Desc.eBodyType = ACTOR::CAPSULE;
|
||||
Desc.fContactOffset = 0.0001f;
|
||||
Desc.fMaterial = { 1.2f, 1.0f, 0.0f };
|
||||
Desc.bAutoStepping = { false };
|
||||
Desc.fStepOffset = { 0.02f };
|
||||
Desc.fRadius = 0.5f;
|
||||
Desc.fHeight = 0.6f;
|
||||
Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_NonPlayable_HitReport::Create();
|
||||
Desc.pCallback_Behavior = m_pCallBack_Behavior = CCallBack_NonPlayable_Behavior::Create();
|
||||
Desc.eClimbingMode = PSX::PxCapsuleClimbingMode::eEASY;
|
||||
Desc.fWalkableSlope = 45.f;
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), (CComponent**)&m_pCharacter_Controller, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pCharacter_Controller->SetGravity(true);
|
||||
}
|
||||
{ // DO
|
||||
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::ELEAZARFIG);
|
||||
@@ -278,19 +245,10 @@ void CNPC_EleazarFig::Free()
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pRigidBody);
|
||||
SAFE_RELEASE(m_pCharacter_Controller);
|
||||
if (nullptr != m_pInfoInstance) {
|
||||
CInfoInstance* pInfo = m_pInfoInstance;
|
||||
m_pInfoInstance = nullptr;
|
||||
}
|
||||
if (nullptr != m_pCallBack_Behavior) {
|
||||
m_pCallBack_Behavior->Finalize();
|
||||
}
|
||||
if (nullptr != m_pCallBack_HitReport) {
|
||||
m_pCallBack_HitReport->Finalize();
|
||||
}
|
||||
Safe_Delete(m_pCallBack_Behavior);
|
||||
Safe_Delete(m_pCallBack_HitReport);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
#include "GameInstance.h"
|
||||
#include "InfoInstance.h"
|
||||
#include "Player.h"
|
||||
#include "CallBack_NonPlayable_Behavior.h"
|
||||
#include "CallBack_NonPlayable_HitReport.h"
|
||||
#include "NPCInteraction.h"
|
||||
|
||||
CNPC_Ollivander::CNPC_Ollivander(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
@@ -37,11 +35,6 @@ void CNPC_Ollivander::Update(_float fTimeDelta)
|
||||
#ifdef _DEBUG
|
||||
Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
{ // 세트
|
||||
m_pCallBack_HitReport->BeginFrame();
|
||||
m_pCharacter_Controller->Move(fTimeDelta);
|
||||
m_pCallBack_HitReport->Set_CurrentSlop();
|
||||
}
|
||||
|
||||
m_pNPCInteraction->Set_Visible(0 < m_iEntered);
|
||||
m_pRigidBody->Set_Position(m_pTransformCom->Get_State(STATE::POSITION), true);
|
||||
@@ -49,8 +42,6 @@ void CNPC_Ollivander::Update(_float fTimeDelta)
|
||||
|
||||
void CNPC_Ollivander::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_FootPosition());
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
|
||||
Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius()));
|
||||
@@ -188,12 +179,9 @@ HRESULT CNPC_Ollivander::Initialize(void* pArg)
|
||||
|
||||
_vector vPos = XMLoadFloat4(&pDesc->vPos);
|
||||
m_pTransformCom->Set_State(STATE::POSITION, vPos);
|
||||
m_pCharacter_Controller->Set_Position(vPos);
|
||||
m_pTransformCom->Rotation(XMLoadFloat4(&pDesc->vRotQ));
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(0, true);
|
||||
m_pCallBack_Behavior->Initialize(m_pCharacter_Controller);
|
||||
m_pCallBack_HitReport->Initialize(m_pCharacter_Controller);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -219,27 +207,6 @@ HRESULT CNPC_Ollivander::Ready_Components(void* pArg)
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
{ // CCT
|
||||
CCharacter_Controller::Character_Controller_DESC Desc{};
|
||||
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::OLLIVANDER);
|
||||
Desc.pTransform = m_pTransformCom;
|
||||
Desc.eBodyType = ACTOR::CAPSULE;
|
||||
Desc.fContactOffset = 0.0001f;
|
||||
Desc.fMaterial = { 1.2f, 1.0f, 0.0f };
|
||||
Desc.bAutoStepping = { false };
|
||||
Desc.fStepOffset = { 0.02f };
|
||||
Desc.fRadius = 0.2f;
|
||||
Desc.fHeight = 0.3f;
|
||||
Desc.pCallback_HitReport = m_pCallBack_HitReport = CCallBack_NonPlayable_HitReport::Create();
|
||||
Desc.pCallback_Behavior = m_pCallBack_Behavior = CCallBack_NonPlayable_Behavior::Create();
|
||||
Desc.eClimbingMode = PSX::PxCapsuleClimbingMode::eEASY;
|
||||
Desc.fWalkableSlope = 45.f;
|
||||
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_CCT_CAPSULE"), (CComponent**)&m_pCharacter_Controller, &Desc))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
m_pCharacter_Controller->SetGravity(true);
|
||||
}
|
||||
{ // DO
|
||||
CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC Desc{};
|
||||
Desc.iSubKind = ENUM_CLASS(PXOBJECT::OLLIVANDER);
|
||||
@@ -291,21 +258,12 @@ void CNPC_Ollivander::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
SAFE_RELEASE(m_pCharacter_Controller);
|
||||
SAFE_RELEASE(m_pNpcStat);
|
||||
SAFE_RELEASE(m_pRigidBody);
|
||||
if (nullptr != m_pInfoInstance) {
|
||||
CInfoInstance* pInfo = m_pInfoInstance;
|
||||
m_pInfoInstance = nullptr;
|
||||
}
|
||||
if (nullptr != m_pCallBack_Behavior) {
|
||||
m_pCallBack_Behavior->Finalize();
|
||||
}
|
||||
if (nullptr != m_pCallBack_HitReport) {
|
||||
m_pCallBack_HitReport->Finalize();
|
||||
}
|
||||
Safe_Delete(m_pCallBack_Behavior);
|
||||
Safe_Delete(m_pCallBack_HitReport);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
|
||||
|
||||
@@ -111,7 +111,7 @@ HRESULT CPlayer::Initialize(void* pArg)
|
||||
m_bAI = false;
|
||||
|
||||
XMLoadFloat4x4(m_pBroomModel->Get_BoneMatrixPtr("broomSocket"));
|
||||
m_fRayDistance = 10.f;
|
||||
m_fRayDistance = 60.f;
|
||||
m_pModelCom->Set_DisableRootMotionScale(true);
|
||||
|
||||
return S_OK;
|
||||
@@ -221,13 +221,6 @@ HRESULT CPlayer::Render()
|
||||
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
//#ifdef _DEBUG
|
||||
//#ifdef 기무리
|
||||
// if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//#endif // 기무리
|
||||
//#endif // _DEBUG
|
||||
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||
"g_OffsetMatrix",
|
||||
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||
@@ -338,31 +331,37 @@ HRESULT CPlayer::Render_Shadow(SHADOW eType)
|
||||
if (FAILED(m_pGameInstance->Bind_Shadow_Resource(m_pShaderCom, "g_ProjMatrix", D3DTS::PROJ, eType))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
_uint iNumMeshes = m_pModelCom->Get_NumMeshes();
|
||||
|
||||
for (_uint i = 0; i < iNumMeshes; i++)
|
||||
{
|
||||
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||
"g_OffsetMatrix",
|
||||
if (FAILED(m_pShaderCom->Bind_Matrices("g_OffsetMatrix",
|
||||
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||
(_int)m_pModelCom->Get_OffsetMatrix(i).size()
|
||||
)))
|
||||
(_int)m_pModelCom->Get_OffsetMatrix(i).size())))
|
||||
{
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::SHADOW)))) {
|
||||
if (FAILED(Bind_ShaderParameters(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (i == ENUM_CLASS(PLAYER_MESH_ORDER::ROBE_CLOTH)){
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::SHADOW_LEGACY)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_NPC_PBR_ANIM::SHADOW)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
|
||||
|
||||
m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
|
||||
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
void CPlayer::OnCollision(CGameObject* pOther, void* pDesc)
|
||||
|
||||
@@ -15,7 +15,7 @@ void CPlayerRobe::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
#ifdef 기무리
|
||||
Update_RobeJoints();
|
||||
//Update_RobeJoints();
|
||||
#endif // 기무리
|
||||
|
||||
Describe_Entity();
|
||||
@@ -193,6 +193,48 @@ HRESULT CPlayerRobe::Render_Legs()
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
HRESULT CPlayerRobe::Render_BonePhysX()
|
||||
{
|
||||
_vector vColor = CMyTools::ColorRGB_A_HEXtoVECTOR(0x00ff00, 1.f);
|
||||
_fmatrix OwnerMatrix = m_pParentTransformCom->Get_XMWorldMatrix();
|
||||
_cmatrix ViewMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW);
|
||||
_matrix ProjMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ);
|
||||
ID3D11DepthStencilState* pPrevDSS = nullptr;
|
||||
UINT iPrevStencilRef = 0;
|
||||
m_pContext->OMGetDepthStencilState(&pPrevDSS, &iPrevStencilRef);
|
||||
|
||||
for (_uint iBoneIndex = 0; iBoneIndex < ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END); ++iBoneIndex)
|
||||
{
|
||||
_matrix WorldMatrix = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr(PLAYER_JOINT_BONE_NAMES[iBoneIndex])) * OwnerMatrix;
|
||||
|
||||
m_pSubShape->Draw(WorldMatrix, ViewMatrix, ProjMatrix, vColor, nullptr, true,
|
||||
[this]() {
|
||||
m_pContext->OMSetDepthStencilState(m_pDepthStencilStateNone, 0);
|
||||
});
|
||||
}
|
||||
_matrix MainAnchorMatrix = /*XMMatrixRotationZ(XM_PIDIV2) * */XMLoadFloat4x4(m_pSocketMatrix) * OwnerMatrix;
|
||||
m_pSubShape->Draw(MainAnchorMatrix, ViewMatrix, ProjMatrix, vColor, nullptr, true,
|
||||
[this]() {
|
||||
m_pContext->OMSetDepthStencilState(m_pDepthStencilStateNone, 0);
|
||||
});
|
||||
m_pRobeMainAnchor->Render([this]() {
|
||||
m_pContext->OMSetDepthStencilState(m_pDepthStencilStateNone, 0);
|
||||
});
|
||||
Render_Legs();
|
||||
_vector vRouteColor = CMyTools::ColorRGB_A_HEXtoVECTOR(0x0000ff, 1.f);
|
||||
for (_uint i = 0; i < ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END); ++i) {
|
||||
m_pRobeJointAnchor[i]->Render([this]() {
|
||||
m_pContext->OMSetDepthStencilState(m_pDepthStencilStateNone, 0);
|
||||
});
|
||||
}
|
||||
m_pContext->OMSetDepthStencilState(pPrevDSS, iPrevStencilRef);
|
||||
if (pPrevDSS != nullptr) {
|
||||
pPrevDSS->Release();
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
#endif // _DEBUG
|
||||
|
||||
HRESULT CPlayerRobe::Update_RobeJoints()
|
||||
{
|
||||
for (_uint i = ENUM_CLASS(PLAYER_JOINT_ORDER::ORIGIN_TO_RUP_START); i < ENUM_CLASS(PLAYER_JOINT_ORDER::END); ++i) {
|
||||
@@ -299,48 +341,6 @@ HRESULT CPlayerRobe::Update_RobeJoints()
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
HRESULT CPlayerRobe::Render_BonePhysX()
|
||||
{
|
||||
_vector vColor = CMyTools::ColorRGB_A_HEXtoVECTOR(0x00ff00, 1.f);
|
||||
_fmatrix OwnerMatrix = m_pParentTransformCom->Get_XMWorldMatrix();
|
||||
_cmatrix ViewMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::VIEW);
|
||||
_matrix ProjMatrix = m_pGameInstance->Get_Transform_Matrix(D3DTS::PROJ);
|
||||
ID3D11DepthStencilState* pPrevDSS = nullptr;
|
||||
UINT iPrevStencilRef = 0;
|
||||
m_pContext->OMGetDepthStencilState(&pPrevDSS, &iPrevStencilRef);
|
||||
|
||||
for (_uint iBoneIndex = 0; iBoneIndex < ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END); ++iBoneIndex)
|
||||
{
|
||||
_matrix WorldMatrix = XMLoadFloat4x4(m_pModelCom->Get_BoneMatrixPtr(PLAYER_JOINT_BONE_NAMES[iBoneIndex])) * OwnerMatrix;
|
||||
|
||||
m_pSubShape->Draw(WorldMatrix, ViewMatrix, ProjMatrix, vColor, nullptr, true,
|
||||
[this]() {
|
||||
m_pContext->OMSetDepthStencilState(m_pDepthStencilStateNone, 0);
|
||||
});
|
||||
}
|
||||
_matrix MainAnchorMatrix = /*XMMatrixRotationZ(XM_PIDIV2) * */XMLoadFloat4x4(m_pSocketMatrix) * OwnerMatrix;
|
||||
m_pSubShape->Draw(MainAnchorMatrix, ViewMatrix, ProjMatrix, vColor, nullptr, true,
|
||||
[this]() {
|
||||
m_pContext->OMSetDepthStencilState(m_pDepthStencilStateNone, 0);
|
||||
});
|
||||
m_pRobeMainAnchor->Render([this]() {
|
||||
m_pContext->OMSetDepthStencilState(m_pDepthStencilStateNone, 0);
|
||||
});
|
||||
Render_Legs();
|
||||
_vector vRouteColor = CMyTools::ColorRGB_A_HEXtoVECTOR(0x0000ff, 1.f);
|
||||
for (_uint i = 0; i < ENUM_CLASS(PLAYER_JOINT_BONE_ORDER::END); ++i) {
|
||||
m_pRobeJointAnchor[i]->Render([this]() {
|
||||
m_pContext->OMSetDepthStencilState(m_pDepthStencilStateNone, 0);
|
||||
});
|
||||
}
|
||||
m_pContext->OMSetDepthStencilState(pPrevDSS, iPrevStencilRef);
|
||||
if (pPrevDSS != nullptr) {
|
||||
pPrevDSS->Release();
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
#endif // _DEBUG
|
||||
|
||||
HRESULT CPlayerRobe::Ready_Components()
|
||||
{
|
||||
__super::Ready_Components(nullptr);
|
||||
@@ -672,7 +672,7 @@ HRESULT CPlayerRobe::Initialize(void* pArg)
|
||||
JointDesc.ApplyToJoint(*m_pDynamicJoints[i]);
|
||||
m_JointDescriptions[i] = JointDesc;
|
||||
}
|
||||
Update_RobeJoints();
|
||||
//Update_RobeJoints();
|
||||
|
||||
#ifdef _DEBUG
|
||||
m_pSubShape = (GeometricPrimitive::CreateSphere(m_pContext, 0.05f, 22, false, false));
|
||||
|
||||
@@ -501,7 +501,7 @@ HRESULT CRanrok::Render_Nonblend()
|
||||
|
||||
for (_uint i = ENUM_CLASS(RANROK_MESH_ORDER::WINGS); i < ENUM_CLASS(RANROK_MESH_ORDER::END); ++i)
|
||||
{
|
||||
if (FAILED(m_pShaderCom->Bind_Matrices( "g_OffsetMatrix",
|
||||
if (FAILED(m_pShaderCom->Bind_Matrices("g_OffsetMatrix",
|
||||
m_pModelCom->Get_OffsetMatrix(i).data(),
|
||||
(_int)m_pModelCom->Get_OffsetMatrix(i).size())))
|
||||
{
|
||||
@@ -511,6 +511,7 @@ HRESULT CRanrok::Render_Nonblend()
|
||||
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -518,6 +519,9 @@ HRESULT CRanrok::Render_Nonblend()
|
||||
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
|
||||
m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
|
||||
|
||||
if (true == m_bDrawOutLine) {
|
||||
m_pGameInstance->Begin_OutLine_Write(2);
|
||||
}
|
||||
if (FAILED(m_pModelCom->Render(i))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
@@ -558,6 +562,7 @@ HRESULT CRanrok::Render_Nonblend()
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CRanrok::Render_Blend()
|
||||
{
|
||||
_float fDiffuseUVRatio = (m_vEtherealTimer.x / m_vEtherealTimer.y);
|
||||
|
||||
@@ -19,7 +19,7 @@ class CCamera_Gaze final : public CCamera
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
void Update_LerpTimer(Engine::_float fTimeDelta);
|
||||
void Update_LerpTimer(_float fTimeDelta);
|
||||
void Enable_FollowLerp();
|
||||
void Enable_LookLerp();
|
||||
void Toggle_Priority();
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
#pragma once
|
||||
|
||||
#include "Client_Define.h"
|
||||
#include "Camera.h"
|
||||
|
||||
NS_BEGIN(Client)
|
||||
|
||||
class CCamera_Model final : public CCamera
|
||||
{
|
||||
public:
|
||||
typedef struct tagCamera_Model : public CCamera::CAMERA_DESC
|
||||
{
|
||||
}CAMERA_MODEL_DESC;
|
||||
private:
|
||||
CCamera_Model(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CCamera_Model(const CCamera_Model& rhs);
|
||||
virtual ~CCamera_Model() = default;
|
||||
|
||||
public:
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
|
||||
private:
|
||||
class CModel* m_pModelCom = { nullptr };
|
||||
class CShader* m_pShaderCom = { nullptr };
|
||||
_bool m_bMovable = true;
|
||||
_float4x4 m_matInitial = {};
|
||||
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
virtual HRESULT Ready_Components(void* pArg) override;
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
void Set_InitialPos();
|
||||
|
||||
public:
|
||||
static CCamera_Model* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
@@ -27,8 +27,13 @@ namespace Client
|
||||
enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, UVALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, SPELL_SLOT, SPELL_LOCK, QUEST_SLOT, END };
|
||||
enum class SHADER_PASS_WORLDMODLE_INSTANCE {DEFAULT, LIGHT, BLOOM};
|
||||
enum class SHADER_PASS_NPC_PBR_ANIM {
|
||||
EYELASH_DAOTHV_ToSRO, TEETH_SRXO_ToSRO, EYE_DN_ToSRO, EYE_OCC, FACIAL_HAIR_DAOTHV_ToSRO, HEAD_HAIR_DAOTHV_ToSRO, HEADwtHAND_DSRXON_ToSRO, LOWER_DSRON_ToSRO, UPPER_DMRON_ToMRO, GLASSES_DMRON_ToMRO, EmissiveMetalness_DENMRO_ToMRO, MI_ClothSim_DSEN_ToSRO, MI_Troll_Club_DAENMROSRXO_To
|
||||
, OUTLINE_READ
|
||||
EYELASH_DAOTHV_ToSRO, TEETH_SRXO_ToSRO, EYE_DN_ToSRO, EYE_OCC,
|
||||
FACIAL_HAIR_DAOTHV_ToSRO, HEAD_HAIR_DAOTHV_ToSRO, HEADwtHAND_DSRXON_ToSRO, LOWER_DSRON_ToSRO,
|
||||
UPPER_DMRON_ToMRO, GLASSES_DMRON_ToMRO, EmissiveMetalness_DENMRO_ToMRO, MI_ClothSim_DSEN_ToSRO,
|
||||
MI_Troll_Club_DAENMROSRXO_To
|
||||
, OUTLINE_READ, MI_DANSROMRO_ToSRO, DragonAuraPass, DragonEtherealEyesPass,
|
||||
DragonEtherealWingsPass, DragonWingsPass, DragonBodyPass, DragonRedHotPass, DragonPinkHotPass, DragonYellowHotPass,
|
||||
PLAYER_HAIR_DAOTHV_ToSRO, PLAYER_Suit_DSRON_ToSRO, PLAYER_EyeLash_DAOTHV_ToSRO, PLAYER_Eye_ToSRO, PLAYER_Robe_ToMRO, SHADOW, SHADOW_LEGACY
|
||||
, END
|
||||
};
|
||||
enum class UI_STATE { GAMEPLAYER, SPELL, QUEST, INVENTORY, SPELLLNEARN, END };
|
||||
|
||||
@@ -15,7 +15,6 @@ namespace Client {
|
||||
#define FX_POSTEX TEXT("FX_POSTEX")
|
||||
#define FX_NORTEX TEXT("FX_NORTEX")
|
||||
#define FX_CELL TEXT("FX_CELL")
|
||||
#define FX_PARTICLE TEXT("FX_PARTICLE")
|
||||
#define FX_INSTANCE_MODEL TEXT("FX_INSTANCE_MODEL")
|
||||
#define FX_INSTANCE_PROP_MODEL TEXT("FX_INSTANCE_PROP_MODEL")
|
||||
#define FX_UIEDITOR TEXT("FX_UIEDITOR")
|
||||
|
||||
@@ -260,13 +260,20 @@ namespace Client
|
||||
_bool isNoDissolveSmoothStep = {};
|
||||
_bool isPadding3 = {};
|
||||
|
||||
_float4 vPadding5 = {};
|
||||
_float2 vDissolveSmoothRange = { 0.1f , 0.1f };
|
||||
_float2 vPadding0 = {};
|
||||
|
||||
_bool isRimLight = {};
|
||||
_bool isMask_G = {};
|
||||
_bool isMask_B = {};
|
||||
_bool isDissolve_B = {};
|
||||
|
||||
_float4 vPadding1 = {};
|
||||
_float4 vPadding2 = {};
|
||||
_float4 vPadding3 = {};
|
||||
_float4 vPadding4 = {};
|
||||
_float4 vPadding5 = {};
|
||||
_float4 vPadding6 = {};
|
||||
}EFFECT_INFO;
|
||||
|
||||
typedef struct tagTrailInfo
|
||||
|
||||
@@ -49,7 +49,7 @@ class CMapElement_Chest final : public CMapElement
|
||||
|
||||
_int m_iEntered = { 0 };
|
||||
_float2 m_vEnteringTimer = { 0.f, 1.f };
|
||||
_float m_fEncounterDistance = { 3.f };
|
||||
_float m_fEncounterDistance = { 8.f };
|
||||
_float m_fTimeAcc = {};
|
||||
_float m_fRimLightPower = { 0.7f };
|
||||
_float m_fRimLightStrength = { 3.7f };
|
||||
|
||||
@@ -34,7 +34,7 @@ class CMapElement_Door final : public CMapElement
|
||||
PSX::PxRevoluteJoint* m_pJoint = { nullptr };
|
||||
|
||||
_float3 m_vRadianYAngle = {};
|
||||
_float3 m_vKinematicTimer = { 0.f, 2.f, 2.3f };
|
||||
_float3 m_vKinematicTimer = { 0.f, 3.f, 3.3f };
|
||||
_bool m_bDrive = { false };
|
||||
#ifdef _DEBUG
|
||||
_bool m_bUseSelectColor = { true };
|
||||
|
||||
@@ -26,16 +26,13 @@ class CNPC_EleazarFig final : public CUnit
|
||||
virtual void OnRayCollision(CGameObject* pCaster, _uint iCastedOrder, _float fDistance, _float3 vCastedWorldPos)override;
|
||||
protected:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
CCharacter_Controller* m_pCharacter_Controller = { nullptr };
|
||||
CRigidBody_Dynamic* m_pRigidBody = { nullptr };
|
||||
class CCallBack_NonPlayable_Behavior* m_pCallBack_Behavior = { nullptr };
|
||||
class CCallBack_NonPlayable_HitReport* m_pCallBack_HitReport = { nullptr };
|
||||
CUnit* m_pPlayerAllyUnit = { nullptr };
|
||||
|
||||
|
||||
_int m_iEntered = { 0 };
|
||||
_float2 m_vEnteringTimer = { 0.f, 1.f };
|
||||
_float m_fEncounterDistance = { 3.f };
|
||||
_float m_fEncounterDistance = { 8.f };
|
||||
protected:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
@@ -27,10 +27,7 @@ class CNPC_Ollivander final : public CUnit
|
||||
virtual void OnRayCollision(CGameObject* pCaster, _uint iCastedOrder, _float fDistance, _float3 vCastedWorldPos)override;
|
||||
protected:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
CCharacter_Controller* m_pCharacter_Controller = { nullptr };
|
||||
CRigidBody_Dynamic* m_pRigidBody = { nullptr };
|
||||
class CCallBack_NonPlayable_Behavior* m_pCallBack_Behavior = { nullptr };
|
||||
class CCallBack_NonPlayable_HitReport* m_pCallBack_HitReport = { nullptr };
|
||||
CUnit* m_pPlayerAllyUnit = { nullptr };
|
||||
CNPC_Ollivander* m_pNPC_Ollivander = { nullptr };
|
||||
|
||||
@@ -39,7 +36,7 @@ class CNPC_Ollivander final : public CUnit
|
||||
CNPCStat* m_pNpcStat = { nullptr };
|
||||
_int m_iEntered = { 0 };
|
||||
_float2 m_vEnteringTimer = { 0.f, 1.f };
|
||||
_float m_fEncounterDistance = { 3.f };
|
||||
_float m_fEncounterDistance = { 8.f };
|
||||
protected:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
|
||||
@@ -73,11 +73,11 @@ class CPlayerRobe final : public CPartObject
|
||||
HRESULT Bind_ShaderResources() { return S_OK; }
|
||||
|
||||
HRESULT Update_LegsPosition();
|
||||
HRESULT Update_RobeJoints();
|
||||
HRESULT Helper_RouteJointGenerater(CRigidBody_Dynamic::RIGIDBODY_DYNAMIC_DESC& Desc_Body, ROUTE_DESC& Desc_Route, _matrix* xmAnchorMatricesWorld);
|
||||
#ifdef _DEBUG
|
||||
HRESULT Render_BonePhysX();
|
||||
HRESULT Render_Legs();
|
||||
HRESULT Update_RobeJoints();
|
||||
#endif // _DEBUG
|
||||
public:
|
||||
static CPlayerRobe* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user