ad7458d00c
Eevee: Transparency: Add Alpha Blend mode.
2017-07-11 12:39:35 +02:00
d6b46f9ea5
DRW: Make Additive blending alpha premult.
2017-07-11 12:39:35 +02:00
d35c24f87b
Eevee: Transparency: Add support for blend ADD and MULTIPLY.
...
This introduces a new transparency pass.
It bypass the radial distance encoding in alpha for the transparent shaders.
2017-07-11 12:39:35 +02:00
55022884ba
DRW: Add shading group state disable.
...
This is a way to remove some state flag per Shading Group.
2017-07-11 12:39:35 +02:00
eb8dddaab1
Eevee: Material: Code cleanup in order to add transparency support.
2017-07-11 12:39:35 +02:00
05bef13b53
Eevee: Add support for Alpha clip and Hashed Alpha transparency.
...
Hashed Alpha transparency offers a noisy output but has the benefit of being correctly ordered. Noise can be attenuated with Multisampling / AntiAliasing.
2017-07-11 12:39:35 +02:00
45897f12f8
Fix T51931: VBO not updating when UVs are added to shader node tree
...
UVs need specific data in the VBO, which is not computed unless the
shaders assigned to the mesh actually use UVs. When adding UVs to the
shader, the VBOs were not being recomputed to include the required data.
This adds a DEG relation between the shader and the mesh, and recomputes
the required data if the shader changed.
Thanks Sergey, for all the DEG stuff...
2017-07-10 14:43:57 +02:00
d33cacf7e4
Fix image empties not drawing
...
A pointer to the uniform data for the empty drawing was being freed
before the actual draw call, which invalidates the uniform.
This makes the data only be freed after drawing.
2017-07-10 11:39:08 +02:00
Dalai Felinto
15f5457502
Draw Manager: Use defines instead of hardcoded enum values
2017-07-07 12:34:36 +02:00
6eea22b2b7
Eevee: Fix Planar Reflection bug / background artifact.
...
This was cause by a missing uniform.
2017-07-06 18:28:25 +02:00
d02711ed88
Eevee: Fix the NaN pixel issue.
...
It's cause by degenerate triangle having normals set to (0,0,0) which may not be compressed like it should.
This fix the problem in the final indirect lighting evaluation which might be costly.
2017-07-06 16:01:21 +02:00
e5462421c0
Eevee: Add support for common BSDFs.
...
Add Diffuse BSDF, and Glossy.
Also Use World normal instead of view normal as input.
2017-07-06 13:32:19 +02:00
f67c331bed
Eevee: Volumetrics: Avoid light leaking if last step is going trough geometry.
2017-07-06 00:28:13 +02:00
91808a67e8
Eevee: Volumetrics: Fix enum flag.
2017-07-05 22:17:09 +02:00
7b565c8a76
Eevee: Fix typo...
2017-07-05 19:57:02 +02:00
c62f82e35b
Eevee: Fixups.
...
Fix float promotion and missing layer parameters.
2017-07-05 19:15:32 +02:00
f6c739cbcd
Eevee: Volumetrics: Add Light contribution clamping.
...
This avoid too much variance at light centers and remove some noise.
2017-07-05 19:14:50 +02:00
031a4d5e22
Eevee: Volumetrics: Do not add anisotropy attribute, average it.
...
This makes no sense to add theses. In cycles, each volume node is computed separatly. In eevee only the combined parameters are evaluated and phase should be averaged in this case.
2017-07-05 18:31:43 +02:00
b5ee6dd9a3
DrawManager: Fix manipulator blend mode.
...
This was giving issue with volumetrics.
2017-07-05 18:29:40 +02:00
291b365e26
Eevee: Volumetrics: Add settings.
2017-07-05 18:28:48 +02:00
8b78a8d9bc
Eevee: Volumetrics: Add support for Position Coordinates.
...
This enables texturing of the noise via procedural or baked textures.
Note that it gets quickly really heavy.
2017-07-05 18:21:06 +02:00
d5448eac6c
Eevee: Volumetrics: Colored Transmittance support.
...
Render the transmittance in another color buffer and apply it separatelly.
It's a bit more slow because the upsample step needs to be done twice.
2017-07-05 18:20:19 +02:00
ed4e62997e
Eevee: Volumetrics: Match cycles scattering.
2017-07-05 18:03:36 +02:00
Dalai Felinto
84d20dd227
Eevee: Fix world test for volumetric
...
Compiler even throws a warning at this.
2017-07-04 18:07:39 +02:00
0ef48ad504
One more fix for merged 'normal map tangents not working correctly when there are no UV maps.'
2017-07-04 16:25:49 +03:00
fc8f6e8f7a
Eevee: Fix Closure define.
2017-07-04 11:40:12 +02:00
b09052002c
Eevee: Add support for volumetrics in node tree.
...
Only volume scatter is implemented for now.
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
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
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
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
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
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
f39d06589e
Fix warnings in draw_cache_impl files
2017-06-29 15:46:00 +02:00
fd3589e4c9
DwM: optimize mesh batch conversion
...
- Replace GWN_vertbuf_attr_set with Gwn_VertBufRaw & GWN_vertbuf_raw_step
to avoid intermediate copy.
- Avoid extra conversion step with: float[3] -> short[3] -> Gwn_PackedNormal.
We can skip the short[3].
Gives approx 6% speedup here.
2017-06-29 20:11:16 +10:00
2343dcf0d2
Gawain: Use common prefix for packed normal
2017-06-29 18:54:23 +10:00
10c887762a
DwM: no need to calculate face normal
2017-06-29 15:52:08 +10:00
abd9d50faa
Cleanup: quiet negative shift warning
2017-06-29 15:34:50 +10:00
f6bb3262f1
DwM: add CD_AUTO_FROM_NAME for mesh conversion
2017-06-29 15:23:47 +10:00
e14fd19105
Eevee: Add Initial support for Principle BRDF.
...
Lots of things not working yet but it's comming.
2017-06-29 01:47:59 +02:00
8d57f4e3c6
Eevee: Remove ShadingData struct.
...
That was a bad idea after all.
2017-06-29 01:47:59 +02:00