b09052002c
Eevee: Add support for volumetrics in node tree.
...
Only volume scatter is implemented for now.
2017-07-03 22:08:33 +02:00
2eef097831
GPU Codegen: Add new closure socket type.
...
This allow specialized shaders to redefine the closure interface to fit their needs.
For instance, Volumetric closure needs to pass more than one vec4 (absorption vec3, scattering vec3, anisotropy float).
2017-07-03 22:08:33 +02:00
65b01014b9
Eevee: Initial implementation of Volumetrics.
2017-07-03 22:08:33 +02:00
9d2ee7998a
Draw Manager: Add new blend mode for transmission.
...
This blend Mode is doing Source + Destination * Alpha.
2017-07-03 22:08:33 +02:00
9b66a320bf
Eevee: Fix luma calculation for lamp fresnel.
2017-07-03 22:08:33 +02:00
Dalai Felinto
e571e6d60e
Fix edit mode not drawing
...
This was introduced on 1ad0cc6bde .
2017-07-03 21:48:39 +02:00
Dalai Felinto
3eeac771d0
Fix alembic after merge from master
2017-07-03 21:16:34 +02:00
Dalai Felinto
3fc342bda0
Fix building with gcc6 after merge from master
2017-07-03 21:16:34 +02:00
de2faa395f
Fix for merged 'normal map tangents not working correctly when there are no UV maps.'
2017-07-03 20:13:52 +03:00
e1482841dd
Merge branch 'master' into blender2.8
2017-07-03 19:53:00 +03:00
Dalai Felinto
1ad0cc6bde
Eevee: Hide lightprobe data when using "Only Render"
2017-07-03 16:16:24 +02:00
0900914d96
Alembic: fix T51820 for sequence files not loading properly.
2017-07-03 16:08:41 +02:00
7b12957267
Alembic: avoid crashing when doing certain file operations.
...
Things like missing directories are now properly checked for, rather than
crashing Blender.
This also adds support for relative paths when opening an ABC file.
2017-07-03 15:28:19 +02:00
Dalai Felinto
d97c3bc7ad
Merge branch 'master' into blender2.8
2017-07-03 15:18:46 +02:00
95a97f79cc
Alembic: renamed offset → sequence_offset
2017-07-03 14:21:17 +02:00
44397a7a0a
Fix T51883: Wrong matrix computation in "Make Duplicates Real"
2017-07-03 12:51:10 +02:00
Dalai Felinto
871325e26f
Fix T51963: Eevee: ASAN crash on copy_attrib_name
...
Bug introduced on f6bb3262f1 .
CustomData_get_named_layer returns a different result than
CustomData_get_named_layer_index.
2017-07-03 12:47:00 +02:00
46c7d45f77
Fix T51889: broken UI after File > New without a userpref.blend.
...
BLO_update_defaults_userpref_blend() was being run when no user preferences
were loaded from memory.
2017-07-03 02:24:40 +02:00
0c122d64d2
Fix T51734: batch-generate previews crashes on some materials.
2017-07-02 23:40:53 +02:00
3232d8ec8f
Fix T51951: cell noise texture precision issue at unit vertex coordinates.
...
Solution is to bias the coordinates a little, same as Cycles checker texture.
2017-07-02 22:00:10 +02:00
e3e5ecfaa8
Fix T51746: normal map tangents not working correctly when there are no UV maps.
...
Patch by Alexander, with some refactoring by Brecht.
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D2709
2017-07-02 21:28:10 +02:00
eb1532a860
Fix T51772: double undo entry for color picker editing.
2017-07-02 21:27:41 +02:00
eb420e6b7f
Fix T51957: principled BSDF mismatches in GLSL viewport.
2017-07-02 18:37:50 +02:00
79f27fc8d3
Fix T51947: failure setting sequence.use_proxy/crop/translation to False
2017-07-01 23:20:06 +02:00
3de5370e9d
Cleanup: unused defines
2017-07-01 20:19:12 +10:00
5b2b5a4258
Fix ED_OT_undo_redo operator
2017-07-01 10:51:26 +03:00
Dalai Felinto
49a35033be
Fix T51877: Deleting a scene uses freed memory
...
At the moment libblock_remap_data_preprocess is using
FOREACH_SCENE_OBJECT to iterate over all the objects of the scene and
unlink them.
However we were storing a reference to the Base of the removed object.
Anyways, the loop is now sanitized so that this crash no longer happens.
Also now we have an unittest for this.
2017-06-30 19:03:02 +02:00
9cd6b03187
Fix T50230: Rigid Body simulation shouldn't step when time is beyond cached area
...
This makes the last time (`ltime`) stored in the rigid body world (`rbw`)
only be updated once a simulation step actually occurs, this prevents
another simulation step from being solved unless the current time is
exactly one frame after the last cached frame. Thus this prevents the
formation of gaps in the cache, such as seen in T50230.
Reviewers: mont29, sergey, angavrilov
Tags: #physics
Maniphest Tasks: T50230
Differential Revision: https://developer.blender.org/D2458
2017-06-30 15:58:57 +02:00
0831099664
Eevee: Principled BSDF: add support for specular tint + optimisation
...
Only use clearcoat version if there is something linked or if the clearcoat value is not 0.
2017-06-30 14:12:25 +02:00
178c470c43
Eevee: Fix specular shadowing.
...
Compute luminance approximation instead of using green channel.
This is to match cycles principled bsdf.
2017-06-30 14:10:42 +02:00
1b4bd1c84e
Fix T51118: Outliner crash when unlinking collection
...
The outliner tree was not being rebuilt after unlinking a collection,
and thus a dangling pointer to the collection was kept in the tree.
2017-06-30 12:32:18 +02:00
1a6ae0c70e
DwM: Use GWN_vertbuf_raw_* access for shading data
...
Gives approx 14% speedup here.
2017-06-30 18:31:04 +10:00
34e4948682
Fix T51919: Tangents need UV's allocated
2017-06-30 17:48:18 +10:00
bc347f6015
Merge branch 'master' into blender2.8
2017-06-30 13:46:53 +10:00
9210a4faf3
Fix unpredictable trackball rotation
...
D2729 by @IgorNull
Currently, trackball rotation sequentially applies rotation across x axis and y axis,
which produces a strange/unusable result on diagonal pointer motion.
This change fixes the problem by using a single axis which is orthogonal
and proportional to mouse delta - matching view-port trackball.
2017-06-30 11:10:05 +10:00
eb88f0c321
Workaround T51934: Array's > SHRT_MAX aren't supported
2017-06-30 10:10:22 +10:00
cdb07ff30e
Eevee: Fix broken default coordinate (reported via IRC by Dalai Felinto).
2017-06-29 20:23:06 +02:00
Dalai Felinto
98c8b5a6fb
No need to free all the shaders when appending or reloading libraries
...
To recompile all the shaders is expensive. And something to be avoided at all costs.
It was needed before because for every new lamp in the file we needed to
recompile the shaders. Now this is no longer required since we are using
UBOs for the sahders.
2017-06-29 19:07:21 +02:00
Dalai Felinto
2c62493891
Eevee: No need to free all the gpu materials when world changes.
...
We have a world probe that is used to prevent exactly that.
2017-06-29 18:57:06 +02:00
7c72079381
Fix hair shading after Eevee shader refactor
2017-06-29 18:45:11 +02:00
90e16b8e03
Eevee: Fix world probe with world without nodetree.
2017-06-29 17:32:13 +02:00
5e96df7d27
Eevee: Remove Geometry shader usage for background.
...
This fix the behaviour of the light path node that separates the probes background from the viewport background.
2017-06-29 17:08:13 +02:00
790b15112b
Eevee: Fix T51922: Avoid division by 0.
...
Problem was caused by a division by 0 when rendering the probes. This patch make the visibility equal to 1.0 in this case.
2017-06-29 17:08:13 +02:00
95797336f5
Eevee: Prepare support for future Anisotropic shading.
2017-06-29 17:08:13 +02:00
3888227a7b
material Glsl: Fix tangent with new orco.
2017-06-29 17:08:13 +02:00
2eca054e14
Remove dupli-group support for non-empty objects
...
Behavior for mixing object-data & dupli data was confusing,
exporters and render engines often got it wrong.
2017-06-30 00:03:08 +10:00
f39d06589e
Fix warnings in draw_cache_impl files
2017-06-29 15:46:00 +02:00
0210c6b9de
Fix T51890: Turning off viewport display for array modifier is blocking dupliface in final render
...
DupliVert/Face were not using render DM at render time.
2017-06-29 15:44:00 +02:00
b606161458
Fix T51821: Viewport not updating when switching worlds
2017-06-29 14:49:46 +02:00
916344b49e
Fix error getting the tangent layer name
2017-06-29 21:24:09 +10:00