diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-11-29 20:11:37 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-11-29 20:11:37 +0400 |
commit | f1745706adcd2337fe183e30c1b026a05c198839 (patch) | |
tree | a31b88426796223cad48f863a25079e883dc7198 /intern/cycles/kernel/osl/osl_shader.cpp | |
parent | f23b6be620a0c43c9811a2242b6c97e271746ffb (diff) |
Fix cycles motion blur + OSL + object texture coordinates issue.
Diffstat (limited to 'intern/cycles/kernel/osl/osl_shader.cpp')
-rw-r--r-- | intern/cycles/kernel/osl/osl_shader.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/kernel/osl/osl_shader.cpp b/intern/cycles/kernel/osl/osl_shader.cpp index abf7c041cb3..2d025f12055 100644 --- a/intern/cycles/kernel/osl/osl_shader.cpp +++ b/intern/cycles/kernel/osl/osl_shader.cpp @@ -106,6 +106,7 @@ static void shaderdata_to_shaderglobals(KernelGlobals *kg, ShaderData *sd, globals->dPdu = TO_VEC3(sd->dPdu); globals->dPdv = TO_VEC3(sd->dPdv); globals->surfacearea = (sd->object == ~0) ? 1.0f : object_surface_area(kg, sd->object); + globals->time = sd->time; /* booleans */ globals->raytype = path_flag; /* todo: add our own ray types */ |