|
|
@ -531,29 +531,30 @@ public class PssmShadowRenderer implements SceneProcessor { |
|
|
|
} |
|
|
|
} |
|
|
|
if (applyHWShadows || mat.getParam("HardwareShadows") == null) { |
|
|
|
if (applyHWShadows || mat.getParam("HardwareShadows") == null) { |
|
|
|
mat.setBoolean("HardwareShadows", compareMode == CompareMode.Hardware); |
|
|
|
mat.setBoolean("HardwareShadows", compareMode == CompareMode.Hardware); |
|
|
|
applyHWShadows = false; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
if (applyFilterMode || mat.getParam("FilterMode") == null) { |
|
|
|
if (applyFilterMode || mat.getParam("FilterMode") == null) { |
|
|
|
mat.setInt("FilterMode", filterMode.ordinal()); |
|
|
|
mat.setInt("FilterMode", filterMode.ordinal()); |
|
|
|
applyFilterMode = false; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
if (mat.getParam("PCFEdge") == null || applyPCFEdge) { |
|
|
|
if (mat.getParam("PCFEdge") == null || applyPCFEdge) { |
|
|
|
mat.setFloat("PCFEdge", edgesThickness); |
|
|
|
mat.setFloat("PCFEdge", edgesThickness); |
|
|
|
applyPCFEdge = false; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (mat.getParam("ShadowIntensity") == null || applyShadowIntensity) { |
|
|
|
if (mat.getParam("ShadowIntensity") == null || applyShadowIntensity) { |
|
|
|
mat.setFloat("ShadowIntensity", shadowIntensity); |
|
|
|
mat.setFloat("ShadowIntensity", shadowIntensity); |
|
|
|
applyShadowIntensity = false; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (fadeInfo != null && mat.getParam("FadeInfo") == null || applyFadeInfo) { |
|
|
|
if (fadeInfo != null && mat.getParam("FadeInfo") == null || applyFadeInfo) { |
|
|
|
mat.setVector2("FadeInfo", fadeInfo); |
|
|
|
mat.setVector2("FadeInfo", fadeInfo); |
|
|
|
applyFadeInfo = false; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
applyHWShadows = false; |
|
|
|
|
|
|
|
applyFilterMode = false; |
|
|
|
|
|
|
|
applyPCFEdge = false; |
|
|
|
|
|
|
|
applyShadowIntensity = false; |
|
|
|
|
|
|
|
applyFadeInfo = false; |
|
|
|
|
|
|
|
|
|
|
|
//At least one material of the receiving geoms does not support the post shadow techniques
|
|
|
|
//At least one material of the receiving geoms does not support the post shadow techniques
|
|
|
|
//so we fall back to the forced material solution (transparent shadows won't be supported for these objects)
|
|
|
|
//so we fall back to the forced material solution (transparent shadows won't be supported for these objects)
|
|
|
|
if (needsfallBackMaterial) { |
|
|
|
if (needsfallBackMaterial) { |
|
|
|