Skip to content

Commit

Permalink
fix(shared): 🐛 webGL2 Value Retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
zouyaoji committed Oct 31, 2023
1 parent 4090852 commit 4fff786
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/shared/extends/materials/MaterialExtend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @Date: 2023-08-18 00:56:13
* @Description: Do not edit
* @LastEditors: zouyaoji [email protected]
* @LastEditTime: 2023-10-31 19:38:24
* @LastEditTime: 2023-10-31 22:33:58
* @FilePath: \vue-cesium\packages\shared\extends\materials\MaterialExtend.ts
*/

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

const { Material, Color, Cartesian2 } = Cesium
const webgl2 = (viewer as any).context?.webgl2
const webgl2 = viewer.scene.context?.webgl2

let shaderSourceTextVcLine = VcLineFlowMaterial
let shaderSourceTextVcCircle = VcCircleWaveMaterial
Expand Down

0 comments on commit 4fff786

Please sign in to comment.