updata
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UltimateWater;
|
using UltimateWater;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|||||||
@@ -547,7 +547,7 @@ namespace UltimateWater
|
|||||||
}
|
}
|
||||||
if (_ParticlesInfo == null)
|
if (_ParticlesInfo == null)
|
||||||
{
|
{
|
||||||
_ParticlesInfo = new ComputeBuffer(1, 16, ComputeBufferType.DrawIndirect);
|
_ParticlesInfo = new ComputeBuffer(1, 16, ComputeBufferType.IndirectArguments);
|
||||||
_ParticlesInfo.SetData(new int[4] { 0, 1, 0, 0 });
|
_ParticlesInfo.SetData(new int[4] { 0, 1, 0, 0 });
|
||||||
}
|
}
|
||||||
_ResourcesReady = true;
|
_ResourcesReady = true;
|
||||||
|
|||||||
@@ -259,12 +259,12 @@ namespace UltimateWater
|
|||||||
}
|
}
|
||||||
if (_ParticlesRenderInfo == null)
|
if (_ParticlesRenderInfo == null)
|
||||||
{
|
{
|
||||||
_ParticlesRenderInfo = new ComputeBuffer(1, 16, ComputeBufferType.DrawIndirect);
|
_ParticlesRenderInfo = new ComputeBuffer(1, 16, ComputeBufferType.IndirectArguments);
|
||||||
_ParticlesRenderInfo.SetData(new int[4] { 0, 1, 0, 0 });
|
_ParticlesRenderInfo.SetData(new int[4] { 0, 1, 0, 0 });
|
||||||
}
|
}
|
||||||
if (_ParticlesUpdateInfo == null)
|
if (_ParticlesUpdateInfo == null)
|
||||||
{
|
{
|
||||||
_ParticlesUpdateInfo = new ComputeBuffer(1, 12, ComputeBufferType.DrawIndirect);
|
_ParticlesUpdateInfo = new ComputeBuffer(1, 12, ComputeBufferType.IndirectArguments);
|
||||||
_ParticlesUpdateInfo.SetData(new int[3] { 0, 1, 1 });
|
_ParticlesUpdateInfo.SetData(new int[3] { 0, 1, 1 });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user