Clément Foucault
d126ffbea4
DRW: Use static list (array) of texture/ubo to track bound textures/ubos.
...
This is in order to use the same texture on multiple sampler.
Also texture counter is reset after each shading group. This mimics the previous behaviour.
2017-09-11 23:15:29 +02:00
Clément Foucault
4757404eef
Eevee: Fix performance issue on intel.
...
I did not checked if it makes a diff on other GPU. This might be change to be intel only.
2017-09-11 14:32:44 +02:00
Clément Foucault
92ace808db
Eevee: Fix shadow copy shader error.
...
filter() is a reserved function.
2017-09-11 14:09:12 +02:00
Campbell Barton
7d7741d25f
Merge branch 'master' into blender2.8
2017-09-11 16:52:53 +10:00
Campbell Barton
f56fea3d6b
Fix T52701: Mesh shortest path fails at boundaries
2017-09-11 16:45:19 +10:00
Joshua Leung
7e56879772
Fix T52696: Sculpt - Brush spacing pressure artifacts
...
Was caused by divide-by-zero in paint_stroke_integrate_overlap()
in paint_stroke.c, as identified by Bob Smith (uvwxyz).
Thanks for the report!
2017-09-11 18:24:39 +12:00
Clément Foucault
49ba9d02d8
Eevee: Fix shadow bleeding after farclip for cubemaps.
...
NOTE: We should not check for radial distance. But this is faster.
2017-09-11 01:13:55 +02:00
Clément Foucault
d97a5484af
Eevee: Shadows: Update cascaded shadowmaps when rendering probes.
...
This is really resource intensive but there is no other way to correctly handle it.
2017-09-10 03:09:45 +02:00
Clément Foucault
90efcd6df7
Eevee: Shadows: Add cubemap filtering and adaptive sample count.
...
Filter size is constant in world space and not dependant of shadow resolution.
The filter size is limited to the number of precomputed samples.
2017-09-10 03:09:45 +02:00
Clément Foucault
314739bced
Eevee: Shadow: Fix Incorrect shadowing after sun lamp far clip plane.
...
Reject cascade sample if not in shadowmap volume.
2017-09-10 03:09:45 +02:00
Clément Foucault
9fdf094b85
Eevee: Shadows: Filtering improvement.
...
- Replace poisson by concentric samples: Less variance. They are sorted by radius then by angle.
- Separate filtering into 2 blur. First blur is 3x3 box blur. Second is user dependant.
- Group fetches by group of 4.
2017-09-10 03:09:45 +02:00
Clément Foucault
adeaf37e77
Eevee: Add Cascaded Shadow Map options.
2017-09-10 03:09:45 +02:00
Clément Foucault
cc6e97d426
Lamps: Remove uper limit of the buffer bias parameter.
2017-09-10 03:09:45 +02:00
Clément Foucault
716f7859a8
Eevee: Add Cascaded Shadow Map support with filtering.
...
This brings some data structure changes.
Shared shadow data are stored in ShadowData (in glsl) (aka EEVEE_Shadow in C).
This structure contains the array indices of the first shadow element of this shadow "object".
It also contains how many shadow to evaluate (to be used for Multiple shadow maps).
The filtering is noisy and needs improvement.
2017-09-10 03:09:45 +02:00
Clément Foucault
6c17348e91
Eevee: Shadow: Add high bitdepth option.
...
This option is here for reducing the memory usage of shadow maps.
Also lower bitdepth are quicker to process.
2017-09-10 03:09:45 +02:00
Clément Foucault
f46b908cc5
Eevee: Expose Shadow filter size.
2017-09-10 03:09:45 +02:00
Clément Foucault
32e96448b9
Eevee: Add Variance Shadow Mapping
...
This is an alternative to ESM. It does not suffer the same bleeding artifacts.
2017-09-10 03:09:45 +02:00
Clément Foucault
e2603a6e82
Eevee: Shadows: Add UI buttons for size and method
...
Only one method is available right now. VSM and PCF are comming.
2017-09-10 03:09:45 +02:00
Clément Foucault
8b7a83a868
Eevee: Refactor Shadow System
...
- Use only one 2d texture array to store all shadowmaps.
- Allow to change shadow maps resolution.
- Do not output radial distance when rendering shadowmaps. This will allow fast rendering of shadowmaps when we will drop the use of geometry shaders.
2017-09-10 03:09:45 +02:00
Campbell Barton
11a9434c2d
Resolve T52687: Add node label shows as 'Unknown'
...
Add type access method, need to extend to other types
for now just get node UI working properly again.
2017-09-09 22:56:58 +10:00
Campbell Barton
3c3d0898b0
PyAPI: Fix mathutils freeze allowing owned data
2017-09-09 11:08:38 +10:00
Campbell Barton
30d8829780
Docs: mathutils docstrings
2017-09-09 11:02:26 +10:00
Campbell Barton
90eb93791f
Cleanup: mathutils vector comments
...
Use doxy markup & correct outdated info.
2017-09-09 10:50:40 +10:00
Campbell Barton
3930e46e37
Correct last commit
2017-09-09 10:15:16 +10:00
Campbell Barton
002cc6aef3
Cleanup: Simplify SWIZZLE macro
...
- Use indices instead of character args.
- Use numbered macros instead of variadic args.
Parsing using rtags used over 11gb of memory. While this should be
resolved upstream (report as #1053 ), the extra complexity didn't give
any real advantage.
2017-09-09 10:10:05 +10:00
Campbell Barton
5d1a5001f4
Fix T52628: own error in string duplication
...
Error in 636baa598a
2017-09-09 02:08:58 +10:00
Joshua Leung
b02ab2e7d9
Fix: Grease Pencil pie menu keymaps were broken after the menus got renamed
2017-09-09 01:03:15 +12:00
Antonio Vazquez
c9afc41cfd
Fix T52650:Grease pencil selection its not automatically updating in Clip Editor
2017-09-08 11:21:49 +02:00
Campbell Barton
2a3a747ca2
Fix T52678: Crash editing gpencil w/ frame-lock
2017-09-08 18:51:47 +10:00
Campbell Barton
5b026486e4
Fix leak caused by wrong ownership flag
2017-09-08 04:22:19 +10:00
Campbell Barton
df58d6bf76
Fix T52046: View transform applied twice w/ GL render
...
Patch from @sergey w/ minor edit.
2017-09-08 03:57:07 +10:00
Campbell Barton
a133b74709
Merge branch 'master' into blender2.8
2017-09-08 03:18:39 +10:00
Campbell Barton
60020f57d7
Correct function name in argument parsing
2017-09-08 00:59:27 +10:00
Campbell Barton
e44bf43f6c
PyAPI: add function to get an RNA subclass
...
This is inconvenient in regular Python, add a class-method
to perform the operation, eg:
bpy.types.Node.bl_rna_find_subclass("CustomNodeType")
2017-09-08 00:02:09 +10:00
Campbell Barton
accc94dd73
Cleanup: remove goto's
2017-09-07 22:53:46 +10:00
Campbell Barton
f4d46916fa
UI: fix memory leak when copy-to-selected failed
2017-09-07 22:15:12 +10:00
Campbell Barton
1601089ece
Merge branch 'master' into blender2.8
...
This discards node drawing changes which need to be written as shaders.
2017-09-07 14:53:06 +10:00
Campbell Barton
3f8aaec6bd
Weight Smooth: remove source option
...
Use current selection mode instead of an operator option.
2017-09-07 14:14:42 +10:00
Campbell Barton
5f7de54243
Fix T52639: Weight paint smooth tool crash
2017-09-07 13:20:39 +10:00
Campbell Barton
8172e8e528
Node UI: Add square and diamond socked draw styles
...
Currently not used by Blender's node trees
D2814 by @charlie
2017-09-07 04:45:38 +10:00
Campbell Barton
fb2e0592bc
Fix crash using arrow manipulator
2017-09-07 01:56:42 +10:00
Brecht Van Lommel
e2f42ff907
Merge branch 'master' into blender2.8
2017-09-06 17:23:47 +02:00
Brecht Van Lommel
82ede9de48
Fix mistake in previous fix for T52640.
2017-09-06 17:22:38 +02:00
Campbell Barton
16fbb47c88
Use normalized project functions
2017-09-07 01:20:59 +10:00
Brecht Van Lommel
4d8980a690
Fix T52640: crash when opening image file browser in some cases.
...
There was some invalid state in the screen here, some areas had
sa->full set even though no screen was maximized, which then caused
a restore from the wrong (empty) area, which then led to spacedata
being empty and a crash.
This fix properly clears the sa->full after restore, and also fixes
existing .blend files in such an invalid state.
2017-09-06 16:17:18 +02:00
Campbell Barton
584523e0ad
Screw Modifier: remove doubles option
...
Vertices on the axis can be optionally merged,
nice for creating objects which close at the end-points.
2017-09-07 00:12:43 +10:00
Campbell Barton
6e0fd239e3
Math Lib: normalized vector project functions
2017-09-07 00:12:43 +10:00
Brecht Van Lommel
dd8016f708
Fix T52652: Cycles image box mapping has flipped textures.
...
This breaks backwards compatibility some in that 3 sides will be mapped
differently now, but difficult to avoid and can be considered a bugfix.
2017-09-06 13:51:45 +02:00
Campbell Barton
56ff14ea63
View3D Remap: skip defmaterial
...
This isn't library data.
2017-09-06 20:57:25 +10:00
Campbell Barton
e54caf76cb
Fix T52663: Remap used invalid local-view data
...
Only the camera from View3D.localvd is used,
other pointers may be invalid.
Longer term we should probably clear these to ensure no accidents.
For now just follow the rest of Blender's code and don't access.
2017-09-06 20:52:49 +10:00