|
|
|
|
|
|
public static string kEnableSSSAndTransmission = "Enable SSS and Transmission"; |
|
|
|
|
|
|
|
public static string kForwardOnly = "Forward Only"; |
|
|
|
public static string kDeferredDepthPrePass = "Deferred Depth Prepass"; |
|
|
|
public static string kDeferredDepthPrepass = "Deferred Depth Prepass"; |
|
|
|
public static string kDeferredDepthPrepassATestOnly = "Deferred Depth Prepass ATest Only"; |
|
|
|
|
|
|
|
public static string KEnableTransparentPrepass = "Enable Transparent Prepass"; |
|
|
|
|
|
|
public bool enableDepthPrepassWithDeferredRendering = false; |
|
|
|
public bool enableAlphaTestOnlyInDeferredPrepass = false; |
|
|
|
|
|
|
|
public bool enableTransparentPrePass = true; |
|
|
|
public bool enableTransparentPrepass = true; |
|
|
|
public bool enableTransparentPostPass = true; |
|
|
|
public bool enableTransparentPostpass = true; |
|
|
|
public bool enableDistortion = true; |
|
|
|
public bool enablePostprocess = true; |
|
|
|
|
|
|
|
|
|
|
frameSettings.enableDepthPrepassWithDeferredRendering = this.enableDepthPrepassWithDeferredRendering; |
|
|
|
frameSettings.enableAlphaTestOnlyInDeferredPrepass = this.enableAlphaTestOnlyInDeferredPrepass; |
|
|
|
|
|
|
|
frameSettings.enableTransparentPrePass = this.enableTransparentPrePass; |
|
|
|
frameSettings.enableTransparentPrepass = this.enableTransparentPrepass; |
|
|
|
frameSettings.enableTransparentPostPass = this.enableTransparentPostPass; |
|
|
|
frameSettings.enableTransparentPostpass = this.enableTransparentPostpass; |
|
|
|
frameSettings.enableDistortion = this.enableDistortion; |
|
|
|
frameSettings.enablePostprocess = this.enablePostprocess; |
|
|
|
|
|
|
|
|
|
|
aggregate.enableDepthPrepassWithDeferredRendering = frameSettings.enableDepthPrepassWithDeferredRendering; |
|
|
|
aggregate.enableAlphaTestOnlyInDeferredPrepass = frameSettings.enableAlphaTestOnlyInDeferredPrepass; |
|
|
|
|
|
|
|
aggregate.enableTransparentPrePass = frameSettings.enableTransparentPrePass; |
|
|
|
aggregate.enableTransparentPrepass = frameSettings.enableTransparentPrepass; |
|
|
|
aggregate.enableTransparentPostPass = frameSettings.enableTransparentPostPass; |
|
|
|
aggregate.enableTransparentPostpass = frameSettings.enableTransparentPostpass; |
|
|
|
aggregate.enableDistortion = camera.cameraType == CameraType.Reflection ? false : frameSettings.enableDistortion; |
|
|
|
|
|
|
|
// Planar and real time cubemap doesn't need post process and render in FP16
|
|
|
|
|
|
|
DebugMenuManager.instance.AddDebugItem<bool>(menuName, kDeferredDepthPrepassATestOnly, () => frameSettings.enableDepthPrepassWithDeferredRendering, (value) => frameSettings.enableDepthPrepassWithDeferredRendering = (bool)value); |
|
|
|
DebugMenuManager.instance.AddDebugItem<bool>(menuName, KEnableTransparentPrepass, () => frameSettings.enableAlphaTestOnlyInDeferredPrepass, (value) => frameSettings.enableAlphaTestOnlyInDeferredPrepass = (bool)value); |
|
|
|
|
|
|
|
DebugMenuManager.instance.AddDebugItem<bool>(menuName, KEnableTransparentPrepass, () => frameSettings.enableTransparentPrePass, (value) => frameSettings.enableTransparentPrePass = (bool)value); |
|
|
|
DebugMenuManager.instance.AddDebugItem<bool>(menuName, KEnableTransparentPrepass, () => frameSettings.enableTransparentPrepass, (value) => frameSettings.enableTransparentPrepass = (bool)value); |
|
|
|
DebugMenuManager.instance.AddDebugItem<bool>(menuName, kEnableTransparentPostpass, () => frameSettings.enableTransparentPostPass, (value) => frameSettings.enableTransparentPostPass = (bool)value); |
|
|
|
DebugMenuManager.instance.AddDebugItem<bool>(menuName, kEnableTransparentPostpass, () => frameSettings.enableTransparentPostpass, (value) => frameSettings.enableTransparentPostpass = (bool)value); |
|
|
|
DebugMenuManager.instance.AddDebugItem<bool>(menuName, kEnableDistortion, () => frameSettings.enableDistortion, (value) => frameSettings.enableDistortion = (bool)value); |
|
|
|
DebugMenuManager.instance.AddDebugItem<bool>(menuName, kEnablePostprocess, () => frameSettings.enablePostprocess, (value) => frameSettings.enablePostprocess = (bool)value); |
|
|
|
|
|
|
|