I am following this tutorial: here I am at the part where you are creating a hemicube. I have got the code to render the scene into a texture and therfore an array.
Now how can I generate a so-called "multiplier map" for use given these parameters: width, height, camera location, camera direction/normal.
I want the multiplier map to be stored in an array like this:
unsigned char* mult0 = new unsigned char[width*height];
I will have 5 of these maps for each side of the hemicube.