-
Notifications
You must be signed in to change notification settings - Fork 640
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: regl bool 兼容问题导致raster terrain rgb 不能显示 * chore: 移除未使用函数 * chore: commit changeset
- Loading branch information
Showing
4 changed files
with
49 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
'@antv/l7-layers': patch | ||
'@antv/l7-component': patch | ||
'@antv/l7-core': patch | ||
'@antv/l7': patch | ||
'@antv/l7-map': patch | ||
'@antv/l7-maps': patch | ||
'@antv/l7-renderer': patch | ||
'@antv/l7-scene': patch | ||
'@antv/l7-source': patch | ||
'@antv/l7-test-utils': patch | ||
'@antv/l7-three': patch | ||
'@antv/l7-utils': patch | ||
--- | ||
|
||
fix regl bool uniform |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,3 @@ | ||
export function formatUniformsOption2Std140(uniformsOption: { [key: string]: any }) { | ||
let std140_str = ''; | ||
Object.keys(uniformsOption).forEach((key) => { | ||
const value = uniformsOption[key]; | ||
if (Array.isArray(value)) { | ||
std140_str += `vec${value.length} ${key};\n`; | ||
} else { | ||
std140_str += `flot ${key};\n`; | ||
} | ||
}); | ||
return std140_str; | ||
} | ||
|
||
export function MultipleOfFourNumber(num: number) { | ||
return Math.max(Math.ceil(num / 4) * 4, 4); | ||
} |