Clément Foucault
7bb512594c
Workbench: Use non-negative lighting evaluation
...
This makes the lighting a bit more diffuse but don't produce negative
values.
Add a bias of 1.5f to make the lighting a bit more directionnal.
The implementation is based on:
https://github.com/kayru/Probulator/blob/master/Source/Probulator/SphericalHarmonics.h#L136
which is derived from:
http://www.geomerics.com/wp-content/uploads/2015/08/CEDEC_Geomerics_ReconstructingDiffuseLighting1.pdf
The shader implementation is optimized and has the same runtime cost
as previous method:
* no sh eval : 0.13ms
* prev sh eval : 0.14ms
* new sh eval : 0.22ms
* new sh eval opti : 0.14ms
2018-11-19 18:05:15 +01:00
Clément Foucault
2b56d21839
Workbench: Performance: Fix performance drop caused by specular lighting
...
In my test, the composite pass went from 1.52ms to 0.24ms when specular
lighting is enabled.
2018-11-19 18:05:15 +01:00
Sergey Sharybin
98f8b48e69
Remove note about Blender Internal
2018-11-19 16:28:26 +01:00
Clément Foucault
6ffb0a0ee7
DRW: Make profiling more precise on certain drivers.
...
This makes the whole rendering slower (because of sync point) but the
numbers displayed by the draw manager profiler is more precise on some
buggy drivers. They seems to issue the query before the last one ends.
2018-11-19 15:48:17 +01:00
Clément Foucault
ee44dd1b2b
Studio Lights: Big Cleanups
...
* Less Lengthy enum/macro names.
* Optimize computation of Spherical Harmonics.
* Reduce radiance cubemap size a bit. Higher resolution is not necessary.
* Remove STUDIOLIGHT_LIGHT_DIRECTION_CALCULATED (was not used).
* Do windowing on each component separately instead of using luminance.
* Use ITER_PIXELS to iterate on each pixels, using pixel center coords.
* Remove gpu_matcap_3components as it is only needed when creating the gputex.
* Fix a lot of confusion in axis denomination/swizzle.
These changes should not affect functionallity.
2018-11-19 15:48:17 +01:00
mano-wii
8d51e3c062
STUDIOLIGHT: leave a comment of why STUDIOLIGHT_SPHERICAL_HARMONICS_WINDOWING was commented.
2018-11-19 10:39:30 -02:00
Jacques Lucke
422992a135
Py API Docs: use new bind context manager in gpu examples
2018-11-19 14:32:51 +01:00
mano-wii
51711fdcaa
Revert "BKE object: Correct bound box of bezier curve objects not matching the object viewed."
...
This reverts commit 24677cf77b .
2018-11-19 10:28:31 -02:00
mano-wii
3f59bdc1bd
PyAPI: GPUOffscreen: Add context manager for the bind method to work with the with statement.
...
Differential Revision: https://developer.blender.org/D3918
2018-11-19 10:16:27 -02:00
mano-wii
d2560dc614
LOOKDEV: disable STUDIOLIGHT_SPHERICAL_HARMONICS_WINDOWING
...
This option is causing the texture to become full of nan(ind)s.
I don't know how it worked before.
Until this is resolved, this feature (which improves the quality of LOOKDEV's irradiance texture) will be disabled.
2018-11-19 09:05:22 -02:00
mano-wii
6647e2c71e
EEVEE: Cleanup: default_world_frag.glsl
2018-11-19 09:05:22 -02:00
mano-wii
80499bcc52
EEVEE: Cleanup remove unused shader.
2018-11-19 09:05:20 -02:00
mano-wii
24677cf77b
BKE object: Correct bound box of bezier curve objects not matching the object viewed.
2018-11-19 09:05:20 -02:00
Pablo Vazquez
de231887b4
Themes: Remove deprecated themes.
...
Most themes have missing/wrong settings due to the new editors in 2.8
A Call-for-content has been made at devtalk.blender.org for the community to contribute new ones.
2018-11-19 12:31:08 +01:00
Sergey Sharybin
b0c463a274
Fix T57889: Crashes on undo and redo while working with image or image empty
2018-11-19 12:04:39 +01:00
Campbell Barton
9b8d479e41
RNA: re-enable update notifier flags
...
This was causing too many missing updates and each need investigation
which won't happen before beta.
2018-11-19 21:30:54 +11:00
Jacques Lucke
6fe1b7158b
Py API Docs: Fix wrong type
2018-11-19 10:29:10 +01:00
Campbell Barton
b33afe4df3
Tool System: improve popup w/ modifier keys
...
When the toolbar is accessed with modifiers (eg shift-space):
- Check if we can use the key without any modifiers to set the cursor.
- Pie-menu stile release event no longer checks for modifiers.
2018-11-19 14:39:25 +11:00
Campbell Barton
740adf2a4b
Cleanup: style
2018-11-19 13:37:18 +11:00
Campbell Barton
db8f662cc9
Cleanup: use define for key-config string
2018-11-19 13:16:18 +11:00
Campbell Barton
472b114761
Fix keymap loading multiple times
...
Blender defaults data-file was loading it's own key-map
with a capital 'B', the preset would load it again w/ a lowercase name.
Use lowercase key-map names.
2018-11-19 13:11:33 +11:00
Campbell Barton
3d92afca7e
Fix tool-system popup and tips w/ empty keymap
...
That this looks like an issue loading keymaps correctly,
needs to be investigated.
2018-11-19 11:58:09 +11:00
Campbell Barton
90be7e90e0
Gizmo: tweak navigation highlight display
...
Show occluded axis highlight on top when pointing away.
2018-11-19 11:40:59 +11:00
Campbell Barton
5dc2ecdf05
Merge branch 'master' into blender2.8
2018-11-19 08:54:07 +11:00
Roel Koster
f74fa98e53
Linux: list GVFS mount points
2018-11-19 08:53:19 +11:00
Campbell Barton
3e096b47ba
Fix object box select new w/o any objects
...
A new selection with no objects found needed to de-select all.
2018-11-19 07:21:14 +11:00
Campbell Barton
9f4e4d672c
Cleanup: naming
2018-11-19 07:06:38 +11:00
Campbell Barton
3b48620098
Cleanup: naming
2018-11-19 07:04:24 +11:00
Campbell Barton
074cd53c19
Keymap: move left click select to a preference
2018-11-19 06:27:17 +11:00
Antonioya
64920a8feb
GP: Harmonize Sculpt Struct and field names
...
Changed the following names:
- GP_EditBrush_Data->GP_Sculpt_Data
- eGP_EditBrush_Types->eGP_Sculpt_Types
- eGP_EditBrush_Flag->eGP_Sculpt_Flag
- eGP_BrushEdit_SettingsFlag->eGP_Sculpt_SettingsFlag
- GP_BrushEdit_Settings->GP_Sculpt_Settings
- GP_EDITBRUSH_FLAG*->GP_SCULPT_FLAG*
- GP_EDITBRUSH_TYPE*->GP_SCULPT_TYPE*
- GP_BRUSHEDIT_FLAG_*->GP_SCULPT_SETT_FLAG_*
2018-11-18 19:30:20 +01:00
Antonioya
991bb00762
GP: Rename GPENCIL_OT_brush_paint to GPENCIL_OT_sculpt_paint
...
This makes the operator name more consistent. Part of T57818
2018-11-18 18:07:16 +01:00
Antonioya
1b7b1d60c5
Fix T57835: Textured-fill layer opacity not working
...
This was an unsupported feature.
2018-11-18 16:28:57 +01:00
Sergey Sharybin
5e61fd7c23
Fix T57896: Crash updating grease pencil material preview
2018-11-18 15:56:57 +01:00
Brecht Van Lommel
bbd4613ed9
Keymaps: make click event use position on button press rather than release.
...
This may improve reliability with left click select and pen input, assuming
that the place where the pen first touched the surface is closer to the
intended location than where it was released from the surface.
I'm not sure if this will make a significant difference in practice, but it
seems worth a try.
2018-11-18 12:21:55 +01:00
Antonioya
c1e1ea5b8f
GP: Set Rim Blur default to 0
2018-11-18 10:21:37 +01:00
Campbell Barton
0cac506f6e
Keymap: preference to swap space/shift-space keys
...
This option is for animators who may not use the tool-system much
(mostly staying in object/pose-mode with the transform-tool active).
2018-11-18 13:43:44 +11:00
Campbell Barton
c57951d903
Keymap: add user-prefs to the default keyconfig
...
Currently the only option is to use select-all as a toggle.
2018-11-18 12:45:14 +11:00
Campbell Barton
50a4a899fd
Keymap: Default pref for select-all to toggle
...
Access in the UI next.
2018-11-18 12:39:31 +11:00
Campbell Barton
d5c751012b
UI: show active keymap user preferences
2018-11-18 12:32:35 +11:00
Campbell Barton
0f1a63d34c
PyAPI: add bpy.utils.execfile
...
Wraps `importlib.util`, avoids duplicate preset loading calls.
2018-11-18 11:49:03 +11:00
Campbell Barton
f520f01b46
Cleanup: tweak to keymap layout args
...
Needed to support user-keyconfig draw call.
No functional changes.
2018-11-18 11:16:25 +11:00
Antonioya
d5e61240ae
GP: Set Thickness default to 2
...
New modifiers have thsi default value.
2018-11-17 19:28:58 +01:00
Clément Foucault
65fa5a1926
Eevee: Optimize Color Ramp node for common cases.
2018-11-17 18:20:10 +01:00
Clément Foucault
68b670698f
Eevee: Fix SSR/SSS when the bsdf nodes are inside groups
2018-11-17 17:08:21 +01:00
Clément Foucault
c599aeaee5
GPU: Cleanup / Opti : Vectorize + MADD and remove unused function
2018-11-17 14:56:18 +01:00
Clément Foucault
735ad525a6
Fix T53750: Mirrored UV have bad tangent space
...
I feel silly because it was my fault all along! (see the WATCH IT warning)
2018-11-17 14:56:18 +01:00
Clément Foucault
0c987aa7ac
BLI: Math: Add normal_float_to_short_v4
2018-11-17 14:56:17 +01:00
Clément Foucault
b4640ea020
DRW: Fix object wire appearing when object is drawn as bounds
2018-11-17 14:56:17 +01:00
Campbell Barton
9c378dc901
Cleanup: correct variable names
2018-11-17 22:23:25 +11:00
Campbell Barton
93cd8e2494
Cleanup: style
2018-11-17 22:23:25 +11:00