aboutsummaryrefslogtreecommitdiff
path: root/src/povray.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-09-09 14:23:15 +0200
committerThomas White <taw@physics.org>2012-02-22 15:26:57 +0100
commitbdf7024d71f824667a91022b4e049742fa7bdafe (patch)
tree59d6caddceea15afb64f3c7df6f9ff7a7def5c52 /src/povray.c
parent717f89b116fef535072be5ada5b3c32a4fc6de1b (diff)
render_hkl --povray: Scale reflectivity with value
Diffstat (limited to 'src/povray.c')
-rw-r--r--src/povray.c4
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));
}