Skip to content

Instantly share code, notes, and snippets.

@afeozzz
Created May 3, 2019 09:17
Show Gist options
  • Save afeozzz/fe9fcdd6f9682b9a83ae64c3a5cc3d70 to your computer and use it in GitHub Desktop.
Save afeozzz/fe9fcdd6f9682b9a83ae64c3a5cc3d70 to your computer and use it in GitHub Desktop.
material for virtual cards
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