-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into chr/widgets-in-json
- Loading branch information
Showing
675 changed files
with
13,412 additions
and
159 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
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
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// deck.gl | ||
// SPDX-License-Identifier: MIT | ||
// Copyright (c) vis.gl contributors | ||
|
||
import type {Texture} from '@luma.gl/core'; | ||
import type {ShaderModule} from '@luma.gl/shadertools'; | ||
|
||
const uniformBlock = `\ | ||
uniform axesUniforms { | ||
float fontSize; | ||
vec3 gridCenter; | ||
vec3 gridDims; | ||
float gridOffset; | ||
float labelHeight; | ||
vec3 labelWidths; | ||
vec4 strokeColor; | ||
} axes; | ||
`; | ||
|
||
export type AxesProps = { | ||
fontSize: number; | ||
gridCenter: [number, number, number]; | ||
gridDims: [number, number, number]; | ||
gridOffset: number; | ||
labelHeight: number; | ||
labelWidths: [number, number, number]; | ||
strokeColor: [number, number, number, number]; | ||
labelTexture: Texture; | ||
}; | ||
|
||
export const axesUniforms = { | ||
name: 'axes', | ||
vs: uniformBlock, | ||
fs: uniformBlock, | ||
uniformTypes: { | ||
fontSize: 'f32', | ||
gridCenter: 'vec3<f32>', | ||
gridDims: 'vec3<f32>', | ||
gridOffset: 'f32', | ||
labelHeight: 'f32', | ||
labelWidths: 'vec3<f32>', | ||
strokeColor: 'vec4<f32>' | ||
} | ||
} as const satisfies ShaderModule<AxesProps>; |
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
Oops, something went wrong.