diff options
Diffstat (limited to 'src/Runtime/ogl-runtime/res/effectlib/shadowMappingFragment.glsllib')
m--------- | src/Runtime/ogl-runtime | 0 | ||||
-rw-r--r-- | src/Runtime/ogl-runtime/res/effectlib/shadowMappingFragment.glsllib | 10 |
2 files changed, 0 insertions, 10 deletions
diff --git a/src/Runtime/ogl-runtime b/src/Runtime/ogl-runtime new file mode 160000 +Subproject 2025912174c4cf99270b7439ec3b021e1d089ae diff --git a/src/Runtime/ogl-runtime/res/effectlib/shadowMappingFragment.glsllib b/src/Runtime/ogl-runtime/res/effectlib/shadowMappingFragment.glsllib deleted file mode 100644 index 660d736a..00000000 --- a/src/Runtime/ogl-runtime/res/effectlib/shadowMappingFragment.glsllib +++ /dev/null @@ -1,10 +0,0 @@ -#include "depthpass.glsllib" -float FragmentParaboloidDepth( vec4 inWorldPos, mat4 inMVP, vec2 inCameraProperties ) -{ - if (inWorldPos.w < 0.0) - discard; - vec4 projVec = inMVP * vec4( inWorldPos.xyz, 1.0 ); - projVec /= projVec.w; - projVec.z = depthValueToLinearDistance( 1.0 - projVec.z, inCameraProperties ); - return (projVec.z - inCameraProperties.x) / (inCameraProperties.y - inCameraProperties.x); -} |