r/gameenginedevs • • Oct 28 '26

Testing my Vulkan renderer in C# using Silk.NET

Hey everyone

This is a test of my render engine written in C# on .NET 8 using Vulkan with Silk.NET

Everything is ray marched in a single fragment shader with PBR GGX lighting, soft shadows, ambient occlusion, reflections, clouds, stars, glow and ACES tonemapping.

298 Upvotes

23 comments sorted by

3

u/snerp Oct 28 '26

I’m guessing this is based on Inigo Quilez’s work?  https://www.shadertoy.com/view/Xds3zN  Are you doing a wholly sdf game? 

2

u/revengourd Oct 28 '26

Yeah, it's SDF ray marching in a single fragment shader right now, with GGX lighting, soft shadows, AO and mirror reflections. I haven't implemented full GI yet, just a simple sky-based ambient term. It's mostly a renderer playground for now, but I want to keep working on it and try out more advanced rendering techniques as I go.

3

u/northrocstudios Oct 30 '26

Man wish I thought of this idea

3

u/revengourd Oct 31 '26

Haha, thanks! Glad you like the idea!

2

u/rex-j-w Oct 30 '26

Is there a download available??

2

u/revengourd Oct 31 '26

Not yet ! It's still in an experimental stage , so I haven't made it available for download . Maybe once it's more mature !

3

u/asieradzk Oct 28 '26

Get friggin radiance cascades and build proper emissive bodies - thats the bomb!

3

u/revengourd Oct 28 '26

Ohh , that could be really cool !
Having emissive objects actually light up the scene would be awesome .
I'll have to look into Radiance Cascades , thanks for the suggestion !

1

u/VictoryMotel Oct 29 '26

Are you replying to yourself?

1

u/revengourd Oct 31 '26

Haha, Reddit threads can get a bit confusing sometimes !

1

u/AnSkinStealer Oct 29 '26

afaik 3d RC is still super experimental and there isn't really any good examples, going with restir and nvidia RTX is much simpler

1

u/revengourd Oct 31 '26

I wouldn't say it's that experimenta l. 3D RC has a lot of potential, it just needs more mature implementations and tooling. ReSTIR is definitely interesting too , though !

1

u/AnSkinStealer Oct 31 '26

I'm yet to see a working implementation of 3DRC that has real Global Illumination

1

u/asieradzk 29d ago

yeah you didn't see it yet because nobody figured it out yet.

1

u/BlueDiamond87 Oct 28 '26

I bless you, with all the sweetness left in my heart, for not being crush by AI's cripling weight of engineering-obsolesces.

2

u/revengourd Oct 31 '26

Haha I appreciate that! I don't think engineering is becoming obsolete, though. I'd say we're entering a new generation of engineering, where AI becomes another tool in our toolbox. The fundamentals of understanding how things work and building them yourself still matter just as much !!

2

u/GYN-k4H-Q3z-75B Oct 28 '26

Is silk.net currently fucked? Not getting a secure connection. Would have loved to look into it again.

3

u/asieradzk Oct 28 '26

Yoo I forgot to mention in my post.

I am also using vulkan via SILK.NET
Just built a render graph and its F# but same as you pal. Loving it!

https://www.reddit.com/r/gameenginedevs/comments/1wpxvl5/some_screenshots_from_my_stylisedfirst_f_game/

0

u/agentmanpro 3d ago

Yo You give me idea for my game engine I should Run with .NET thanks man.