Skip to content

Commit

Permalink
F fix minor bug in ShaderPart: translation must not be applyed when c…
Browse files Browse the repository at this point in the history
…omputing cameraDirection in shader
  • Loading branch information
Romain Gilliotte committed Jun 7, 2012
1 parent f0b785a commit b29070f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aerys/minko/render/shader/part/ShaderPart.as
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ package aerys.minko.render.shader.part

protected function get cameraDirection() : SFloat
{
return multiply4x4(float4(0, 0, 1, 1), viewToWorldMatrix);
return multiply3x3(float4(0, 0, 1, 1), viewToWorldMatrix);
}

protected function get cameraZNear() : SFloat
Expand Down

0 comments on commit b29070f

Please sign in to comment.