Commit Graph

105 Commits

Author SHA1 Message Date
Charles deRousiers
b369cdd7dd Fix Strata visualization name typo
#rb none
#jira none
#preflight shader

[CL 20449271 by Charles deRousiers in ue5-main branch]
2022-06-01 04:16:30 -04:00
Charles deRousiers
0a30a91970 Add Strata wrap-sub-surface lighting support.
This is the initial version for supporting wrap lighting with Strata, allowing to convert legacy subsurface surface into Strata. This initial version is not fully correct (energy perservation is not correct due to non-normalized phase function, which needs to be revisited).

#rb none
#jira none
#fyi sebastien.hillaire
#preflight shaders

[CL 20345473 by Charles deRousiers in ue5-main branch]
2022-05-24 04:52:51 -04:00
Charles deRousiers
bac94103d9 Add SSS phase anisotropy debug display.
#rb none
#jira none
#preflight shaders

[CL 20293264 by Charles deRousiers in ue5-main branch]
2022-05-20 08:57:40 -04:00
Charles deRousiers
0aff543025 * Add SSS phase function support to Strata (only used for 'single scattering as transmission' on SSS material).
* Change SSS type to allows more enums. This will be used by SSS wrapping mode later on.
* Add bool for enabling/disable light diffusion on Strata material (on by default).
* Fix shader compilation issue on preview material due to decal code

#rb none
#jira none
#preflight 6287886b8828ea88c84fb230
#fyi sebastien.hillaire

[CL 20293186 by Charles deRousiers in ue5-main branch]
2022-05-20 08:42:55 -04:00
Charles deRousiers
9beb0dbd95 Fix shader warning when Strata is enabled.
#rb none
#jira none
#preflight shaders

[CL 20241107 by Charles deRousiers in ue5-main branch]
2022-05-17 08:19:52 -04:00
Sebastien Hillaire
8e389aec73 Strata - SSS data rework and optimisation for classification and SSS. Gain quite a bit of performance back on low end deferred platforms.
Now header is only uint and extra data is only read if needed.

#rb none
#preflight https://horde.devtools.epicgames.com/job/62821984046b81bf9393b136
#fyi charles.derousiers

[CL 20221584 by Sebastien Hillaire in ue5-main branch]
2022-05-16 05:54:34 -04:00
Sebastien Hillaire
a1c54d44e8 Strata - More detailed material bytes information.
#rb none
#preflight none

[CL 20179102 by Sebastien Hillaire in ue5-main branch]
2022-05-13 06:36:34 -04:00
Charles deRousiers
fb23f03124 Add STRATA_COMPILER.
#rb none
#jira none
#preflight shaders
#fyi sebastien.hillaire

[CL 20055673 by Charles deRousiers in ue5-main branch]
2022-05-05 05:08:40 -04:00
Sebastien Hillaire
1d9b8c6128 Strata - improved "strata tree as a graph" look.
#rb none
#preflight none

[CL 20039320 by Sebastien Hillaire in ue5-main branch]
2022-05-04 05:55:02 -04:00
Sebastien Hillaire
1bc3097d3b Strata - Added TransmittanceBelowAlongN which will be useful later with the path tracer when evaluating a single BSDF and choosing a refractions path.
#rb none
#preflight none
#fyi charles.derousiers, chris.kulla

[CL 20039247 by Sebastien Hillaire in ue5-main branch]
2022-05-04 05:35:51 -04:00
Sebastien Hillaire
ca48046e8f Strata - renaming to clarify what is throughput, transmittance, along V or N, and what is transmittance for matter layered above.
#rb none
#preflight none
#fyi charles.derousiers

[CL 20039048 by Sebastien Hillaire in ue5-main branch]
2022-05-04 04:54:34 -04:00
Sebastien Hillaire
971eb2d187 Strata - added strata tree view as a graph. Only for DXC since FXC would drown.
#rb none
#preflight none
#fyi charles.derousiers

[CL 20022971 by Sebastien Hillaire in ue5-main branch]
2022-05-03 05:59:34 -04:00
Sebastien Hillaire
1fe4ff5319 Strata - update to link BSDF indices and Operator indices via colors
#rb none
#preflight none

[CL 19899179 by Sebastien Hillaire in ue5-main branch]
2022-04-25 04:04:26 -04:00
Sebastien Hillaire
3e34866054 Starta - more material topology debug
#rb none
#preflight none

[CL 19888730 by Sebastien Hillaire in ue5-main branch]
2022-04-23 09:11:34 -04:00
Sebastien Hillaire
e8b6d053d8 Strata - added cube for material vismode 3
#rb none
#preflight none

[CL 19862023 by Sebastien Hillaire in ue5-main branch]
2022-04-22 04:02:59 -04:00
Sebastien Hillaire
a323035e1c Strata - fixed bad emissive usage in forward shaded translucent.
#rb none
#preflight none
#fyi charles.derousiers

[CL 19848264 by Sebastien Hillaire in ue5-main branch]
2022-04-21 09:24:07 -04:00
Sebastien Hillaire
0ca67b30fc Strata visualise now account for resolution scaling (when rendering and sampling the strata material).
#rb none
#preflight none
#fyi charles.derousiers

[CL 19847200 by Sebastien Hillaire in ue5-main branch]
2022-04-21 08:13:06 -04:00
Sebastien Hillaire
ad68e32c3b Strata - debug starta tree visualisation load BSDFs on the fly to reduce compiler issue and increase occupancy.
#rb none
#preflight none

[CL 19846334 by Sebastien Hillaire in ue5-main branch]
2022-04-21 06:23:54 -04:00
Sebastien Hillaire
d98af6856e Strata - visualisation - do not show BSDF with coverage of 0 and do not present BSDF as operator to the user.
#rb none
#preflight none
#fyi charles.derousiers

[CL 19846089 by Sebastien Hillaire in ue5-main branch]
2022-04-21 05:50:43 -04:00
Sebastien Hillaire
7525189a63 Strata
- fix for shaders compilation complications with FXC
- fix for missing parameters that were not showing with DXC.

#rb none
#preflight none

[CL 19835879 by Sebastien Hillaire in ue5-main branch]
2022-04-20 15:12:05 -04:00
Sebastien Hillaire
2a61e5d06b Strata tree vis now show each slab independentely.
Common functions have been made commin in StrataLightingCommon.ush.

#rb none
#preflight https://horde.devtools.epicgames.com/job/62600f27e30cb43e8cb819e3
#fyi charles.derousiers

[CL 19829447 by Sebastien Hillaire in ue5-main branch]
2022-04-20 09:59:26 -04:00
Sebastien Hillaire
c3aeb6eab7 Strata - Advanced debug progress.
- This debug mode is mode 3.
 - StrataTree can be written/read and used in later pass to print/draw on screen.

#rb none
#preflight 625864a37a394d0082adb970

[CL 19760364 by Sebastien Hillaire in ue5-main branch]
2022-04-14 14:28:02 -04:00
Charles deRousiers
0173904cfe Rename Strata light transmittance from 'LightWeight' into WeightL.
#rb none
#jira none
#preflight shader
#fyi sebastien.hillaire

[CL 19752383 by Charles deRousiers in ue5-main branch]
2022-04-14 04:04:13 -04:00
Charles deRousiers
f99bcdfc64 Fix Strata visualization multi-pass.
#rb none
#jira none
#preflight 6257197b153630bb90e14d05
#fyi sebastien.hillaire

[CL 19752004 by Charles deRousiers in ue5-main branch]
2022-04-14 02:23:54 -04:00
Charles deRousiers
675a8955df Add Strata light transmittance attenuation for layered slab.
#rb none
#jira none
#preflight 6256f00a77269238e1689a48
#fyi sebastien.hillaire

[CL 19741086 by Charles deRousiers in ue5-main branch]
2022-04-13 12:11:36 -04:00