Devlog/Tutorial 05 - Unreal Engine Grand Strategy, Blood and Iron, Africa, RGOs, HQX Guide

Stupid Ones Games
Stupid Ones Games
2.5 هزار بار بازدید - هفته قبل - This update took quite a
This update took quite a while to do cause there's also a lot of hidden pop features implemented, like research point and bureaucracy production from percentages of pops which aren't fully done yet. If you're a solo or team of devs working in unreal on a Grand Strategy project, feel free to email me for help (:

Put this in a CUSTOM node;

struct Functions
{
 float4 HQX_AA(float2 UV, float Contrast, Texture2D Tex, sampler TexSampler, float2 P1, float2 P2, float3 Sum)
 {
float2 PixleUVs = float2((UV.x)*8192, (1-UV.y)*4096);
float PixleTri=dot(PixleUVs-floor(PixleUVs+P1)-0.5, normalize(float2((P2-P1).y, -(P2-P1).x)));
float Alpha = saturate(round((Contrast-PixleTri)*10));
PixleUVs = 1/float2(8192,4096) * float2(1,-1);

float3 TexP1 = Texture2DSample(Tex, TexSampler, UV + PixleUVs*P1);
float3 TexP2 = Texture2DSample(Tex, TexSampler, UV + PixleUVs*P2);
float Condition = length(TexP1-TexP2);
if (Condition != 0) return float4(Sum, 0);
return float4(lerp(Sum, TexP1, Alpha), 1);  
}
};
Functions f;

float4 Sum=Texture2DSample(Tex, TexSampler, UV);
if(Cull == 0) return Sum.xyz;
float LineThick = 0.2;
Sum=f.HQX_AA(UV, 0.4, Tex, TexSampler, float2(-1, 0), float2(0,1), Sum);
if (Sum.w == 1){
Sum=f.HQX_AA(UV, LineThick, Tex, TexSampler, float2(-1, 0), float2(1,1), Sum);
Sum=f.HQX_AA(UV, LineThick, Tex, TexSampler, float2(-1, -1), float2(0,1), Sum);
}

Sum=f.HQX_AA(UV, 0.4, Tex, TexSampler, float2(0,1), float2(1,0), Sum);
if (Sum.w == 1){
Sum=f.HQX_AA(UV, LineThick, Tex, TexSampler, float2(0,1), float2(1,-1), Sum);
Sum=f.HQX_AA(UV, LineThick, Tex, TexSampler, float2(-1,1), float2(1,0), Sum);
}

Sum=f.HQX_AA(UV, 0.4, Tex, TexSampler, float2(1,0), float2(0,-1), Sum);
if (Sum.w == 1){
Sum=f.HQX_AA(UV, LineThick, Tex, TexSampler, float2(1,0), float2(-1,-1), Sum);
Sum=f.HQX_AA(UV, LineThick, Tex, TexSampler, float2(1,1), float2(0,-1), Sum);
}

Sum=f.HQX_AA(UV, 0.4, Tex, TexSampler, float2(0,-1), float2(-1,0), Sum);
if (Sum.w == 1){
Sum=f.HQX_AA(UV, LineThick, Tex, TexSampler, float2(0,-1), float2(-1,1), Sum);
Sum=f.HQX_AA(UV, LineThick, Tex, TexSampler, float2(1,-1), float2(-1,0), Sum);
}

return Sum.xyz;



Timestamps:
00:00 - Intro
01:07 - North & West Africa
02:17 - Tribesmen
03:18 - HQX Shading
04:10 - Central Africa
04:41 - East Africa
05:18 - RGOs
06:38 - South Africa
هفته قبل در تاریخ 1403/06/16 منتشر شده است.
2,569 بـار بازدید شده
... بیشتر