-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Fixes: "Axes2D flickering #1341" * Added package-lock.json * In progress * Made font atlas png image inline. * Lint fix. * Code comment fix. Use webpack to load image. * Removed unused package * Fixed ts condition. * Fixed some ts type conditions. Co-authored-by: Havard Bjerke <[email protected]>
- Loading branch information
Showing
12 changed files
with
506 additions
and
287 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
17 changes: 17 additions & 0 deletions
17
react/src/lib/components/DeckGLMap/layers/axes2d/axes-fragment.glsl.js
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,17 @@ | ||
export default `\ | ||
#version 300 es | ||
#define SHADER_NAME graph-layer-fragment-shader | ||
precision highp float; | ||
out vec4 fragColor; | ||
uniform sampler2D fontTexture; | ||
in vec2 _vTexCoord; | ||
void main(void) { | ||
vec4 color = texture(fontTexture, _vTexCoord); | ||
fragColor = color; | ||
} | ||
`; |
15 changes: 0 additions & 15 deletions
15
react/src/lib/components/DeckGLMap/layers/axes2d/axes-fragment.glsl.ts
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
react/src/lib/components/DeckGLMap/layers/axes2d/axes-vertex.glsl.js
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,20 @@ | ||
export default `\ | ||
#version 300 es | ||
#define SHADER_NAME graph-layer-axis-vertex-shader | ||
precision highp float; | ||
in vec3 positions; | ||
in vec2 vTexCoord; | ||
out vec2 _vTexCoord; | ||
uniform mat4 projectionMatrix; | ||
void main(void) { | ||
_vTexCoord = vTexCoord; | ||
vec3 position_commonspace = positions; // These positions are in view space. | ||
gl_Position = projectionMatrix * vec4(position_commonspace, 1.0); // From viewspace to clip | ||
} | ||
`; |
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.