This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)' | |
| Shader "Custom/CS_GeneratedMesh_VertexID_Surf" | |
| { | |
| Properties | |
| { | |
| _Color ("Color", Color) = (1,1,1,1) | |
| _MainTex ("Albedo (RGB)", 2D) = "white" {} | |
| _Glossiness("Smoothness", Range(0,1)) = 0.5 | |
| _Metallic("Metallic", Range(0,1)) = 0.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)' | |
| Shader "Custom/CS_GeneratedMesh_VertexID_Surf" | |
| { | |
| Properties | |
| { | |
| _Color ("Color", Color) = (1,1,1,1) | |
| _MainTex ("Albedo (RGB)", 2D) = "white" {} | |
| _Glossiness("Smoothness", Range(0,1)) = 0.5 | |
| _Metallic("Metallic", Range(0,1)) = 0.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class ApplyScreenshotToMaterial : MonoBehaviour | |
| { | |
| public Material m_targetMaterial; | |
| public string m_targetTextureName = "_MainTex"; | |
| Texture2D m_lastScreenshot; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| using System.Collections; | |
| public class FD_FrequencyDataManager : MonoBehaviour | |
| { | |
| const int m_rawFFTDataSize = 1024; //8192; | |
| float[] m_currentRawFFTDataArray; | |
| const int m_processedFFTDataSize = 128; // separated into 8 sections | |
| float[] m_processedFFTDataArray; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void SpawnMeshStrip(int stripIndex)//, float stripDistanceFromPrevious) | |
| { | |
| Profiler.BeginSample("Set Active"); | |
| m_meshStripGeneratorsGOArray[stripIndex].SetActive(true); | |
| Profiler.EndSample(); | |
| Profiler.BeginSample("Pre Loop Setup"); | |
| m_meshStripGeneratorsGOArray[stripIndex].transform.position = transform.position; | |
| m_meshStripGeneratorsGOArray[stripIndex].transform.rotation = transform.rotation; | |
| m_meshStripGeneratorsGOArray[stripIndex].transform.localScale = Vector3.one; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Shader "Hidden/NewImageEffectShader" | |
| { | |
| Properties | |
| { | |
| _MainTex ("Texture", 2D) = "white" {} | |
| _EffectScaler ("Effect Scaler", float) = 0 | |
| _EffectLerp ("Effect Lerp", float) = 0 | |
| } | |
| SubShader | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Shader "Hidden/NewImageEffectShader" | |
| { | |
| Properties | |
| { | |
| _MainTex ("Texture", 2D) = "white" {} | |
| _EffectScaler ("Effect Scaler", float) = 0 | |
| _EffectLerp ("Effect Lerp", float) = 0 | |
| } | |
| SubShader | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| using System.Collections; | |
| [ExecuteInEditMode] | |
| public class FullscreenEffetScript : MonoBehaviour | |
| { | |
| //public Shader m_fullscreenEffectShader; | |
| Material m_shaderMaterial; | |
| public float m_effectLerp_Amplitude = 2; |