Files
filament/samples/materials/groundShadow.mat
Romain Guy 108dae11e9 Add ground shadow option to gltf_viewer (#2174)
* Add ground shadow option to gltf_viewer

The shadow is always positioned at the bottom of the loaded object's
bounding box to ground it perfectly.

* Remove unused include
2020-02-26 17:09:31 -08:00

14 lines
283 B
Plaintext

material {
name : groundShadow,
blending : transparent,
shadingModel : unlit,
shadowMultiplier : true,
}
fragment {
void material(inout MaterialInputs material) {
prepareMaterial(material);
material.baseColor = vec4(0.0, 0.0, 0.0, 0.75);
}
}