【问题标题】:Dat.gui for opacityDat.gui 用于不透明度
【发布时间】:2013-04-06 19:51:08
【问题描述】:

我需要使用以下命令在 dat.gui 上放置一个透明模型 stl:

gui.add(opacity_model, 'model').onChange(function(){

                if (opacity_model, 'model' ==  true) {
                    material.opacity = 0.0;


                } else {

                    material.opacity = 1.0
                }

}

但它不会改变模型的不透明度。

【问题讨论】:

    标签: three.js dat.gui


    【解决方案1】:

    也尝试设置 material.transparent = true;或假;

    【讨论】:

      猜你喜欢
      • 2012-03-05
      • 1970-01-01
      • 2012-03-17
      • 2013-06-13
      • 2014-07-27
      • 2014-01-05
      • 2013-06-05
      • 1970-01-01
      • 2011-11-26
      相关资源
      最近更新 更多