Campbell Barton
e12c08e8d1
ClangFormat: apply to source, most of intern
...
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
2019-04-17 06:21:24 +02:00
ccacf3ae3c
Cycles: change AO node default to 16 samples and only local off.
2018-06-29 15:43:55 +02:00
574c716f2d
Cycles: change AO node color default to 1.0.
2018-06-24 12:24:30 +02:00
Lukas Stockner
799779d432
Cycles: change Ambient Occlusion shader to output colors.
...
This means the shader can now be used for procedural texturing. New
settings on the node are Samples, Inside, Local Only and Distance.
Original patch by Lukas with further changes by Brecht.
Differential Revision: https://developer.blender.org/D3479
2018-06-15 22:16:06 +02:00
Thomas Dinges
ee36e75b85
Cleanup: Fix Cycles Apache header.
...
This was already mixed a bit, but the dot belongs there.
2014-12-25 02:50:24 +01:00
Brecht Van Lommel
b9ce231060
Cycles: relicense GNU GPL source code to Apache version 2.0.
...
More information in this post:
http://code.blender.org/
Thanks to all contributes for giving their permission!
2013-08-18 14:16:15 +00:00
Thomas Dinges
188718a3d5
OSL Shader Files:
...
* Simplify default color values, where each component was the same.
* Initialize closures as Null Closure, rather than assigning an existing closure, gets overwritten anyways.
2012-12-11 16:06:03 +00:00
Brecht Van Lommel
1c410ab6e7
Fix #33183 : cycles bump mapping was not executed with only an AO node in a material.
2012-11-15 14:08:46 +00:00
Brecht Van Lommel
27d647dcf8
Cycles: 4 new nodes.
...
* Tangent: generate a tangent direction for anisotropic shading. Can be either
radial around X/Y/Z axis, or from a UV map. The default tangent for the
anisotropic BSDF and geometry node is now always radial Z, for UV tangent use
this node now.
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/More#Tangent
* Normal Map: generate a perturbed normal from an RGB normal map image. This
is usually chained with an Image Texture node in the color input, to specify
the normal map image. For tangent space normal maps, the UV coordinates for
the image must match, and the image texture should be set to Non-Color mode
to give correct results.
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/More#Normal_Map
* Refraction BSDF: for best results this node should be considered as a building
block and not be used on its own, but rather mixed with a glossy node using a
fresnel type factor. Otherwise it will give quite dark results at the edges for
glossy refraction.
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/Shaders#Refraction
* Ambient Occlusion: controls the amount of AO a surface receives, rather than
having just a global factor in the world. Note that this outputs a shader and
not a color, that's for another time.
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/Shaders#Ambient_Occlusion
2012-11-06 19:59:02 +00:00