Skip to content

Commit ec345f6

Browse files
authored
added dashed.j3md
1 parent 66d5a5f commit ec345f6

File tree

1 file changed

+38
-0
lines changed
  • jme3-core/src/main/resources/Common/MatDefs/Dashed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
MaterialDef Dashed {
2+
MaterialParameters {
3+
Float DashSize
4+
Vector4 Color
5+
}
6+
Technique {
7+
WorldParameters {
8+
WorldViewProjectionMatrix
9+
}
10+
VertexShaderNodes {
11+
ShaderNode CommonVert {
12+
Definition : CommonVert : Common/MatDefs/ShaderNodes/Common/CommonVert.j3sn
13+
InputMappings {
14+
worldViewProjectionMatrix = WorldParam.WorldViewProjectionMatrix
15+
modelPosition = Global.position.xyz
16+
texCoord1 = Attr.inTexCoord
17+
vertColor = Attr.inColor
18+
}
19+
OutputMappings {
20+
Global.position = projPosition
21+
}
22+
}
23+
}
24+
FragmentShaderNodes {
25+
ShaderNode Dashed {
26+
Definition : Dashed : Common/MatDefs/ShaderNodes/Common/Dashed.j3sn
27+
InputMappings {
28+
texCoord = CommonVert.texCoord1
29+
inColor = MatParam.Color
30+
size = MatParam.DashSize
31+
}
32+
OutputMappings {
33+
Global.color = outColor
34+
}
35+
}
36+
}
37+
}
38+
}

0 commit comments

Comments
 (0)