add postprocess confg params & add sounds folder

master
tigerchen 6 years ago
parent 1f6cca915c
commit 81a2f773bc
  1. 10
      01_ForstCoronation/Unity-19050-01_ForstCoronation/19050-01_ForstCoronation/Assets/Scenes/Ice.unity
  2. 12
      01_ForstCoronation/Unity-19050-01_ForstCoronation/19050-01_ForstCoronation/Assets/Scripts/DebugUI.cs
  3. 65
      01_ForstCoronation/Unity-19050-01_ForstCoronation/19050-01_ForstCoronation/Assets/Scripts/PostProcessController.cs
  4. 11
      01_ForstCoronation/Unity-19050-01_ForstCoronation/19050-01_ForstCoronation/Assets/Scripts/PostProcessController.cs.meta
  5. 8
      01_ForstCoronation/Unity-19050-01_ForstCoronation/19050-01_ForstCoronation/Assets/Sounds.meta
  6. 3351
      01_ForstCoronation/Unity-19050-01_ForstCoronation/19050-01_ForstCoronation/Assets/Visual Effect Graphs/iceVFX_2018.vfx
  7. 4
      01_ForstCoronation/Unity-19050-01_ForstCoronation/19050-01_ForstCoronation/Packages/manifest.json

@ -467,11 +467,11 @@ GameObject:
- component: {fileID: 590248848}
- component: {fileID: 590248847}
- component: {fileID: 590248850}
- component: {fileID: 590248851}
- component: {fileID: 590248852}
- component: {fileID: 590248853}
- component: {fileID: 590248854}
- component: {fileID: 590248855}
- component: {fileID: 590248851}
m_Layer: 8
m_Name: 01FrostCamera
m_TagString: MainCamera
@ -620,10 +620,10 @@ MonoBehaviour:
m_GameObject: {fileID: 590248846}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 45099d624c1e6c14e9514f4e5ea1ed9c, type: 3}
m_Script: {fileID: 11500000, guid: b5cf9d5827877014ba6331a64e1b4fe2, type: 3}
m_Name:
m_EditorClassIdentifier:
_clearAlpha: 1
vignette_intensity: 0.3
--- !u!82 &590248852
AudioSource:
m_ObjectHideFlags: 0
@ -631,10 +631,10 @@ AudioSource:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 590248846}
m_Enabled: 0
m_Enabled: 1
serializedVersion: 4
OutputAudioMixerGroup: {fileID: 0}
m_audioClip: {fileID: 0}
m_audioClip: {fileID: 8300000, guid: a4262e40263883544a1d847d5a920591, type: 3}
m_PlayOnAwake: 0
m_Volume: 1
m_Pitch: 1

@ -137,7 +137,7 @@ public class DebugUI : MonoBehaviour
lerp_val = 1;
stat = "completed";
StartCoroutine("sendCompleted");
Invoke("setButtonInteractable", delay_sec);
Invoke("switchButtonStat", delay_sec);
button.GetComponent<Text>().text = stat;
Debug.Log(stat);
}
@ -149,7 +149,7 @@ public class DebugUI : MonoBehaviour
{
lerp_val = 0;
stat = "wait";
Invoke("setButtonInteractable", delay_sec);
Invoke("switchButtonStat", delay_sec);
button.GetComponent<Text>().text = stat;
Debug.Log(stat);
}
@ -186,8 +186,8 @@ public class DebugUI : MonoBehaviour
public void enterGrow()
{
setButtonInteractable();
switchButtonStat();
Camera.main.GetComponent<AudioSource>().Play();
stat = "growing";
vfx.SendEvent("Emit");
vfx.SetBool("isGrowing", true);
@ -197,7 +197,7 @@ public class DebugUI : MonoBehaviour
public void enterVanish()
{
setButtonInteractable();
switchButtonStat();
stat = "vanishing";
vfx.SetBool("isGrowing", false);
button.GetComponent<Text>().text = stat;
@ -211,7 +211,7 @@ public class DebugUI : MonoBehaviour
emitter.GetComponent<Renderer>().enabled = isShowed;
}
private void setButtonInteractable()
private void switchButtonStat()
{
bool _stat = button.GetComponentInParent<Button>().interactable;
button.GetComponentInParent<Button>().interactable = !_stat;

@ -0,0 +1,65 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Rendering.PostProcessing;
using UltraCombos.Configuration;
public class PostProcessController : MonoBehaviour
{
[Config]
[Range(-2f, 2f)]
public float post_exposure = -0.6f;
[Config]
[Range(-100f, 100f)]
public float contrast = 100f;
[Config]
[Range(-100f, 100f)]
public float saturation = -20f;
[Config]
[Range(0, 1f)]
public float bloom_intensity = 1f;
[Config]
[Range(0, 1f)]
public float bloom_threshold = 0.6f;
[Config]
[Range(0, 1f)]
public float vignette_intensity = 0.3f;
PostProcessVolume volume;
// Start is called before the first frame update
void Start()
{
volume = GetComponent<PostProcessVolume>();
}
// Update is called once per frame
void Update()
{
ColorGrading col_grad;
if (volume.profile.TryGetSettings(out col_grad))
{
col_grad.postExposure.value = post_exposure;
col_grad.contrast.value = contrast;
col_grad.saturation.value = saturation;
}
Bloom bloom;
if(volume.profile.TryGetSettings(out bloom))
{
bloom.intensity.value = bloom_intensity;
bloom.threshold.value = bloom_threshold;
}
Vignette vig;
if (volume.profile.TryGetSettings(out vig))
{
vig.intensity.value = vignette_intensity;
}
}
}

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: b5cf9d5827877014ba6331a64e1b4fe2
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 94263f3d18893304fa8910633da1b24f
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

@ -4,16 +4,16 @@
"com.ultracombos.grpc": "file:<project>/../../../../../_Package/com.ultracombos.grpc",
"com.ultracombos.osc": "file:<project>/../../../../../_Package/com.ultracombos.osc",
"com.ultracombos.tuio": "file:<project>/../../../../../_Package/com.ultracombos.tuio",
"jp.keijiro.klak.spout": "file:<project>/../../../../../_Package/KlakSpout",
"com.unity.ads": "2.0.8",
"com.unity.analytics": "3.2.2",
"com.unity.collab-proxy": "1.2.15",
"com.unity.package-manager-ui": "2.0.8",
"com.unity.postprocessing": "2.2.2",
"com.unity.postprocessing": "2.1.7",
"com.unity.purchasing": "2.0.3",
"com.unity.render-pipelines.high-definition": "4.10.0-preview",
"com.unity.textmeshpro": "1.4.1",
"com.unity.visualeffectgraph": "4.10.0-preview",
"jp.keijiro.klak.spout": "file:<project>/../../../../../_Package/KlakSpout",
"com.unity.modules.ai": "1.0.0",
"com.unity.modules.animation": "1.0.0",
"com.unity.modules.assetbundle": "1.0.0",

Loading…
Cancel
Save