UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
BurleyNormalizedSSS.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3/*=============================================================================
4BurleyNormalizedSSS.h: Compute the transmission profile and convert parameters
5=============================================================================*/
6
7#pragma once
8
9#include "CoreMinimal.h"
10
11// @param TargetBuffer, needs to be preallocated with TargetBufferSize (RGB is the sample weight, A is the offset), [0] is the center samples, following elements need to be mirrored with A, -A
12// @param TargetBufferSize >0
13// @parma FalloffColor see SubsurfaceProfile.h
14// @parma SurfaceAlbedo see SubsurfaceProfile.h
15// @parma DiffuseMeanFreePath mean free path color scaled by mean free path distance (in mm).
16// @param WorldUnitScale see SubsurfaceProfile.h
17// @param TransmissionTintColor see SubsurfaceProfile.h
19 FLinearColor FalloffColor, float ExtinctionScale,
21 float WorldUnitScale,FLinearColor TransmissionTintColor);
22
23// Compute the Separable Kernel using Burley profile
25 FLinearColor DiffuseMeanFreePath, float ScatterRadius);
26
27//@param FalloffColor from Separable SSS
28//@param SurfaceAlbedo mapped from FallofColor
29//@param DiffuseMeanFreePath mapped from FallofColor
30void MapFallOffColor2SurfaceAlbedoAndDiffuseMeanFreePath(float FalloffColor, float& SurfaceAlbedo, float& DiffuseMeanFreePath);
31
void ComputeTransmissionProfileBurley(FLinearColor *TargetBuffer, uint32 TargetBufferSize, FLinearColor FalloffColor, float ExtinctionScale, FLinearColor SurfaceAlbedo, FLinearColor DiffuseMeanFreePath, float WorldUnitScale, FLinearColor TransmissionTintColor)
Definition BurleyNormalizedSSS.cpp:248
FLinearColor GetDiffuseMeanFreePathFromMeanFreePath(FLinearColor SurfaceAlbedo, FLinearColor MeanFreePath)
Definition BurleyNormalizedSSS.cpp:129
void MapFallOffColor2SurfaceAlbedoAndDiffuseMeanFreePath(float FalloffColor, float &SurfaceAlbedo, float &DiffuseMeanFreePath)
Definition BurleyNormalizedSSS.cpp:56
void ComputeMirroredBSSSKernel(FLinearColor *TargetBuffer, uint32 TargetBufferSize, FLinearColor SurfaceAlbedo, FLinearColor DiffuseMeanFreePath, float ScatterRadius)
Definition BurleyNormalizedSSS.cpp:134
FLinearColor GetMeanFreePathFromDiffuseMeanFreePath(FLinearColor SurfaceAlbedo, FLinearColor DiffuseMeanFreePath)
Definition BurleyNormalizedSSS.cpp:124
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition Color.h:48