我正在研究Java + LWJGL项目。目前我正在尝试实现方差阴影贴图,但只有我在着色器中采样的第一个阴影贴图出现在正确的位置。 片段着色器: #version 330 core
in vec2 passTexCoords;
in vec4[4] shadowCoords;
//Fragment color
out vec4 out_Color;
uniform sampler2D
地图功能不工作在这条线 compPic (a:as) = map (compL a) as 它只是一个字符串而不是字符串列表上工作,你可以找到错误。 compL :: String -> String
compL bs = [a | b <- bs, a <-
if (b == ' ')
then "X"
else if (b=='X')