const customShader = new Cesium.CustomShader({
lightingModel: Cesium.LightingModel.UNLIT,
uniforms: {
u_cameraDirectionWC: {
type: Cesium.UniformType.VEC3,
value: WE.viewer.scene.camera.positionWC,
},
u_lightColor1: {
type: Cesium.UniformType.VEC4,
value: lightPoint1.color,
},
u_lightPos1: {
type: Cesium.UniformType.VEC3,
value: lightPoint1.postion,
},
u_lightColor2: {
type: Cesium.UniformType.VEC4,
value: lightPoint2.color,
},
u_lightPos2: {
type: Cesium.UniformType.VEC3,
value: lightPoint2.postion,
},
u_lightColor3: {
type: Cesium.UniformType.VEC4,
value: lightPoint3.color,
},
u_lightPos3: {
type: Cesium.UniformType.VEC3,
value: lightPoint3.postion,
},
},
fragment