升级6.4.升级水,升级天气
This commit is contained in:
@@ -19,22 +19,13 @@ namespace WaveHarmonic.Crest
|
||||
{
|
||||
var water = _Water;
|
||||
|
||||
if (!water._ShadowLod.Enabled)
|
||||
if (!water._ActiveModules.HasFlag(WaterRenderer.ActiveModules.Shadows))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR
|
||||
if (!WaterRenderer.IsWithinEditorUpdate)
|
||||
{
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
var camera = context.hdCamera.camera;
|
||||
|
||||
// Custom passes execute for every camera. We only support one camera for now.
|
||||
if (!ReferenceEquals(camera, water.Viewer)) return;
|
||||
// TODO: bail when not executing for main light or when no main light exists?
|
||||
// if (renderingData.lightData.mainLightIndex == -1) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user