-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
88 additions
and
25 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,65 @@ | ||
{ | ||
"width": 256, | ||
"height": 128, | ||
"command": { | ||
"insertCaps": true, | ||
"vert": [ | ||
"precision highp float;", | ||
"#pragma lines: attribute vec2 xy", | ||
"#pragma lines: position = getPosition(xy)", | ||
"#pragma lines: width = getWidth()", | ||
"float getWidth() { return 20.0; }", | ||
"vec4 getPosition(vec2 xy) {", | ||
" return vec4(xy, 0, 1);", | ||
"}" | ||
], | ||
"frag": [ | ||
"precision lowp float;", | ||
"void main () {", | ||
" gl_FragColor = vec4(0,0,0,0.5);", | ||
"}" | ||
], | ||
"blend": { | ||
"enable": true, | ||
"func": { | ||
"srcRGB": "src alpha", | ||
"srcAlpha": 1, | ||
"dstRGB": "one minus src alpha", | ||
"dstAlpha": 1 | ||
} | ||
}, | ||
"depth": { | ||
"enable": false | ||
} | ||
}, | ||
"vertexAttributes": { | ||
"xy": [ | ||
[null, null], | ||
|
||
[-0.8, 0.5], | ||
[-0.3, 0.7], | ||
[0.3, 0.5], | ||
[0.8, 0.7], | ||
|
||
[null, null], | ||
|
||
[-0.8, -0.1], | ||
[-0.3, 0.1], | ||
[0.3, -0.1], | ||
[0.8, 0.1], | ||
|
||
[null, null], | ||
|
||
[-0.8, -0.7], | ||
[-0.3, -0.5], | ||
[0.3, -0.7], | ||
[0.8, -0.5], | ||
|
||
[null, null] | ||
] | ||
}, | ||
"data": { | ||
"join": "miter", | ||
"cap": "round" | ||
} | ||
} |