【问题标题】:POVRay "Contour line" TexturePOVRay“轮廓线”纹理
【发布时间】:2010-12-31 03:42:43
【问题描述】:

谁能告诉我如何使用 POVRay 纹理执行以下操作...

//PseudoCode
texture {
    pigment {
        if(y mod 5 == 0) {
            color rgb 0
        } else {
            color rgb 1
        }
    }
}

ie - 我想获得等值线

【问题讨论】:

    标签: 3d textures povray


    【解决方案1】:

    为什么不使用简单的渐变?

    pigment {
      gradient y       
      color_map {
        [0.0  color rgb 0]
        [0.8  color rgb 0]
        [0.8  color rgb 1]
        [1.0  color rgb 1]
      }
      scale 5
    }
    

    【讨论】:

    • 别问我为什么,我什至没有想到——谢谢
    猜你喜欢
    • 1970-01-01
    • 2018-04-16
    • 1970-01-01
    • 1970-01-01
    • 2018-06-21
    • 2013-01-01
    • 2020-07-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多