Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to blend color and texture for ViroMaterial? #293

Open
claytonrothschild opened this issue May 15, 2024 · 1 comment
Open

How to blend color and texture for ViroMaterial? #293

claytonrothschild opened this issue May 15, 2024 · 1 comment

Comments

@claytonrothschild
Copy link

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.

Copy link

linear bot commented May 15, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant