I'm doing a shadow map lookup with the following function:
I am having some trouble with the depth value of the vec4 texture coordinate, and I want to eliminate one possible source of confusion. I assume the x, y, and z values just get multiplied by the w value, right? So the two vectors below would be functionally equivalent:Code :texture(samplerCubeShadow sampler, vec4 coord)
Is this correct?Code :vec4(1,2,3,1) vec4(0.5,1,1.5,0.5)



Reply With Quote
