three.js: texture goes all black

前端 未结 3 973
你的背包
你的背包 2021-01-22 09:14

I have a simple geometry for a box, that I\'m trying to decorate with a texture. However, my box doesn\'t show at all (or perhaps it is 100% black). This current question is evo

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-22 09:56

    I had a similar effect for a different cause: I wrote black text on a transparent background and the result was a completely black cube. I solved the issue by giving my texture png file a colour instead of leaving it transparent.

提交回复
热议问题