Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Git hooks must keep LF line endings so their shebang line runs on Windows too
# (core.autocrlf=true would otherwise check them out with CRLF and break execution).
.husky/** text eol=lf
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env sh
[ -n "$CI" ] && exit 0

npx --no-install commitlint --edit $1
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env sh
[ -n "$CI" ] && exit 0

npm run lint
14 changes: 0 additions & 14 deletions src/glsl.d.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#version 300 es
export default `#version 300 es

precision highp float;

Expand Down Expand Up @@ -154,3 +154,4 @@ void main() {
fragColor = edgeColor;
}
}
`;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#version 300 es
export default `#version 300 es

precision highp float;

Expand Down Expand Up @@ -99,3 +99,4 @@ void main() {
vec2 clip = (screenPos / uResolution) * 2.0 - 1.0;
gl_Position = vec4(clip.x, -clip.y, 0.0, 1.0);
}
`;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#version 300 es
export default `#version 300 es

precision highp float;

Expand All @@ -13,3 +13,4 @@ void main() {
if (texel.a < 0.01) discard;
fragColor = texel;
}
`;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#version 300 es
export default `#version 300 es

in vec2 aQuadPosition;

Expand All @@ -23,3 +23,4 @@ void main() {
vec2 uv01 = aQuadPosition * 0.5 + 0.5;
vAtlasUV = mix(aLabelUV0, aLabelUV1, uv01);
}
`;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#version 300 es
export default `#version 300 es

precision highp float;

Expand Down Expand Up @@ -160,3 +160,4 @@ void main() {
fragColor = nodeColor;
}
}
`;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#version 300 es
export default `#version 300 es

precision highp float;

Expand Down Expand Up @@ -62,3 +62,4 @@ void main() {
vec2 clip = (screenPos / uResolution) * 2.0 - 1.0;
gl_Position = vec4(clip.x, -clip.y, 0.0, 1.0);
}
`;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#version 300 es
export default `#version 300 es

precision highp float;

Expand Down Expand Up @@ -195,3 +195,4 @@ void main() {

fragColor = vec4(pos, vel);
}
`;
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#version 300 es
export default `#version 300 es

in vec2 aPosition;

void main() {
gl_Position = vec4(aPosition, 0.0, 1.0);
}
`;
6 changes: 1 addition & 5 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,10 @@ const commonConfiguration = {
use: 'ts-loader',
exclude: '/node_modules/',
},
{
test: /\.(glsl|vert|frag)$/,
type: 'asset/source',
},
],
},
resolve: {
extensions: ['.tsx', '.ts', '.js', '.glsl', '.vert', '.frag'],
extensions: ['.tsx', '.ts', '.js'],
},
output: {
chunkFilename(pathData) {
Expand Down