浏览代码

additional work

/feature-new-clouds
Andrem 4 年前
当前提交
39df451d
共有 7 个文件被更改,包括 2216 次插入210 次删除
  1. 598
      Assets/Objects/environment/Clouds/CloudLayers.shadergraph
  2. 770
      Assets/Objects/environment/Clouds/Clouds.shadergraph
  3. 5
      Assets/Objects/environment/Clouds/Shader Graphs_Clouds.mat
  4. 31
      Assets/Scripts/Environment/WindzoneExtended.cs
  5. 11
      Assets/Scripts/Environment/WindzoneExtended.cs.meta
  6. 1001
      Assets/Shaders/UtilityGraphs/1D_Noise.shadersubgraph
  7. 10
      Assets/Shaders/UtilityGraphs/1D_Noise.shadersubgraph.meta

598
Assets/Objects/environment/Clouds/CloudLayers.shadergraph
文件差异内容过多而无法显示
查看文件

770
Assets/Objects/environment/Clouds/Clouds.shadergraph
文件差异内容过多而无法显示
查看文件

5
Assets/Objects/environment/Clouds/Shader Graphs_Clouds.mat


m_Texture: {fileID: 2800000, guid: dfb2be980b2d27e4391744b60ca78600, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _SampleTexture2D_407e857d72904445bb8a02757e0f1e33_Texture_1:
m_Texture: {fileID: 2800000, guid: 7247454f970266b4c8d99e1f01e15296, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_Lightmaps:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}

m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- BOOLEAN_68600FB702FC441CA4969E5B54503936: 1
- Cloud_Fade: 0

31
Assets/Scripts/Environment/WindzoneExtended.cs


using UnityEngine;
[ExecuteAlways]
public class WindzoneExtended : MonoBehaviour
{
public WindZone zone;
// vector for wind, x = radian, y = strength, z = turbulence, w = frequency
private Vector4 _windVector = Vector4.zero;
public string shaderProp = "_WindZone_Vector";
public float test;
// Update is called once per frame
void Update()
{
if (!zone) return;
//Do Wind things
SetDirection();
Shader.SetGlobalVector(shaderProp, _windVector);
}
void SetDirection()
{
var vec = transform.forward;
vec.y = 0;
var sign = Vector3.Dot(Vector3.left, vec) < 0 ? -1f : 1f;
_windVector.x = (Vector3.Angle(Vector3.forward, vec) / 180f * Mathf.PI) * sign;
test = _windVector.x;
}
}

11
Assets/Scripts/Environment/WindzoneExtended.cs.meta


fileFormatVersion: 2
guid: 52e00f3022e5141089fd66fda4d1d30f
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

1001
Assets/Shaders/UtilityGraphs/1D_Noise.shadersubgraph
文件差异内容过多而无法显示
查看文件

10
Assets/Shaders/UtilityGraphs/1D_Noise.shadersubgraph.meta


fileFormatVersion: 2
guid: ac35dfb4c91b7404f8572a5e54d574c6
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3}
正在加载...
取消
保存