Skip to content

Commit e9ebf50

Browse files
authored
Add files via upload
1 parent 8de1deb commit e9ebf50

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
ShaderNodeDefinitions{
2+
ShaderNodeDefinition Dashed {
3+
Type: Fragment
4+
5+
Shader GLSL100: Common/MatDefs/ShaderNodes/Common/DashedPattern100.frag
6+
7+
Documentation{
8+
Renders dashed lines
9+
@input vec2 texCoord The texture coordinates
10+
@input float size the size of the dashes
11+
@input vec4 inColor the color of the fragment so far
12+
@outColor vec4 color the output color
13+
}
14+
Input {
15+
vec2 texCoord
16+
vec4 inColor
17+
float size
18+
}
19+
Output {
20+
vec4 outColor
21+
}
22+
}
23+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
void main(){
2+
//@input vec2 texCoord The texture coordinates
3+
//@input float size the size of the dashes
4+
//@output vec4 color the output color
5+
6+
//insert glsl code here
7+
outColor = inColor;
8+
outColor.a = step(1.0 - size, texCoord.x);
9+
}

0 commit comments

Comments
 (0)