Bit of Terrain but also changed cameras

This commit is contained in:
marcgauch committed 2023-12-14 22:17:50 +01:00
1 parent b774e84175
commit 251749e617
523 files changed
+16906 -27

No files matched your search

@@ -0,0 +1,20 @@
using UnityEngine;
using System.Collections;
public class ScrollingUVs_Layers : MonoBehaviour
{
//public int materialIndex = 0;
public Vector2 uvAnimationRate = new Vector2( 1.0f, 0.0f );
public string textureName = "_MainTex";
Vector2 uvOffset = Vector2.zero;
void LateUpdate()
{
uvOffset += ( uvAnimationRate * Time.deltaTime );
if( GetComponent<Renderer>().enabled )
{
GetComponent<Renderer>().sharedMaterial.SetTextureOffset( textureName, uvOffset );
}
}
}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: e3d28cb150ad86f4a8100312a4aea7a1
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: