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
ada6e720f9
GPU_codegen: Add support for passing attributes through the geometry stage.
...
Should fix some issues with missing attributes in Eevee.
2017-06-28 21:05:43 +02:00
26b699a105
Eevee: Fix shader linking error.
2017-06-28 18:28:52 +02:00
b6a2d255c3
Eevee: Fix Shadow Map bug: fix T51924
2017-06-28 17:21:57 +02:00
03b915d711
Eevee: Fix Shader compilation on certain driver.
2017-06-28 16:51:31 +02:00
1982e724f4
Eevee: Refactor of shading code to be more modular.
...
This will enable creating shading models more easily.
2017-06-28 16:32:08 +02:00
4a061a87e6
DwM: mesh data now only creates data thats used
...
Read from the GPUMaterial to find custom-data layers used for drawing.
This resolves problem where having UV's would always calculate tangents
causing noticeable slow down compared to 2.7x.
2017-06-28 13:44:28 +10:00
e78c0840f2
DwM: create eevee materials before the mesh
...
To know which custom-data layers will be needed in the mesh.
No functional change yet.
2017-06-28 13:36:55 +10:00
fc3d0da2fd
DWM: Fix own error checking wrong layer type
...
Would calculate all tangents for every UV layer.
2017-06-28 11:39:05 +10:00
87dd9c31a0
GPU: split GPU_material_from_nodetree in two
...
Add GPU_material_from_nodetree_find to avoid having to construct other
arguments which won't be used in the case the material is exists.
2017-06-28 10:59:25 +10:00
df70e3de63
DWM: separate tangents from UV conversion
...
Prepare for different number of UV/Tangent layers.
2017-06-28 09:55:40 +10:00
2ed82d2e6b
Fix missing globalsBlock in edit mode latice drawing
...
This was causing lattice vertices not to be drawn.
2017-06-27 18:40:39 +02:00
d04f30c5d8
Implement weight colors for lattices in draw manager
2017-06-27 15:59:13 +02:00
6e83ace809
LightProbes: Change 3d view display shape.
...
Introduce specific shape for each probe type to easily identify them.
2017-06-27 15:00:14 +02:00
cbfdd02f2c
Fix typo in Eevee hair UV handling
2017-06-27 11:59:22 +02:00
c218d4b008
Eevee: Bloom: fix black bloom artifacts.
2017-06-27 05:18:00 +02:00
0394c04a7f
Eevee: Add Planar reflection blurring.
...
This method is very cheap and inaccurate. This will fill the gap untill better model is supported.
2017-06-26 21:04:53 +02:00
daf02baaea
Add new DRW_draw_pass_subset function
...
This function allows to draw only a selected range of shading groups.
This is required for some special situations as grease pencil strokes.
2017-06-26 20:42:58 +02:00
bafb904807
Fix T51559: Update draw cache when changing flat/smooth shading
...
This also renames some flags/variables to be more generic for updating
purposes. The call used here was previously only used for updating
paint data, but as it was reused here, flags and variables were renamed
to accomodate more clearly to the new usages.
2017-06-26 14:52:59 +02:00
e304150701
Enable shadow catching for Eevee hair
...
Shadow catching was disabled for hair in Eevee, because of an issue in
the shadow maps. The issue has since been resolved, so this re-enables
shadow catching for hair.
2017-06-26 12:30:30 +02:00
cbbfacdac0
Hair UV implementation for Eevee
...
This implements UV support for Eevee hair, enabling the usage of
textures.
2017-06-26 12:17:18 +02:00
07f34ee843
Eevee: Fix linking error.
2017-06-24 05:25:33 +02:00