Created
May 3, 2019 09:17
-
-
Save afeozzz/fe9fcdd6f9682b9a83ae64c3a5cc3d70 to your computer and use it in GitHub Desktop.
material for virtual cards
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
material { | |
"name" : "VirtualCard", | |
"parameters" : [ | |
{ | |
type : sampler2d, | |
name : baseColorMap | |
} | |
], | |
requires: [ | |
"uv0" | |
], | |
shadingModel: "lit", | |
blending: "transparent", | |
transparency : "twoPassesTwoSides", | |
doubleSided: true, | |
depthWrite : true | |
} | |
fragment { | |
void material(inout MaterialInputs material) { | |
prepareMaterial(material); | |
material.baseColor = texture(materialParams_baseColorMap, getUV0()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment