パターンのサンプル


agate average bozo
texture {
 pigment {
  agate
 }
 finish {
  ambient .3
 }
 scale .3
}
#declare myPig1 = 
pigment {
 radial
 frequency 2
 rotate <90,0,0>
}

#declare myPig2 = 
pigment {
 wood
}
#declare myTex = 
texture {
 pigment {
  average
  pigment_map {
  [1.0  myPig1]
  [0.5  myPig2]
    }
 }
 finish {
  ambient .3
 }
 scale .2
}
texture {
 pigment {
  bozo
 }
 finish {
  ambient .2
 }
 scale .3
}

boxed brick bumps
#declare myTex = 
texture {
 pigment {
  boxed
  color_map{
   [0 color rgb <1,1,1>]
   [1 color rgb <0,0,1>]
  } }
 finish {
  ambient .3
 }
 scale 1
}
//---------
object {
 sphere {<0,0,0>,1}
 texture {
  myTex
  translate <0,1,0>
 }
 translate <1, 1, 0>
}
object {
 box {<-1,-1,-1>,<1,1,1>}
 texture {
  myTex
  translate <0,1,0>
 }
 translate <-1, 1, 0>
}
texture {
 pigment {
  brick
 }
 finish {
  ambient .3
 }
 scale .1
}
texture {
 pigment {
  bumps
  color_map{
   [0 color rgb 1]
   [1 color rgb <0,0,1>]
  }
 }
 finish {
  ambient .3
 }
 scale .2
}

cells checker crackle
texture {
 pigment {
  cells
  color_map{
   [0 color rgb 1]
   [1 color rgb <0,0,1>]
  }
 }
 finish {
  ambient .3
 }
 scale .3
}
texture {
 pigment {
  checker
 }
 finish {
  ambient .2
 }
 scale .4
}
texture {
 pigment {
  crackle
  color_map{
   [0 color rgb 1]
   [1 color rgb <0,0,1>]
  }
 }
 finish {
  ambient .3
 }
 scale .4
}

cylindrical dents mandel
texture {
 pigment {
  cylindrical
  color_map{
   [0 color rgb 1]
   [.5 color rgb <1,0,0>]
   [1 color rgb <0,0,1>]
  }
 }
 finish {
  ambient .3
 }
 scale 1
}
texture {
 pigment {
  dents
  color_map{
   [0 color rgb 1]
   [1 color rgb <0,0,1>]
  }
 }
 finish {
  ambient .3
 }
 scale .25
}
texture {
 pigment {
  mandel 500
 }
 finish {
  ambient .3
 }
 scale 1
}

julia gradient granite
texture {
 pigment {
  julia <0.3,0.8>,10
  color_map{
   [0 color rgb <1,0,0>]
   [1 color rgb <0,1,0>]
  }
  }
 finish {
  ambient 1
 }
 scale 1.2
}
texture {
 pigment {
  gradient y
  color_map{
   [0 color rgb <1,1,0>]
   [.5 color rgb <1,0,0>]
   [1 color rgb <0,0,1>]
  }
 }
 finish {
  ambient .3
 }
 scale .9
}
texture {
 pigment {
  granite
  color_map{
   [0 color rgb <1,1,1>]
   [1 color rgb <0,0,1>]
  }
 }
 finish {
  ambient .3
 }
 scale 1
}

hexagon leopard marble
texture {
 pigment {
  hexagon
   color rgb<1,1,0>
   color rgb<1,0,1>
   color rgb<0,1,1>
 }
 finish {
  ambient .3
 }
 rotate <90, 0, 0>
 scale .25
}
texture {
 pigment {
  leopard
  color_map{
   [0 color rgb <1,1,1>]
   [1 color rgb <0,0,1>]
  }
 }
 finish {
  ambient .3
 }
 scale .1
}
texture {
 pigment {
  marble
  turbulence 1.0
 }
 finish {
  ambient .3
 }
 scale .5
}

object-pattern onion planar
texture {
 pigment {
  object {
    sphere { <0,0,0>, 1 }
    color rgb <0,1,0>,
    color rgb <0,0,1>
  }
  }
 finish {
  ambient .3
 }
 scale 1
}
texture {
 pigment {
  onion
  color_map{
   [0 color rgb <1,1,1>]
   [1 color rgb <0,0,1>]
  }
 }
 finish {
  ambient .3
 }
 scale .2
}
texture {
 pigment {
  planar
  color_map{
   [0 color rgb <1,1,1>]
   [1 color rgb <0,0,1>]
  }
 }
 finish {
  ambient .3
 }
}

quilted radial ripples
texture {
 pigment {
  quilted
  color_map{
   [0 color rgb <1,1,1>]
   [1 color rgb <0,0,1>]
  }
 }
 finish {
  ambient .3
 }
 scale .75
}
texture {
 pigment {
  radial
  frequency 3
  color_map{
   [0 color rgb <0,0,1>]
   [.3 color rgb <1,1,0>]
   [.6 color rgb <0,1,1>]
   [1 color rgb <0,0,1>]
  }
 }
 finish {
  ambient .3
 }
 rotate <90, 0, 0>
 scale .75
}
texture {
 pigment {
  ripples
  color_map{
   [0 color rgb <1,1,1>]
   [1 color rgb <0,0,1>]
  }
 }
 finish {
  ambient .3
 }
 scale .2
}

slope spherical spiral1
texture {
 pigment {
  slope {y}
  color_map{
   [0 color rgb <1,1,0>]
   [1 color rgb <0,0,1>]
  } }
 finish {
  ambient .3
 }
 scale 1
}
texture {
 pigment {
  spherical
  color_map{
   [0 color rgb <1,1,1>]
   [1 color rgb <0,0,1>]
  } }
 finish {
  ambient .3
 }
 scale 1
}
//---------
object {
 sphere { <0, 0, 0>, 1 }
 texture {
  myTex
  translate <0,1,0>
 }
 translate <1, 1, 0>
}
object {
 box {<-1,-1,-1>,<1,1,1>}
 texture {
  myTex
  translate <0,1,0>
 }
 translate <-1, 1, 0>
}
texture {
 pigment {
  spiral1 5
  color_map{
   [0 color rgb <1,1,1>]
   [1 color rgb <0,0,1>]
  }
 }
 finish {
  ambient .3
 }
 scale .5
}

spiral2 spotted waves
texture {
 pigment {
  spiral2 5
  color_map{
   [0 color rgb <1,1,1>]
   [1 color rgb <0,0,1>]
  }
 }
 finish {
  ambient .3
 }
 scale .75
}
texture {
 pigment {
  spotted
  color_map{
   [0 color rgb <1,1,1>]
   [1 color rgb <0,0,1>]
  }
 }
 finish {
  ambient .3
 }
 scale .2
}
texture {
 pigment {
  waves
  color_map{
   [0 color rgb <1,1,1>]
   [1 color rgb <0,0,1>]
  }
 }
 finish {
  ambient .3
 }
 scale .1
}

wood wrinkles
texture {
 pigment {
  wood
 }
 finish {
  ambient .3
 }
 scale .2
}
texture {
 pigment {
  wrinkles
  color_map{
   [0 color rgb <1,1,1>]
   [1 color rgb <0,0,1>]
  }
 }
 finish {
  ambient .3
 }
 scale .5
}

上記の例は,pigment内で適用したときのパターンのサンプルです。上記の例の中には,オブジェクト内でテクスチャを移動しているものもあります。density_file,facets,image_pattern,pigment_patternについては例を挙げていません。


戻る