Clément Foucault
00a5885136
Eevee: Refactor shaders defines
2017-05-18 01:50:06 +02:00
Clément Foucault
af3954fe90
Eevee: fix bug with postprocess buffer sharing.
2017-05-18 01:50:06 +02:00
Clément Foucault
ecee490d13
Eevee: Some changes to default shader.
...
Use old BI material prop and use a metallic approach.
2017-05-18 01:50:06 +02:00
Dalai Felinto
60cd996c0a
Silence warnings in Mac (based on buildbot build report)
2017-05-17 18:13:10 +02:00
Dalai Felinto
970a7c8bb9
Fix blenderplayer
2017-05-17 17:55:31 +02:00
Luca Rood
cd8909fbc9
Fix typo in hair shader view vector
2017-05-17 17:27:48 +02:00
Luca Rood
f628cfd297
Fix T51535: View vector inverting in pespective/ortho
2017-05-17 16:42:38 +02:00
Sergey Sharybin
47f8459ead
Fix T51388: Mask moves when zoom is changed in the movie clip editor
...
Incorrect matrix space for stabilization.
2017-05-17 14:51:51 +02:00
Bastien Montagne
1693d7d887
Fix annoying warning about unused debug var in release builds.
2017-05-17 14:37:30 +02:00
Bastien Montagne
d0ceb1821b
DwM: Armature: fix bone distance outline drawing.
...
This indeed needed its own draw pass, thank to @fclem for the hints!
Also fixes a stupid mistake in bones head/tail coloring.
2017-05-17 14:33:34 +02:00
Bastien Montagne
3c799ba801
DwM: Armature: Add distance outline and wire drawing of envelope bones.
...
This is not complete, it does not implement 3D solid drawing of
envelope bones. 2D wire is hence always drawn for now.
Some notes:
I did not try to implement the 'capsule' approach suggested by @fclem, because:
1. I spent enough time on this already, and finally got something working.
2. I managed to get rid of geometry shader completely.
3. Current approach allows us to use same shader for
distance outline and envelope wire.
It's working fine, except for one glitch - superpositions of envelope
outlines do not work as expected, not sure what's wrong here, tried to
disable zbuff, enable GL_BLEND, no luck so far...
I think we need our own 'background' drawpass to get them working (also
to avoid them drawing over the wire lines).
2017-05-17 12:34:06 +02:00
Campbell Barton
f674bc90e2
BMesh: remove duplicate argument for wireframe op
2017-05-17 20:31:14 +10:00
Luca Rood
11c167ff76
Fix particle system batch_cache on object duplication
2017-05-17 11:19:36 +02:00
Campbell Barton
c104b7b0b3
DWM: reuse position VBO for vpaint select overlay
2017-05-17 19:21:16 +10:00
Campbell Barton
a769c4a3a0
Fix weight-painting out of facemask mode w/ hidden faces
...
Own error in recent commit
2017-05-17 19:08:09 +10:00
Dalai Felinto
c8e96a8b6b
Fixup on weightpaint shader after rBfabd55a5e9
2017-05-17 10:35:36 +02:00
Sergey Sharybin
24676b535a
Fix T49981: When camera is on inactive layer, it does not evaluate constraints
...
Second round of fix, was broken by 843be91 .
2017-05-17 10:22:40 +02:00
Dalai Felinto
fca52c42ae
Clay hair: use builtin reflect function
2017-05-17 10:21:08 +02:00
Campbell Barton
fabd55a5e9
DWM: hide hidden verts in weight-paint mode
2017-05-17 18:09:40 +10:00
Campbell Barton
c18c3ff3d5
Cleanup: line length
2017-05-17 17:37:23 +10:00
Campbell Barton
d41f98406f
DWM: minor changes to face-flag use
2017-05-17 17:27:20 +10:00
Campbell Barton
e74177d3b1
Correct own error in copying vertex color to VBO's
2017-05-17 17:14:10 +10:00
Campbell Barton
e074ac65a6
DWM: don't use engine drawing for paint modes
...
Also only use sculpt-mode drawing with the active object.
2017-05-17 17:06:55 +10:00
Campbell Barton
3926e3ef68
DWM: correct unselected face overlay
2017-05-17 16:41:21 +10:00
Campbell Barton
9995bd8532
DWM: use DRWContextState.obact
2017-05-17 16:08:36 +10:00
Campbell Barton
741a4cfc0b
DWM: Initial support vert & weight hidden faces
2017-05-17 16:01:18 +10:00
Campbell Barton
17458c511c
Cleanup: quiet warning
2017-05-17 13:38:06 +10:00
Campbell Barton
aa66f2c7eb
Use byte color for selection drawing
...
Some small advantage to using 1/4 sized data-type.
2017-05-17 13:31:01 +10:00
Campbell Barton
431b7c8eb1
Correct flag when drawing editmode face select
...
Own error in updating select code.
2017-05-17 13:26:09 +10:00
Campbell Barton
b4ec0e8cd5
DWM: use generic header for DRWCall
...
Avoid alignment mis-match casting between different draw-call types.
2017-05-17 12:58:58 +10:00
Campbell Barton
5bfeaf6cc1
Cleanup: group VBO attributes in a struct
...
Some names are a bit arbitrary,
this makes it clear which names are VBO attributes.
2017-05-17 12:36:02 +10:00
Campbell Barton
3d6361aa9c
Cleanup: clarify select terminology
...
In mesh cache we have select: color, id, bool.
Current naming didn't make this clear.
2017-05-17 11:47:31 +10:00
Campbell Barton
89483c73fd
DWM: write mesh data to the VBO directly
...
Was using intermediate functions to store each data type.
This is still done in some places (for more involved access).
For basic data: coords, normals, colors..etc this is unnecessarily indirect.
2017-05-17 11:34:42 +10:00
Campbell Barton
2f6bc53874
DWM: Add obact for convenience
...
Modes often need to check if the object is the active one.
2017-05-17 11:03:09 +10:00
Campbell Barton
8adec78ca5
Cleanup: remove GLSL version checks
2017-05-17 10:46:42 +10:00
Mai Lavelle
0a6c57d3d2
Fix crash from freeing of NULL pointer
2017-05-16 16:29:27 -04:00
Clément Foucault
58a810e640
Draw Manager: Add support for instance Batch.
...
Idea is to specify a batch as source of vbo instance attrib.
2017-05-16 20:30:17 +02:00
Clément Foucault
fa76c69627
Draw Manager: support render only mode.
2017-05-16 20:30:17 +02:00
Clément Foucault
90aff807ab
Draw Manager: Texture Memory usage improvement.
...
-Use 11_11_10 buffers for hdr content.
-Eevee compositing share 1 buffer if bloom and DOF are both activated.
-Fix slowdown when resizing EEVEE viewport.
-Removed DRW_BUF_*** enums causing confusion.
2017-05-16 20:30:17 +02:00
Clément Foucault
ddc5896c81
Draw Manager: Improve debug
2017-05-16 20:30:17 +02:00
Clément Foucault
2e8cb8d836
Draw Manager: Make use of texture reuse.
2017-05-16 20:30:17 +02:00
Clément Foucault
7a029f4e00
GPUViewport: Add a Texture Pool to reuse textures across engines.
2017-05-16 20:27:52 +02:00
Luca Rood
dc01586b40
Fix crash when particle display is below 100%
2017-05-16 17:42:14 +02:00
Luca Rood
95547bd750
Minor cleanup in clay_engine.c
2017-05-16 16:43:48 +02:00
Dalai Felinto
15317775c5
Outliner: Bring back "activate" object when selecting from outliner
2017-05-16 16:40:00 +02:00
Sergey Sharybin
d59721c2c3
Fix T50673: OpenEXR multilayer image truncated on save
...
The issue is in OpenEXR itself. See the report fomr some more details.
2017-05-16 16:34:49 +02:00
Dalai Felinto
3826e77593
Draw Manager: Small cleanup on bool and bitwise
...
We should avoid casting from an int to a flag.
In this case it is probably fine, but if the OB_MODE_SCULPT
was too high it can overflow the bool.
(also adding explicit parenthesis to a flag check)
2017-05-16 16:26:00 +02:00
Dalai Felinto
b11168c8f1
Clay/Hair: Only show hair when in object mode
2017-05-16 16:18:17 +02:00
Luca Rood
c6da3c2655
Fix hair drawing with collection clay settings overrides
2017-05-16 16:07:45 +02:00
Sergey Sharybin
26b2323189
Fix memory leak when saving OpenEXR files
...
It is not a good idea to:
1. Duplicate metadata to self
2. Ignore the fact that something might have had metadata already.
Also moved metadata copy to a preparation function, so it is
never lost.
2017-05-16 15:36:29 +02:00