With this code, you can render different shapes and effects on the screen in your minecraft projects.
Don't forget to copy assets
.
To begin with, it is worth noting that blur
and bloom
effects are quite resource-intensive things, therefore, it was possible to combine the application of the effect to several objects using the registerRenderCall()
method for both. Once you have specified all the objects, you need to call the blur()/bloom()
method and specify the radius to apply the effect.
- In the case of
bloom
, everything is simple - you register render objects with any colors to which the effect should be applied. - In the case of
blur
, in the form of objects you specify a stencil, in other words, you limit the area to which the blur will be applied.
I copied this text from the translator, sorry.