File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed
jme3-core/src/main/resources/Common/MatDefs/ShaderNodes/Common Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments