Archive 17/01/2023.

Full-screen shaders?

suppagam

What’s the proper way of creating full-screen shaders in Urho? I’m trying to apply a shader to the whole screen to create some camera effects (nightvision, VHS effect, etc).

SirNate0

Look at the existing post processing effects like Bloom. That sounds similar to what you want to achieve, they would probably be a decent starting point/example, though someone else may be able to provide more concrete help.

suppagam

You mean this? https://github.com/xamarin/urho/blob/master/Urho3D/CoreData/Shaders/GLSL/Bloom.glsl

SirNate0

Yes, along with some of the others. Combine that with bin/Data/PostProcess/Bloom.xml and look at some of the samples for how to add the effect to the render path.