ReactVision / viro

ViroReact: The AR and VR library for React Native πŸ“³πŸ’™πŸ’›πŸ€πŸ’š

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.