Posts from 2025-03-25 with #tech

On this day: 1208 posts, 89 reposts, 2214 total likes.

The new licensing model is presented as “straightforward with no royalty” #havok #gamedev #coding #programming #developers #gaming #tech #news #technology

Posted at: 2025-03-25 14:49:57 UTC

✨Shader Magic✨

UE5’s HLSL node is powerful, but inlining all the code gets messy, and standalone functions won’t work.

Structs organize logic into clean, reusable blocks, making shaders easier to manage.

Follow for more tips! 💚👀

#TechArt #GameDev #UnrealEngine #Shaders #3DArt #IndieDev

Posted at: 2025-03-25 15:00:07 UTC
// 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: // 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);
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: 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);
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);
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);
@teamup.org avatar
@teamup.org (Teamup)

🎮 Learn about #accessibility in game development with #GAconf! 🤍

📍 Virtual through Discord / London, UK
📆 April 14 - 15, 2025
🌟 Networking, guest speakers, & more!

#gamedev #EduSky #coding #tech #indiedev

buff.ly/IHm54Ge

Posted at: 2025-03-25 15:28:02 UTC