Interface IDataProvider
Interface that Scriptable Render Pipelines should implement to be able to use LookDev window
Namespace: UnityEngine.Rendering.LookDev
Syntax
public interface IDataProvider
Properties
supportedDebugModes
Notify the LookDev about what debug view mode are available in this SRP
Declaration
IEnumerable<string> supportedDebugModes { get; }
Property Value
Type | Description |
---|---|
IEnumerable<String> | The list of the mode, None is not required. |
Methods
Cleanup(StageRuntimeInterface)
Callback called to do any necessary cleanup.
Declaration
void Cleanup(StageRuntimeInterface SRI)
Parameters
Type | Name | Description |
---|---|---|
StageRuntimeInterface | SRI | Access element of the LookDev's scene |
FirstInitScene(StageRuntimeInterface)
Additional configuration required by this SRP on LookDev's scene creation
Declaration
void FirstInitScene(StageRuntimeInterface stage)
Parameters
Type | Name | Description |
---|---|---|
StageRuntimeInterface | stage | Access element of the LookDev's scene |
GetShadowMask(ref RenderTexture, StageRuntimeInterface)
Compute the shadow mask in SRP for LookDev sun simulation
Declaration
void GetShadowMask(ref RenderTexture output, StageRuntimeInterface stage)
Parameters
Type | Name | Description |
---|---|---|
RenderTexture | output | The computed ShadowMask |
StageRuntimeInterface | stage | Access element of the LookDev's scene |
OnBeginRendering(StageRuntimeInterface)
Callback called at the beginning of LookDev rendering.
Declaration
void OnBeginRendering(StageRuntimeInterface stage)
Parameters
Type | Name | Description |
---|---|---|
StageRuntimeInterface | stage | Access element of the LookDev's scene |
OnEndRendering(StageRuntimeInterface)
Callback called at the beginning of LookDev rendering.
Declaration
void OnEndRendering(StageRuntimeInterface stage)
Parameters
Type | Name | Description |
---|---|---|
StageRuntimeInterface | stage | Access element of the LookDev's scene |
UpdateDebugMode(Int32)
Notify the SRP about a change in the DebugMode used
Declaration
void UpdateDebugMode(int debugIndex)
Parameters
Type | Name | Description |
---|---|---|
Int32 | debugIndex | -1: None Others: map the result of supportedDebugModes |
UpdateSky(Camera, Sky, StageRuntimeInterface)
Notify the SRP that sky have changed in LookDev
Declaration
void UpdateSky(Camera camera, Sky sky, StageRuntimeInterface stage)
Parameters
Type | Name | Description |
---|---|---|
Camera | camera | The camera of the LookDev's scene |
Sky | sky | The new Sky informations |
StageRuntimeInterface | stage | Access element of the LookDev's scene |