You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.0 KiB
34 lines
1.0 KiB
MaterialDef Simple {
|
|
MaterialParameters {
|
|
Color Color
|
|
}
|
|
Technique {
|
|
WorldParameters {
|
|
WorldViewProjectionMatrix
|
|
}
|
|
VertexShaderNodes {
|
|
ShaderNode CommonVert {
|
|
Definition : CommonVert : Common/MatDefs/ShaderNodes/Common/CommonVert.j3sn
|
|
InputMappings {
|
|
worldViewProjectionMatrix = WorldParam.WorldViewProjectionMatrix
|
|
modelPosition = Global.position.xyz
|
|
}
|
|
OutputMappings {
|
|
Global.position = projPosition
|
|
}
|
|
}
|
|
}
|
|
FragmentShaderNodes {
|
|
ShaderNode ColorMult {
|
|
Definition : ColorMult : Common/MatDefs/ShaderNodes/Basic/ColorMult.j3sn
|
|
InputMappings {
|
|
color1 = MatParam.Color
|
|
color2 = Global.color
|
|
}
|
|
OutputMappings {
|
|
Global.color = outColor
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |