Replaced Unity TAA with PlayDead TAA Custom keyboard layout test scene Adjusted Aetheric Drive VFX to be more subtle Reworked stardust VFX to reduce flickering artifacts Added Action Bar & weapon groups saving/loading Implemented security levels and faction safe zone visualization Improved station placement (now include defensive turrets)
31 lines
889 B
C#
31 lines
889 B
C#
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
|
|
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using Random = UnityEngine.Random;
|
|
|
|
[ExecuteInEditMode]
|
|
public class BlueNoiseProvider : MonoBehaviour
|
|
{
|
|
public Texture2D NoiseTexture;
|
|
|
|
private void Start()
|
|
{
|
|
Shader.SetGlobalTexture("_DitheringTex", NoiseTexture);
|
|
}
|
|
|
|
private void Update()
|
|
{
|
|
Shader.SetGlobalVector("_DitheringCoords", new Vector4(
|
|
(float)Screen.width / NoiseTexture.width,
|
|
(float)Screen.height / NoiseTexture.height,
|
|
Random.value,
|
|
Random.value
|
|
));
|
|
Shader.SetGlobalInt("_FrameNumber", Time.frameCount);
|
|
}
|
|
}
|