Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-06-08 14:51:33 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-06-08 14:51:33 +0400
commitc53b20b683cbc6c198f2ec1e78e1b8a16e83d2b3 (patch)
tree2e3ba6f31128fe5f33917a81e7e7cce08dcc9fe3 /intern/cycles/kernel/shaders/node_texture_coordinate.osl
parentc423e3ed8f2b92eddd37709648e185bce67f32c7 (diff)
Cycles: window texture coordinates now work with orthographic cameras, this
was an old issue since the first version.
Diffstat (limited to 'intern/cycles/kernel/shaders/node_texture_coordinate.osl')
-rw-r--r--intern/cycles/kernel/shaders/node_texture_coordinate.osl2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/shaders/node_texture_coordinate.osl b/intern/cycles/kernel/shaders/node_texture_coordinate.osl
index 37460bcfc98..9da582da5dc 100644
--- a/intern/cycles/kernel/shaders/node_texture_coordinate.osl
+++ b/intern/cycles/kernel/shaders/node_texture_coordinate.osl
@@ -38,7 +38,7 @@ shader node_texture_coordinate(
Object = P;
point Pcam = transform("camera", "world", point(0, 0, 0));
Camera = transform("camera", P + Pcam);
- Window = transform("NDC", P + Pcam);
+ getattribute("NDC", Window);
Normal = NormalIn;
Reflection = I;
}