Posts from 2025-03-25 with #shader

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

Finally got my shader to work in Forward+ 🦊

#gamedev #unity #shader #fur #indiedev #VFX

Posted at: 2025-03-25 00:23:48 UTC
@FLOZz.mastodon.social.ap.brid.gy avatar
@FLOZz.mastodon.social.ap.brid.gy (Fabien LOISON (FLOZz))

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 ! 😁 […]

Posted at: 2025-03-25 06:22:06 UTC

Implemented fake subsurface scattering onto my toon shader
Still a work-in-progress
Model taken from Sketchfab

Hadn't planned on an anime art style originally but this gives me some ideas

#gamedev #shaders #indiedev #graphics #indie

Posted at: 2025-03-25 14:36:39 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);
@amplifycreations.bsky.social avatar
@amplifycreations.bsky.social (Amplify Creations)

🔥 Assets Powered by #AmplifyShaderEditor - Part 7 🔥
www.youtube.com/watch?v=jymG...

#Unity3d #Gamedev #Shaders

Posted at: 2025-03-25 19:00:39 UTC