]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - render.h
reuse screenspace depth texture unit for orthographic shadowmaps so they can coexist...
[xonotic/darkplaces.git] / render.h
index ee9e7590eef0d4d9bd9a675fe940e0d76698ac1d..23b6b31400ad67a91251624df0dc47f6d0b58499 100644 (file)
--- a/render.h
+++ b/render.h
@@ -452,6 +452,9 @@ typedef enum gl20_texunit_e
        GL20TU_SHADOWMAPCUBE = 11,
        GL20TU_SHADOWMAP2D = 11,
        GL20TU_CUBEPROJECTION = 12,
+       // orthographic-projection shadowmapping, reuses prepass screenspace depth, so must fix later if the two could ever coexist during final deferred lighting pass
+       GL20TU_SHADOWMAPORTHORECT = 13,
+       GL20TU_SHADOWMAPORTHO2D = 13,
        // rtlight prepass data (screenspace depth and normalmap)
        GL20TU_SCREENDEPTH = 13,
        GL20TU_SCREENNORMALMAP = 14,