L'ami @TurboTartine vient de publier un article pour démystifier les #shaders (qu'est ce que c'est, qu'est ce que ça fait, tout ça).
C'est plutôt accessible même sans grande compétences techniques du coup je ne peux que vous en recommander la lecture si vous êtes un peu curieux ! 😁 […]
한국의 주요 트렌드 주제를 30분마다 게시합니다 🌱🌎 피드 목록은 여기에 있습니다: https://bsky.app/profile/did:plc:mlkp2imgbdkalbip6ypy6tqt/lists/3lcju5y3n5y2a 개발자: @terraprotege.bsky.social terraprotege@gmail.com
🎮Dive into the amazing world of game dev and Unreal Engine creations! 🕹️ Whether it's jaw-dropping projects, insightful tips, or industry chatter, we've got you covered.
Disclaimer: This account is not affiliated with Epic Games.
✝️☯️ (24) Sleep deprived artist who listens to k-pop and likes games. (RT heavy, Comments locked due to social anxiety.)
Itch: https://menutowngames.itch.io/
If you like my work be sure to support me:
https://ko-fi.com/elmorethemagician
Alt: // Blend color1 and color2 (50% blend), then blend the result with the average of all three colors
return lerp(lerp(color1, color2, 0.5), (color1 + color2 + color3) / 3.0, 0.5);
Alt: float3 Blend(float3 a, float3 b)
{
return lerp(a, b, 0.5);
}
float3 Average(float3 a, float3 b, float3 c)
{
return (a + b + c) / 3.0;
}
float3 Main(float3 a : COLOR1, float3 b : COLOR2, float3 c : COLOR3) : SV_Target0
{
return lerp(Blend(a, b), Average(a, b, c), 0.5);
}
return Main(color1, color2, color3);
Alt: struct Functions
{
float3 Blend(float3 a, float3 b)
{
return lerp(a, b, 0.5); // Blend 50% of each color
}
float3 Average(float3 a, float3 b, float3 c)
{
return (a + b + c) / 3.0; // Average of all three colors
}
float3 Main(float3 a : COLOR1, float3 b : COLOR2, float3 c : COLOR3) : SV_Target0
{
// Blend the result of Blend(a, b) and Average(a, b, c)
return lerp(Blend(a, b), Average(a, b, c), 0.5);
}
};
Functions f;
return f.Main(color1, color2, color3);