Tim Cooper
7 年前
当前提交
7a9a255f
共有 17 个文件被更改,包括 126 次插入 和 83 次删除
-
6MaterialGraphProject/Assets/ShaderVariablesFunctions.hlsl
-
1MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/AbstractMaterialGraph.cs
-
5MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Graphs/SamplerStateShaderProperty.cs
-
2MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Nodes/Artistic/Normal/NormalUnpackNode.cs
-
5MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Nodes/Input/Matrix/TransformationMatrixNode.cs
-
2MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Nodes/Input/Texture/CubemapNode.cs
-
2MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Nodes/Input/Texture/Delete/TextureLODNode.cs
-
32MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Nodes/Input/Texture/Texture2DNode.cs
-
34MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Nodes/Math/Vector/TransformNode.cs
-
34MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Util/ShaderGenerator.cs
-
6MaterialGraphProject/Assets/UnityShaderEditor/Editor/Drawing/PreviewManager.cs
-
18MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Util/MatrixNames.cs
-
11MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Util/MatrixNames.cs.meta
-
18MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Util/ShaderGeneratorNames.cs
-
11MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Util/ShaderGeneratorNames.cs.meta
-
11MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Util/UvChannel.cs
-
11MaterialGraphProject/Assets/UnityShaderEditor/Editor/Data/Util/UvChannel.cs.meta
|
|||
using System; |
|||
|
|||
namespace UnityEditor.ShaderGraph { |
|||
public struct MatrixNames |
|||
{ |
|||
|
|||
public const string Model = "UNITY_MATRIX_M"; |
|||
public const string ModelInverse = "UNITY_MATRIX_I_M"; |
|||
public const string View = "UNITY_MATRIX_V"; |
|||
public const string ViewInverse = "UNITY_MATRIX__I_V"; |
|||
public const string Projection = "UNITY_MATRIX_P"; |
|||
public const string ViewProjection = "UNITY_MATRIX_VP"; |
|||
public const string ModelView = "UNITY_MATRIX_MV"; |
|||
public const string ModelViewTransposed = "UNITY_MATRIX_T_MV"; |
|||
public const string ModelViewInverseTransposed = "UNITY_MATRIX_IT_MV"; |
|||
public const string ModelViewProjection = "UNITY_MATRIX_MVP"; |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 1358e9b39cd7e8442bece5b15a2a7c63 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System; |
|||
|
|||
namespace UnityEditor.ShaderGraph { |
|||
public static class ShaderGeneratorNames |
|||
{ |
|||
private static string[] UV = {"uv0", "uv1", "uv2", "uv3"}; |
|||
public static int UVCount = 4; |
|||
|
|||
public const string ScreenPosition = "screenPosition"; |
|||
public const string VertexColor = "vertexColor"; |
|||
|
|||
|
|||
public static string GetUVName(this UVChannel channel) |
|||
{ |
|||
return UV[(int)channel]; |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 33854ecfd53cd054a99d8cb17b260170 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System; |
|||
|
|||
namespace UnityEditor.ShaderGraph { |
|||
public enum UVChannel |
|||
{ |
|||
uv0 = 0, |
|||
uv1 = 1, |
|||
uv2 = 2, |
|||
uv3 = 3, |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: d77363d2f0df1f544b21d9e8a05f01a1 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue