Hello,
So here is what I am doing.
I am adding a WMS through the usual WebMapServiceImageryProvider, including an extent as a parameter;
var limitedTest = new Cesium.Extent(
Cesium.Math.toRadians(-58.84),
Cesium.Math.toRadians(87.155),
Cesium.Math.toRadians(90.92),
Cesium.Math.toRadians(88.18));
smWMS = new Cesium.WebMapServiceImageryProvider({
url: 'http://someURL/wms?’,
layers: layerArray,
extent: limitedTest,
parameters: {
transparent: ‘true’,
format: ‘image/png’
}
});
cb.getImageryLayers().addImageryProvider(smWMS);
So it adds it fine. And on load, I can see the WMS rendering. However when I zoom in over the area I of that extent, I always get this:
-
[GL] Shader program link log: Pixel shader sampler count exceeds MAX_TEXTURE_IMAGE_UNITS (16).
Cesium.js:79381
-
createAndLinkProgramCesium.js:79381
-
ShaderProgramCesium.js:79083
-
Context.createShaderProgramCesium.js:82725
-
ShaderCache.getShaderProgramCesium.js:77147
-
CentralBodySurfaceShaderSet.getShaderProgramCesium.js:96170
-
createRenderCommandsForSelectedTilesCesium.js:96003
-
CentralBodySurface.updateCesium.js:95141
-
CentralBody.updateCesium.js:97846
-
CompositePrimitive.updateCesium.js:98563
-
updatePrimitivesCesium.js:105784
-
Scene.renderCesium.js:105841
-
tickmainv02.js:139
-
Uncaught RuntimeError: Program failed to link. Link log: Pixel shader sampler count exceeds MAX_TEXTURE_IMAGE_UNITS (16).
Error
at new RuntimeError (http://localhost:8081/Showcase/Magellium/NGI_Experimental/js/Cesium23/CesiumUnminified/Cesium.js:6785:17 )
at createAndLinkProgram (http://localhost:8081/Showcase/Magellium/NGI_Experimental/js/Cesium23/CesiumUnminified/Cesium.js:79382:19 )
at new ShaderProgram (http://localhost:8081/Showcase/Magellium/NGI_Experimental/js/Cesium23/CesiumUnminified/Cesium.js:79083:23 )
at Context.createShaderProgram (http://localhost:8081/Showcase/Magellium/NGI_Experimental/js/Cesium23/CesiumUnminified/Cesium.js:82725:16 )
at ShaderCache.getShaderProgram (http://localhost:8081/Showcase/Magellium/NGI_Experimental/js/Cesium23/CesiumUnminified/Cesium.js:77147:36 )
at CentralBodySurfaceShaderSet.getShaderProgram (http://localhost:8081/Showcase/Magellium/NGI_Experimental/js/Cesium23/CesiumUnminified/Cesium.js:96170:47 )
at createRenderCommandsForSelectedTiles (http://localhost:8081/Showcase/Magellium/NGI_Experimental/js/Cesium23/CesiumUnminified/Cesium.js:96003:55 )
at CentralBodySurface.update (http://localhost:8081/Showcase/Magellium/NGI_Experimental/js/Cesium23/CesiumUnminified/Cesium.js:95141:9 )
at CentralBody.update (http://localhost:8081/Showcase/Magellium/NGI_Experimental/js/Cesium23/CesiumUnminified/Cesium.js:97846:27 )
at CompositePrimitive.update (http://localhost:8081/Showcase/Magellium/NGI_Experimental/js/Cesium23/CesiumUnminified/Cesium.js:98563:31) Cesium.js:79382
-
createAndLinkProgramCesium.js:79382
-
ShaderProgramCesium.js:79083
-
Context.createShaderProgramCesium.js:82725
-
ShaderCache.getShaderProgramCesium.js:77147
-
CentralBodySurfaceShaderSet.getShaderProgramCesium.js:96170
-
createRenderCommandsForSelectedTilesCesium.js:96003
-
CentralBodySurface.updateCesium.js:95141
-
CentralBody.updateCesium.js:97846
-
CompositePrimitive.updateCesium.js:98563
-
updatePrimitivesCesium.js:105784
-
Scene.renderCesium.js:105841
-
tickmainv02.js:139
Sorry for the length, but I thought all of it might help. Does anyone know what that means?
The strange thing is, I never get this, if I add the WMS without the limited extent.
Thanks for any help.
Toby