Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions com.unity.render-pipelines.high-definition/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Fixed path traced subsurface scattering for transmissive surfaces (case 1329403)
- Fixed missing context menu for “Post Anti-Aliasing” in Camera (1357283)
- Fixed error when disabling opaque objects on a camera with MSAA.
- Fixed the emissive being overriden by ray traced sub-surface scattering (case 1364456).

### Changed
- Visual Environment ambient mode is now Dynamic by default.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ Ray traced subsurface scattering uses the [Volume](Volumes.md) framework, so to
| Property | Description |
| -------------- | ------------------------------------------------------------ |
| **Sample Count** | Defines the number of samples that are cast per pixel to evaluate the subsurface scattering lighting. |

## Limitations
* Emissive surfaces are incompatible with ray traced sub-surface scattering.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ void ClosestSubSurface(inout RayIntersectionSubSurface rayIntersection : SV_RayP
bool isVisible;
GetSurfaceAndBuiltinData(fragInput, -incidentDirection, posInput, surfaceData, builtinData, currentVertex, rayIntersection.cone, isVisible);

// make sure we output the normal and the indirect diffuse lighting value
// make sure we output the normal
rayIntersection.outNormal = fragInput.tangentToWorld[2];
rayIntersection.outIndirectDiffuse = builtinData.bakeDiffuseLighting;
// Make sure to output the indirect diffuse lighting value and the emissive value
rayIntersection.outIndirectDiffuse = builtinData.bakeDiffuseLighting + builtinData.emissiveColor;
}