Lightning
Created Lightning Gun effect (Uses LineRenderer, very slow) Created GPU Lightning renderer (very fast, still needs integration)
This commit is contained in:
parent
3a9ee2ccf7
commit
bb297bf84c
100 changed files with 7105 additions and 13 deletions
14
Assets/Plugins/GPUTrail/Sample/GPUTrailSample/AutoRotate.cs
Normal file
14
Assets/Plugins/GPUTrail/Sample/GPUTrailSample/AutoRotate.cs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
public class AutoRotate : MonoBehaviour {
|
||||
|
||||
public Vector3 rotSpeed;
|
||||
|
||||
|
||||
void Update () {
|
||||
|
||||
transform.Rotate(rotSpeed * Time.deltaTime);
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue