Aetheria/Assets/Plugins/GPUTrail/Sample/GPUTrailIndirectSample/GPUTrailIndirectCullingSample.cs
Reinier Vens bb297bf84c Lightning
Created Lightning Gun effect (Uses LineRenderer, very slow)
Created GPU Lightning renderer (very fast, still needs integration)
2021-02-04 04:37:47 +00:00

37 lines
670 B
C#

using UnityEngine;
using System.Runtime.InteropServices;
public class GPUTrailIndirectCullingSample : GPUTrailIndirectCulling
{
public GPUTrailIndirectSampleParticle _particle;
protected override int TrailNumMax
{
get
{
return _particle._particleNum;
}
}
protected override void Awake()
{
base.Awake();
_particle.Init();
}
protected override bool UpdateInputBuffer()
{
_particle.UpdateInputBuffer(_inputBuffer);
return true;
}
protected override void ReleaseBuffer()
{
base.ReleaseBuffer();
_particle.ReleaseBuffer();
}
}