Sergey Sharybin
49bd3d3a1a
Cycles: Fix crash loading single channel texture
...
Was typo in recent isfinite check.
2017-05-18 15:49:03 +02:00
Dalai Felinto
c55c2dbfba
Make sure external engines also render fine with depsgraph + freestyle wip
...
There is still a crash when using freestyle and Cycles,
but the changes here present are harmless
2017-05-18 14:48:13 +02:00
Campbell Barton
00164f3c70
Correct own error using u32 for back-buffer select
2017-05-18 22:33:34 +10:00
Campbell Barton
1247f609d4
Correct last commit
...
VERT_VISIT was used in a nested function.
2017-05-18 21:48:52 +10:00
Pascal Schoen
32c9d2322c
Fix T51408: Cycles - Principled BSDF Shader - Transparency is not working as expected
...
Renamed the "Transparency" input of the Principled BSDF to
"Transmission" and "Refraction Roughness" to "Transmission Roughness".
2017-05-18 13:18:19 +02:00
Campbell Barton
208462e424
Fix T51539: BMesh boolean crash
...
In some cases the vertex visit queue would exceed its max length,
visiting the same vertex multiple times.
2017-05-18 21:09:06 +10:00
Campbell Barton
dad10ab118
DwM: Support flat-shaded w/ clay & eevee engines
...
Needed for sculpt mode drawing w/ engines, see: T51497
2017-05-18 20:43:53 +10:00
Bastien Montagne
5dd9e17266
DwM: Armature: Cleanup envelope bone code a bit.
...
Mainly adding 'wire' suffix to wire/distance drawing func and shader.
Also, match wire vertex shader behavior with solid one regarding
head/tail only drawing (i.e. alwas expect head bone mat, never tail one,
and assume that if a radius is negative, then we only draw on the other
end of the bone).
2017-05-18 12:13:19 +02:00
Bastien Montagne
23f256b24b
DwM: Armature: add solid envelope bone drawing.
...
Envelope bones are now pretty much identical to old drawing code.
Note that currently new DwM drawing code does not seem to care about
wire/solid drawing modes at all, guess this is still TODO... For now we
hence just get both wire and solid for envelope bones, this can be
refined later.
2017-05-18 12:13:19 +02:00
Bastien Montagne
5919919955
DwM: Armature: refine drawing condition of envelope distance outline.
...
Should match better original 2.7x behavior now.
2017-05-18 12:13:19 +02:00
Campbell Barton
c75cde31db
Re-use vertex position VBO in weight-paint mode
2017-05-18 14:53:43 +10:00
Campbell Barton
3900b7b1e7
Cleanup: simplify material checks w/ clay engine
...
Instead of manipulating args when checking for duplicates,
just convert the material and memcmp.
2017-05-18 13:06:51 +10:00
Campbell Barton
4047715af3
Cleanup: use pre-defined STRINGIFY macro
2017-05-18 11:22:24 +10:00
Campbell Barton
102394a323
Fix T51538: Weight-paint circle select w/ clipping
2017-05-18 10:43:34 +10:00
Clément Foucault
5ec6982a82
Draw Manager: Fix instancing.
2017-05-18 01:50:06 +02:00
Clément Foucault
11e7e0769a
Eevee: fix orco.
2017-05-18 01:50:06 +02:00
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
Sergey Sharybin
c4d122e305
Cycles: Optimize expansion of headers in the source
...
Use smarter check of where the file is coming from instead of
attempting to replace same source twice with different settings.
Brings down processing time from 3.6sec to 1.8sec.
2017-05-17 17:26:35 +02:00
Sergey Sharybin
9a910443c4
Fix compilation error in Cycles
...
Was caused by recent fix with finite checks.
Fixes T51536.
2017-05-17 17:23:32 +02:00
Luca Rood
f628cfd297
Fix T51535: View vector inverting in pespective/ortho
2017-05-17 16:42:38 +02:00
Sergey Sharybin
1d49205b1a
Fix T51529: Black boxes on a denoising render when using a .exr image as a environmental texture
...
It is caused by NaN value in the input texture. Now we check for all the pixels
having proper finite values.
Should also help here in the studio,
2017-05-17 15:29:47 +02:00
Clément Foucault
a56c80cd45
Eevee: fixed Material UI.
2017-05-17 15:06:26 +02:00
Sergey Sharybin
cc2755b443
Revert "Cycles: Fix wrong shading on GPU when background has NaN pixels and MIS enabled"
...
This reverts commit 581c819013 .
Seems we do need to do finite check early on, this is incoming.
2017-05-17 15:06:05 +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
Hristo Gueorguiev
40e6f65ea1
Fix T50937: baking with OpenCL and CPU have slightly different brightness
...
OpenCL baking with SSS and Volume are not supported.
2017-05-17 12:24:16 +02: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