Declare shadow map as sampler2DShadow. • Look up shadow map using projective texturing with vec4 textureProj(sampler2D, vec4, float bias).
確定! 回上一頁