Skip to content

How to blend color and texture for ViroMaterial? #293

@claytonrothschild

Description

@claytonrothschild
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions