Skip to content

Commit 4fff786

Browse files
committed
fix(shared): 🐛 webGL2 Value Retrieval
1 parent 4090852 commit 4fff786

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/shared/extends/materials/MaterialExtend.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @Date: 2023-08-18 00:56:13
44
* @Description: Do not edit
55
* @LastEditors: zouyaoji 370681295@qq.com
6-
* @LastEditTime: 2023-10-31 19:38:24
6+
* @LastEditTime: 2023-10-31 22:33:58
77
* @FilePath: \vue-cesium\packages\shared\extends\materials\MaterialExtend.ts
88
*/
99

@@ -12,12 +12,13 @@ import { VcCircleWaveMaterial, VcLineFlowMaterial } from '@vue-cesium/shared/sha
1212
let isExtended = false
1313
export default class MaterialExtend {
1414
static extend(viewer: Cesium.Viewer) {
15+
console.log('asdf', viewer)
1516
if (isExtended) {
1617
return
1718
}
1819

1920
const { Material, Color, Cartesian2 } = Cesium
20-
const webgl2 = (viewer as any).context?.webgl2
21+
const webgl2 = viewer.scene.context?.webgl2
2122

2223
let shaderSourceTextVcLine = VcLineFlowMaterial
2324
let shaderSourceTextVcCircle = VcCircleWaveMaterial

0 commit comments

Comments
 (0)