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:
Diffstat (limited to 'intern/cycles/kernel/osl/nodes/node_texture_coordinate.osl')
-rw-r--r--intern/cycles/kernel/osl/nodes/node_texture_coordinate.osl6
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/cycles/kernel/osl/nodes/node_texture_coordinate.osl b/intern/cycles/kernel/osl/nodes/node_texture_coordinate.osl
index 2acf72aef54..883135d2a43 100644
--- a/intern/cycles/kernel/osl/nodes/node_texture_coordinate.osl
+++ b/intern/cycles/kernel/osl/nodes/node_texture_coordinate.osl
@@ -30,7 +30,7 @@ shader node_texture_coordinate(
output point Window = point(0.0, 0.0, 0.0),
output point Reflection = point(0.0, 0.0, 0.0))
{
- if(is_background) {
+ if (is_background) {
Generated = P;
UV = point(0.0, 0.0, 0.0);
Object = P;
@@ -48,14 +48,14 @@ shader node_texture_coordinate(
Reflection = reflect(I, Normal);
}
- if(bump_offset == "dx") {
+ if (bump_offset == "dx") {
Generated += Dx(Generated);
UV += Dx(UV);
Object += Dx(Object);
Camera += Dx(Camera);
Window += Dx(Window);
}
- else if(bump_offset == "dy") {
+ else if (bump_offset == "dy") {
Generated += Dy(Generated);
UV += Dy(UV);
Object += Dy(Object);