POV-Ray : Newsgroups : povray.binaries.images : Imitated Bricks : Re: Imitated Bricks Server Time
23 Sep 2021 21:21:43 EDT (-0400)
  Re: Imitated Bricks  
From: clipka
Date: 4 Mar 2015 22:31:25
Message: <54f7ce0d$1@news.povray.org>
Am 05.03.2015 um 02:15 schrieb buke9:
> That looks amazing. The textures are great. I would love to see the code
> for the textures.

You'll need UberPOV for this:

------------------------------------------
#declare PlasticSpecularity  = 1.0;
#declare PlasticRoughness    = 0.001;

#declare PlasticFinish = finish {
   emission 0
   ambient 0.1
   diffuse albedo 0.9
   specular albedo PlasticSpecularity roughness PlasticRoughness
   fresnel on
   reflection { PlasticSpecularity fresnel on roughness PlasticRoughness }
   conserve_energy
}

#declare PlasticInterior = interior {
   ior 1.5
}

#declare White = material {
   texture {
     pigment { colour LegoClassicWhite }
     finish { PlasticFinish }
   }
   interior { PlasticInterior }
}
------------------------------------------

Non-white bricks just have different pigments.


Post a reply to this message

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