Hello all,
I was working with omnidirectional shadowmapping using cube maps in order to make point light shadows. Unfortunately they are not working. They're actually breaking my entire drawings. I create and bind the cube map successfully, draw a depth map to it, then I try to sample it in my shaders. My cube map does draw successfully (I checked with apitrace, the depth maps do draw correctly).
I bind it to the renderer and it seems to have binded to the shader fine, but I call textureCube and it returns a weird float value that is completely incapable of returning true, false, or otherwise. I think it's an error, but I don't know why.
Even if the samplerCube isn't set correctly though, textureCube would then return 0.0 I would think. So why does it return an error?
P.S. I tried to check NaN and Inf, it is neither.