Use reactive player settings in volume clouds
This commit is contained in:
parent
3e2264b1d2
commit
692fc6e2b1
2 changed files with 9 additions and 8 deletions
|
|
@ -3,6 +3,7 @@ using System.Linq;
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using GameCult.Aetheria.State.Verse;
|
||||
using GameCult.Mesh;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering;
|
||||
|
||||
|
|
@ -53,7 +54,7 @@ public class VolumeCloudRenderer : EffectBase
|
|||
// The index of 4x4 pixels.
|
||||
private int frameIndex = 0;
|
||||
private bool firstFrame = true;
|
||||
private AetheriaRuntimePlayerSettingsSession _playerSettings;
|
||||
private CultMeshReactiveDocument<AetheriaRuntimePlayerSettingsDocument> _playerSettings;
|
||||
|
||||
[SerializeField]
|
||||
private Shader cloudShader;
|
||||
|
|
@ -103,7 +104,7 @@ public class VolumeCloudRenderer : EffectBase
|
|||
_playerSettings = ResolveClient()
|
||||
.State
|
||||
.Settings
|
||||
.ObservePlayer();
|
||||
.ReactivePlayer();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue