Ça y est l'effet de blur est normalement fonctionnel.
En gros ça fonctionne comme ça:
Je crée une texture de masque, en blanc là ou il y a du blur a afficher et noir le reste, elle est uniquement maj quand necessaire.
je change le framebuffer avant de dessiner le jeu ou le background du menu principal, ça permet de dessiner la scene non pas a l'ecran mais dans une texture
j'applique l'effet de blur a l'aide de la texture precedement créé et du masque
Ça y est l'effet de blur est normalement fonctionnel.
En gros ça fonctionne comme ça:
et voilà 😅
Si ça vous interesse d'en savoir plus: https://learnopengl.com/Advanced-OpenGL/Framebuffers https://www.youtube.com/watch?v=uZlwbWqQKpc https://learnopengl.com/Advanced-Lighting/Bloom
Close #244