diff options
author | Thomas White <taw@physics.org> | 2010-09-09 14:23:15 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:26:57 +0100 |
commit | bdf7024d71f824667a91022b4e049742fa7bdafe (patch) | |
tree | 59d6caddceea15afb64f3c7df6f9ff7a7def5c52 | |
parent | 717f89b116fef535072be5ada5b3c32a4fc6de1b (diff) |
render_hkl --povray: Scale reflectivity with value
-rw-r--r-- | src/povray.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/povray.c b/src/povray.c index a4864aba..808d3e22 100644 --- a/src/povray.c +++ b/src/povray.c @@ -283,11 +283,11 @@ int povray_render_animation(UnitCell *cell, double *ref, unsigned int *counts, fprintf(fh, "sphere { <%.5f, %.5f, %.5f>, %.5f " "texture{pigment{color rgb <%f, %f, %f>" " transmit %f} " - "finish { reflection 0.1 } } \n" + "finish { reflection %f } } \n" "transform { TRANS }\n" "}\n", x/1e9, y/1e9, z/1e9, radius, - r, g, b, trans); + r, g, b, trans, 0.1*(1.0-trans)); } |