Hello Cesium Community,
I am working on a CesiumJS application that is built using Webpack. My goal is to add a rectangle primitive with an image on it. While the code works perfectly in a simple Cesium environment, I encounter the following runtime error when running the application within my Webpack setup:Vertex texture fetch support is required to render primitives with per-instance attributes. The maximum number of vertex texture image units must be greater than zero.
Error
at new RuntimeError (http://localhost:8081/plugin/layer-primitive/dev/vendor.bundle.js:55062:11)
at Primitive.update (http://localhost:8081/plugin/layer-primitive/dev/vendor.bundle.js:92424:13)
at PrimitiveCollection.update (http://localhost:8081/plugin/map-cesium/dev/cesium.bundle.js:300209:19)
at PrimitiveCollection.update (http://localhost:8081/plugin/map-cesium/dev/cesium.bundle.js:300209:19)
at updateAndRenderPrimitives (http://localhost:8081/plugin/map-cesium/dev/cesium.bundle.js:310677:21)
at executeCommandsInViewport (http://localhost:8081/plugin/map-cesium/dev/cesium.bundle.js:310444:3)
at Scene.updateAndExecuteCommands (http://localhost:8081/plugin/map-cesium/dev/cesium.bundle.js:310189:5)
at Picking.pick (http://localhost:8081/plugin/map-cesium/dev/cesium.bundle.js:285040:9)
at Scene.pick (http://localhost:8081/plugin/map-cesium/dev/cesium.bundle.js:311453:24)
at PrimitiveProvider.onMouseMove (http://localhost:8081/plugin/layer-primitive/dev/__federation_expose_main.bundle.js:1410:44)
I have ensured that my WebGL capabilities support vertex texture fetch (verified Max Vertex Texture Image Units: 32
). Additionally, I am using the same version of Cesium in both environments, but still encountering the issue in the Webpack-based application.
Any insights or suggestions on how to resolve this runtime error would be greatly appreciated.
Thank you!