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