but there is a built-in GLSL function since this is common: if ( textureProj( shadowMap, ShadowCoord.xyw ).z < (ShadowCoord.z-bias)/ShadowCoord.w ) {.
確定! 回上一頁