From 8697f2947cfe0506c15ac790455b466bb0601bac Mon Sep 17 00:00:00 2001 From: CrispyPin Date: Mon, 20 Feb 2023 21:32:30 +0100 Subject: [PATCH] sunset box: yes --- Assets/sunset_box/Sunset Env.mat | 2 +- Assets/sunset_box/sunset_box.unity | 15 ++++++++++----- Assets/sunset_box/sunset_env_dynamic.shader | 2 +- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/Assets/sunset_box/Sunset Env.mat b/Assets/sunset_box/Sunset Env.mat index 7cde081..e9be469 100644 --- a/Assets/sunset_box/Sunset Env.mat +++ b/Assets/sunset_box/Sunset Env.mat @@ -108,7 +108,7 @@ Material: - _SunRadius: 0.037 - _Temp: 0.703 - _UVSec: 0 - - _WaveSpeed: 0.5 + - _WaveSpeed: 1 - _WaveStrength: 0.5 - _ZWrite: 1 m_Colors: diff --git a/Assets/sunset_box/sunset_box.unity b/Assets/sunset_box/sunset_box.unity index 3b52c54..64da21e 100644 --- a/Assets/sunset_box/sunset_box.unity +++ b/Assets/sunset_box/sunset_box.unity @@ -221,7 +221,7 @@ SphereCollider: m_Enabled: 1 serializedVersion: 2 m_Radius: 0.05 - m_Center: {x: 0.75, y: 0, z: -0.75} + m_Center: {x: 0.75, y: 0, z: 0.75} --- !u!1 &1702728164 GameObject: m_ObjectHideFlags: 0 @@ -248,7 +248,7 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1702728164} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0.75, y: 0, z: -0.75} + m_LocalPosition: {x: 0.75, y: 0, z: 0.75} m_LocalScale: {x: 0.1, y: 0.1, z: 0.1} m_Children: [] m_Father: {fileID: 733733049} @@ -426,7 +426,7 @@ PrefabInstance: - target: {fileID: -8679921383154817045, guid: 5009e49fafd33ed0e980b53b1f9e954d, type: 3} propertyPath: m_LocalRotation.w - value: 0.9982502 + value: 1 objectReference: {fileID: 0} - target: {fileID: -8679921383154817045, guid: 5009e49fafd33ed0e980b53b1f9e954d, type: 3} @@ -436,7 +436,7 @@ PrefabInstance: - target: {fileID: -8679921383154817045, guid: 5009e49fafd33ed0e980b53b1f9e954d, type: 3} propertyPath: m_LocalRotation.y - value: -0.059132166 + value: 0 objectReference: {fileID: 0} - target: {fileID: -8679921383154817045, guid: 5009e49fafd33ed0e980b53b1f9e954d, type: 3} @@ -451,7 +451,7 @@ PrefabInstance: - target: {fileID: -8679921383154817045, guid: 5009e49fafd33ed0e980b53b1f9e954d, type: 3} propertyPath: m_LocalEulerAnglesHint.y - value: -6.78 + value: 0 objectReference: {fileID: 0} - target: {fileID: -8679921383154817045, guid: 5009e49fafd33ed0e980b53b1f9e954d, type: 3} @@ -478,6 +478,11 @@ PrefabInstance: propertyPath: m_Name value: sunset_box objectReference: {fileID: 0} + - target: {fileID: 919132149155446097, guid: 5009e49fafd33ed0e980b53b1f9e954d, + type: 3} + propertyPath: m_StaticEditorFlags + value: 0 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 5009e49fafd33ed0e980b53b1f9e954d, type: 3} --- !u!4 &2104997436 stripped diff --git a/Assets/sunset_box/sunset_env_dynamic.shader b/Assets/sunset_box/sunset_env_dynamic.shader index cdf2220..e401471 100644 --- a/Assets/sunset_box/sunset_env_dynamic.shader +++ b/Assets/sunset_box/sunset_env_dynamic.shader @@ -105,7 +105,7 @@ } float3 get_water_normal(float2 pos) { - pos *= 0.05; + pos *= 0.5; float time = _Time.x * _WaveSpeed + 5; // offset is to make it look better at frame 0 float t1 = time * 0.18; float3 normal = (tex2D(_WaterNormal, pos + float2(t1, -t1 * 0.5)) - 0.5) * 0.5;