POV-Ray : Newsgroups : povray.advanced-users : multipigment surface : Re: multipigment surface Server Time
26 Jun 2024 08:16:48 EDT (-0400)
  Re: multipigment surface  
From: Zeger Knaepen
Date: 28 Jul 2011 18:25:01
Message: <4e31e1bd@news.povray.org>
On 28/07/2011 21:25, PC John wrote:
> Things are more difficult:

only if you want it :)

> OpenGL           povray
> ===============+================
> ambient  COLOR | ambient  COLOR
> diffuse  COLOR | diffuse  float
> specular COLOR | specular float
> emission COLOR | (no equivalent, but can be emulated by ambient)

texture {
   average
   texture_map {
     //ambient
     [1
       pigment {[ambient pigment with all colors * 4]}
       finish {diffuse 0 ambient 1}
     ]
     //diffuse
     [1
       pigment {[diffuse pigment with all colors * 4]}
       finish {diffuse 1 ambient 0}
     ]
     //specular
     [1
       pigment {[specular pigment with all colors * 4]}
       finish {diffuse 0 ambient 0 specular 1 metallic}
     ]
     //emission
     [1
       pigment {[emission pigment with all colors * 4]}
       finish {diffuse 0 ambient 0 emission 1}
     ]
   }
}

didn't test it, but I believe this should do the trick


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.