Skip to content

Commit

Permalink
feat: 删除一些无用代码
Browse files Browse the repository at this point in the history
  • Loading branch information
huyang committed Dec 1, 2023
1 parent 54c3a60 commit 9463b21
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 6 additions & 0 deletions dev-demos/features/point/pointFillImage.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
group:
title:
order: 1
---
### point - fillImage
```tsx
import { PointLayer, Scene } from '@antv/l7';
Expand All @@ -9,6 +14,7 @@ export default () => {

const scene = new Scene({
id: 'point_fillImage',
// renderer: 'device',
map: new GaodeMap({
style: 'light',
center: [120, 30],
Expand Down
3 changes: 0 additions & 3 deletions packages/layers/src/point/models/radar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,10 @@ export default class RadarModel extends BaseModel {
}
protected getCommonUniformsInfo(): { uniformsArray: number[]; uniformsLength: number; uniformsOption:{[key: string]: any} } {
const {
opacity = 1,
blend,
speed = 1,
unit = 'pixel',
} = this.layer.getLayerConfig() as IPointLayerStyleOptions;
// const { animateOption = { enable: false } } =
// this.layer.getLayerConfig() as ILayerConfig;
const commonOptions = {
u_additive: blend === 'additive' ? 1.0 : 0.0,
u_size_unit: SizeUnitType[unit] as SizeUnitType,
Expand Down
2 changes: 0 additions & 2 deletions packages/layers/src/point/shaders/image/fillImage_frag.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ layout(std140) uniform uBlock {


void main() {

vec2 pos = v_Iconuv / u_textSize + v_uv / u_textSize * 64.;
outputColor = texture(u_texture, pos);
outputColor.a *= v_opacity;

outputColor = filterColor(outputColor);
}

0 comments on commit 9463b21

Please sign in to comment.