Cycles: Rework Principled BSDF Emission #111155

Merged
Lukas Stockner merged 7 commits from LukasStockner/blender:emission-principled into main 2023-09-13 03:05:35 +02:00

7 Commits

Author SHA1 Message Date
Lukas Stockner dcb7b4e1f1 Merge branch 'main' into emission-principled 2023-09-13 03:03:12 +02:00
Lukas Stockner 4edf97ffd1 Merge remote-tracking branch 'origin/main' into emission-principled 2023-09-13 00:29:34 +02:00
Lukas Stockner 07cc2a12d0 Merge branch 'main' into emission-principled 2023-09-11 03:17:39 +02:00
Weizhen Huang 8813bb0d4a Fix discrepancy in principled emission alpha test
surface BSDF was skipped when sampling light
2023-08-16 16:26:06 +02:00
Lukas Stockner c54e867262 Versioning for rare corner case 2023-08-15 23:42:40 +00:00
Lukas Stockner fd4ad794e2 Cycles: Also move transparency into Principled node internally
For now, the transparency (which was also expanded out) could have remained
separate, but in the future when we e.g. implement the thin sheet mode, it'll
be helpful to handle transparency from within the node.

Note that there's optimization potential here - for fully transparent surfaces
and when evaluating transparent shadows, we should skip evaluating the other
components. Same goes for evaluating emission during light sampling.
2023-08-15 23:42:40 +00:00
Lukas Stockner 8bc33c2e62 Cycles: Move Emission in Principled BSDF below Sheen and Coat
This way, sheen (e.g. a dust layer) and coat (e.g. a layer of paint) partially
obscure the emission and reduce its intensity.

In terms of implementation, this requires moving Emission, which previously
was expanded into a separate node, into the Principled node in SVM and OSL
so that we can compute the layering properly.
2023-08-15 23:42:40 +00:00