I implemented simple screen space decals, but the code needs a bit cleanup. They are not projected by using an orthographic projection, but rather a unit size cube. When rendering the cube, it gets transformed back to object space. Then, since we have a unit length cube, we can calculate the texture coordinates by simply adding 0.5f to the coordinates.