diff --git a/data/shader/phong.fsh b/data/shader/phong.fsh index e9edd68..c65e03a 100644 --- a/data/shader/phong.fsh +++ b/data/shader/phong.fsh @@ -32,6 +32,17 @@ uniform samplerCubeShadow shadowMap_cube11; uniform samplerCubeShadow shadowMap_cube12; uniform samplerCubeShadow shadowMap_cube13; uniform samplerCubeShadow shadowMap_cube14; +uniform samplerCubeShadow shadowMap_cube15; +uniform samplerCubeShadow shadowMap_cube16; +uniform samplerCubeShadow shadowMap_cube17; +uniform samplerCubeShadow shadowMap_cube18; +uniform samplerCubeShadow shadowMap_cube19; +uniform samplerCubeShadow shadowMap_cube20; +uniform samplerCubeShadow shadowMap_cube21; +uniform samplerCubeShadow shadowMap_cube22; +uniform samplerCubeShadow shadowMap_cube23; +uniform samplerCubeShadow shadowMap_cube24; +uniform samplerCubeShadow shadowMap_cube25; uniform vec3 ambientColor; uniform float ambientFactor; uniform float diffuseFactor; @@ -334,6 +345,39 @@ void main() if (i == 14 && icube_size = 0; } - if (maxShadowRenderCount < 15) { + if (maxShadowRenderCount < maxShadowSampleCount) { this->maxShadowRenderCount = maxShadowRenderCount; } else {