sunset box: yes

This commit is contained in:
Crispy 2023-02-20 21:32:30 +01:00
parent 3f06e84552
commit 8697f2947c
3 changed files with 12 additions and 7 deletions

View file

@ -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:

View file

@ -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

View file

@ -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;