diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-02-06 23:53:58 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-02-07 00:10:22 +0400 |
commit | 135e4e69a18220034820a4586be44960be89a639 (patch) | |
tree | 33567acbc070f424e78c235fc01c5f19547346c5 /intern/cycles | |
parent | 28936a415076dbded4ec55cf94c49e8d0abe4035 (diff) |
Fix T38524: Cycles not rendering sky texture correct when the direction vector is not normalized.
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/blender/blender_shader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/blender/blender_shader.cpp b/intern/cycles/blender/blender_shader.cpp index f97407100db..6175c8ea399 100644 --- a/intern/cycles/blender/blender_shader.cpp +++ b/intern/cycles/blender/blender_shader.cpp @@ -646,7 +646,7 @@ static ShaderNode *add_node(Scene *scene, BL::BlendData b_data, BL::Scene b_scen BL::ShaderNodeTexSky b_sky_node(b_node); SkyTextureNode *sky = new SkyTextureNode(); sky->type = SkyTextureNode::type_enum[(int)b_sky_node.sky_type()]; - sky->sun_direction = get_float3(b_sky_node.sun_direction()); + sky->sun_direction = normalize(get_float3(b_sky_node.sun_direction())); sky->turbidity = b_sky_node.turbidity(); sky->ground_albedo = b_sky_node.ground_albedo(); get_tex_mapping(&sky->tex_mapping, b_sky_node.texture_mapping()); |