Unity-NorthStar / data /Assets /Tutorial /pages /Ocean shader_Subsurface Scattering.asset
introvoyz041's picture
Migrated from GitHub
d883ffe verified
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4510294d23d964fe59443526f1ca7c4b, type: 3}
m_Name: Ocean Shader_Subsurface Scattering
m_EditorClassIdentifier:
m_displayName: Subsurface Scattering
m_hierarchyName: Ocean Shader/Subsurface Scattering
m_context: {fileID: 11400000, guid: 95a8f8372a6947e40ad18fcd4817087a, type: 2}
m_markdownFile: {fileID: 0}
m_priority: 1007
m_overrideMarkdownText: '# Subsurface Scattering
![](./Images/OceanShader/Fig0.png)
The
subsurface scattering effect adds tinting/highlights inside steep/tall waves.
It''s implemented using the horizontal displacement length from the vertex shader,
as tall waves appear where there''s significant horizontal displacement, making
subsurface scattering noticeable. The effect uses a two-lobe phase function,
allowing configurable forward and backward scattering. The result is multiplied
by a configurable color. While not physically based, it works well in practice,
adding detail to larger waves and breaking the ocean''s uniform look.
'
m_overrideMarkdownRoot: .\Documentation/