Shadow map - how to properly create a render target? (SOLVED)

Thank you very much @Dragosha ! :heart:

Regarding 1. :
Do you have some tips on how to define view and projection matrices for given source of light? Camera component gives me matrices, but am I thinking correctly if I think about utilizing some cameras placed in point_light.go just for the purpose of giving me matrices? OR is there a better approach?

EDIT: Ok, both Lights and Shadows and Jhonny’s Shadow mapping example create those matrices in code. I wonder if my idea of utilising a camera component for this is impossible/nonoptimal to use? Isn’t the camera component mainly for this - doing a hard work of giving you the correct matrices from what you can set up in the Editor?