How to blend color and texture for ViroMaterial?
claytonrothschild opened this issue Β· comments
ViroMaterials.createMaterials({
spherematerial: {
diffuseColor: "##ff0000", // red
diffuseTexture: require("./assets/checkerboard.png"),
{
The checkerboard is a png with transparency, such that the diffuse color should show through the transparent part.
I would imagine this would work based on the documentation. However the diffuseColor is ignored. Any suggestions appreciated.