Skip to content

Commit

Permalink
fix(rendering): Improve paper finish properties to get more realistic…
Browse files Browse the repository at this point in the history
… colors
  • Loading branch information
alerque committed Mar 23, 2024
1 parent bab24f0 commit d031f2a
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions book.pov
Expand Up @@ -41,12 +41,20 @@ global_settings {
rotate <90,0,0>
}

#declare PaperFinish = finish {
ambient 0.5
emission 0.5
diffuse 0.35
reflection 0.01
specular 0
}

#declare BookFinish = finish {
ambient 0.75
emission 0.75
diffuse 0.25
ambient 0.6
emission 0.6
diffuse 0.1
reflection 0.01
specular 0.25
specular 0.1
roughness 0.05
}

Expand Down Expand Up @@ -80,7 +88,7 @@ sky_sphere {

light_source {
<-0.2*Blowout,8*Blowout,3.0*ViewZ*Blowout>
color rgb<1, 1, 1>
color rgb<0.8, 0.8, 0.8>
// spotlight
// radius 10
// point_at <BX/4,0,0>
Expand Down Expand Up @@ -234,10 +242,7 @@ light_source {
box { min_extent(Paper) max_extent(Paper)-((PaperInset*2)*y)-(PaperInset*x)
translate <0,PaperInset,0>
pigment { PaperPigment }
finish {
ambient 0.4
emission 0.4
}
finish { PaperFinish }
}

#end
Expand Down

0 comments on commit d031f2a

Please sign in to comment.