3d-dice / dice-box-threejs

3D Dice implemented with ThreeJS and Cannon ES
MIT License
32 stars 10 forks source link

allow custom textures as an option #8

Open sayaad opened 10 months ago

sayaad commented 10 months ago

The resulting configuration option would look like this:

theme_customColorset: {
  background: "#ffffff00",
  foreground: "#000000ff",
  custom_texture: {
    name: "Pepe",
    composite: "multiply",
    source: "/pepe.jpg",
    source_bump: "",
    material: "ice",
  },
},