POV-Ray : Newsgroups : povray.binaries.images : diffuse map + specular map : diffuse map + specular map Server Time
1 May 2024 21:20:09 EDT (-0400)
  diffuse map + specular map  
From: JSR
Date: 11 Jan 2007 07:10:01
Message: <web.45a628dc42e6ddabd8ef73430@news.povray.org>
Hi,
I tried to create a floor with diffuse map + specular map with the source
code:

#declare mat_PARQUET_pigment =
  pigment { image_map { jpeg "diffuse_map.jpg" } }

#declare mat_PARQUET =
  texture {
    uv_mapping pigment_pattern { image_map { jpeg "specular_map.jpg" } }
    texture_map {
      [0.0 pigment { mat_PARQUET_pigment }
           finish { ambient 0.0 diffuse 0.8 specular 0 } ]
      [1.0 pigment { mat_PARQUET_pigment }
           finish { ambient 0.0 diffuse 0.8 specular 2 } ]
    }
  }

IMO, the result it could be improved, but how? :)
Thanks,

JSR


Post a reply to this message


Attachments:
Download 'diffuse+specular.jpg' (301 KB)

Preview of image 'diffuse+specular.jpg'
diffuse+specular.jpg


 

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