ViewMode Scene Depth를 구현하세요.

HeightFogComponent를 구현하세요.
Fog용 ShowFlag를 추가하고 구현하세요.
Exponential Height Fog, 기본 산란(Basic Inscattering) 안개(Fog)를 구현하세요.
Volumetric Fog, Inscattering Cubemap Fog, Directional Inscattering Fog는 필수 구현 요소가 아닙니다.
// UE5
// FogRendering.cpp
voidRenderViewFog()
{
...
// Draw a quad covering the view.
RHICmdList.SetStreamSource(0, GScreenSpaceVertexBuffer.VertexBufferRHI, 0);
RHICmdList.DrawIndexedPrimitive(GTwoTrianglesIndexBuffer.IndexBufferRHI, 0, 0, 4, 0, 2, 1);
}
voidInitFogConstants()
{
...
}
// HeightFogCommon.ush
// HeightFogPixelShader.ush
voidExponentialPixelMain()
{
// Read SceneColor
// Read SceneDepth
}
classUHeightFogComponent :public UPrimitiveComponent
{
float FogDensity;
float FogHeightFalloff;
float StartDistance;
float FogCutoffDistance;
float FogMaxOpacity;
FLinearColor FogInscatteringColor;
};
FireBallComponent를 구현하세요.
특정 컬러로 일정 반경을 밝혀주는 특수 효과를 구현하세요.
classUFireBallComponent : UPrimitiveComponent
{
float Intensity;
float Radius;
float RadiusFallOff;
FLinearColor Color;
};
// PSSetConstantBuffers
cbuffer PerObject : register(b1)
{
float4x4 World;
float4x4 ViewProj;
...
}
structVSOutput
{
float4 Position : SV_POSITION;
float3 WorldPos : TEXCOORD0;
...
};
RotationMovementComponent를 구현하세요.
https://dev.epicgames.com/documentation/en-us/unreal-engine/movement-components-in-unreal-engine#rotatingmovementcomponent
ProjectileMovementComponent를 구현하세요.
https://dev.epicgames.com/documentation/en-us/unreal-engine/movement-components-in-unreal-engine#projectilemovementcomponent
FXAA(Fast approximate anti-aliasing)를 구현하세요.
https://en.wikipedia.org/wiki/Fast_approximate_anti-aliasing