Alex Lian
7 年前
当前提交
3be7d580
共有 91 个文件被更改,包括 2608 次插入 和 1260 次删除
-
295ShaderGraph/HDPipeline/HDUnlitSubShader.cs
-
8TestProjects/ShaderGraph/Assets/Testing/Editor/TestSlot.cs
-
2com.unity.render-pipelines.high-definition/CHANGELOG.md
-
3com.unity.render-pipelines.high-definition/HDRP/Lighting/Volumetrics/VBuffer.hlsl
-
3com.unity.render-pipelines.high-definition/HDRP/Lighting/Volumetrics/VolumetricLighting.compute
-
573com.unity.render-pipelines.lightweight/LWRP/Editor/ShaderGraph/LightWeightPBRSubShader.cs
-
582com.unity.render-pipelines.lightweight/LWRP/Editor/ShaderGraph/LightWeightUnlitSubShader.cs
-
208com.unity.render-pipelines.lightweight/LWRP/Editor/ShaderGraph/lightweightPBRExtraPasses.template
-
94com.unity.render-pipelines.lightweight/LWRP/Editor/ShaderGraph/lightweightPBRForwardPass.template
-
160com.unity.render-pipelines.lightweight/LWRP/Editor/ShaderGraph/lightweightUnlitExtraPasses.template
-
83com.unity.render-pipelines.lightweight/LWRP/Editor/ShaderGraph/lightweightUnlitPass.template
-
43com.unity.shadergraph/CHANGELOG.md
-
6com.unity.shadergraph/Editor/Data/Graphs/BitangentMaterialSlot.cs
-
4com.unity.shadergraph/Editor/Data/Graphs/BooleanMaterialSlot.cs
-
12com.unity.shadergraph/Editor/Data/Graphs/ColorMaterialSlot.cs
-
10com.unity.shadergraph/Editor/Data/Graphs/ColorRGBMaterialSlot.cs
-
4com.unity.shadergraph/Editor/Data/Graphs/CubemapInputMaterialSlot.cs
-
4com.unity.shadergraph/Editor/Data/Graphs/CubemapMaterialSlot.cs
-
4com.unity.shadergraph/Editor/Data/Graphs/DynamicMatrixMaterialSlot.cs
-
4com.unity.shadergraph/Editor/Data/Graphs/DynamicValueMaterialSlot.cs
-
4com.unity.shadergraph/Editor/Data/Graphs/DynamicVectorMaterialSlot.cs
-
12com.unity.shadergraph/Editor/Data/Graphs/GradientInputMaterialSlot.cs
-
6com.unity.shadergraph/Editor/Data/Graphs/GradientMaterialSlot.cs
-
60com.unity.shadergraph/Editor/Data/Graphs/MaterialSlot.cs
-
4com.unity.shadergraph/Editor/Data/Graphs/Matrix2MaterialSlot.cs
-
4com.unity.shadergraph/Editor/Data/Graphs/Matrix3MaterialSlot.cs
-
4com.unity.shadergraph/Editor/Data/Graphs/Matrix4MaterialSlot.cs
-
6com.unity.shadergraph/Editor/Data/Graphs/NormalMaterialSlot.cs
-
6com.unity.shadergraph/Editor/Data/Graphs/PositionMaterialSlot.cs
-
3com.unity.shadergraph/Editor/Data/Graphs/PreviewMode.cs
-
4com.unity.shadergraph/Editor/Data/Graphs/SamplerStateMaterialSlot.cs
-
6com.unity.shadergraph/Editor/Data/Graphs/ScreenPositionMaterialSlot.cs
-
30com.unity.shadergraph/Editor/Data/Graphs/ShaderGraphRequirements.cs
-
4com.unity.shadergraph/Editor/Data/Graphs/SpaceMaterialSlot.cs
-
6com.unity.shadergraph/Editor/Data/Graphs/TangentMaterialSlot.cs
-
4com.unity.shadergraph/Editor/Data/Graphs/Texture2DInputMaterialSlot.cs
-
4com.unity.shadergraph/Editor/Data/Graphs/Texture2DMaterialSlot.cs
-
6com.unity.shadergraph/Editor/Data/Graphs/UVMaterialSlot.cs
-
4com.unity.shadergraph/Editor/Data/Graphs/Vector1MaterialSlot.cs
-
4com.unity.shadergraph/Editor/Data/Graphs/Vector2MaterialSlot.cs
-
4com.unity.shadergraph/Editor/Data/Graphs/Vector3MaterialSlot.cs
-
4com.unity.shadergraph/Editor/Data/Graphs/Vector4MaterialSlot.cs
-
6com.unity.shadergraph/Editor/Data/Graphs/VertexColorMaterialSlot.cs
-
6com.unity.shadergraph/Editor/Data/Graphs/ViewDirectionMaterialSlot.cs
-
98com.unity.shadergraph/Editor/Data/Implementation/NodeUtils.cs
-
2com.unity.shadergraph/Editor/Data/Interfaces/IMayRequireBitangent.cs
-
2com.unity.shadergraph/Editor/Data/Interfaces/IMayRequireMeshUV.cs
-
2com.unity.shadergraph/Editor/Data/Interfaces/IMayRequireNormal.cs
-
2com.unity.shadergraph/Editor/Data/Interfaces/IMayRequirePosition.cs
-
2com.unity.shadergraph/Editor/Data/Interfaces/IMayRequireScreenPosition.cs
-
2com.unity.shadergraph/Editor/Data/Interfaces/IMayRequireTangent.cs
-
2com.unity.shadergraph/Editor/Data/Interfaces/IMayRequireVertexColor.cs
-
2com.unity.shadergraph/Editor/Data/Interfaces/IMayRequireViewDirection.cs
-
60com.unity.shadergraph/Editor/Data/MasterNodes/PBRMasterNode.cs
-
30com.unity.shadergraph/Editor/Data/MasterNodes/UnlitMasterNode.cs
-
10com.unity.shadergraph/Editor/Data/Nodes/Artistic/Normal/NormalCreateNode.cs
-
89com.unity.shadergraph/Editor/Data/Nodes/CodeFunctionNode.cs
-
8com.unity.shadergraph/Editor/Data/Nodes/Input/Basic/ColorNode.cs
-
2com.unity.shadergraph/Editor/Data/Nodes/Input/Geometry/BitangentVectorNode.cs
-
2com.unity.shadergraph/Editor/Data/Nodes/Input/Geometry/NormalVectorNode.cs
-
2com.unity.shadergraph/Editor/Data/Nodes/Input/Geometry/PositionNode.cs
-
2com.unity.shadergraph/Editor/Data/Nodes/Input/Geometry/ScreenPositionNode.cs
-
2com.unity.shadergraph/Editor/Data/Nodes/Input/Geometry/TangentVectorNode.cs
-
2com.unity.shadergraph/Editor/Data/Nodes/Input/Geometry/UVNode.cs
-
2com.unity.shadergraph/Editor/Data/Nodes/Input/Geometry/VertexColorNode.cs
-
2com.unity.shadergraph/Editor/Data/Nodes/Input/Geometry/ViewDirectionNode.cs
-
2com.unity.shadergraph/Editor/Data/Nodes/Input/Scene/FogNode.cs
-
4com.unity.shadergraph/Editor/Data/Nodes/Input/Texture/SampleCubemapNode.cs
-
12com.unity.shadergraph/Editor/Data/Nodes/Input/Texture/SampleTexture2DNode.cs
-
34com.unity.shadergraph/Editor/Data/Nodes/MasterNode.cs
-
6com.unity.shadergraph/Editor/Data/Nodes/Math/Vector/TransformNode.cs
-
2com.unity.shadergraph/Editor/Data/Nodes/Procedural/CheckerboardNode.cs
-
2com.unity.shadergraph/Editor/Data/Nodes/Procedural/Shape/EllipseNode.cs
-
2com.unity.shadergraph/Editor/Data/Nodes/Procedural/Shape/PolygonNode.cs
-
2com.unity.shadergraph/Editor/Data/Nodes/Procedural/Shape/RectangleNode.cs
-
2com.unity.shadergraph/Editor/Data/Nodes/Procedural/Shape/RoundedRectangleNode.cs
-
34com.unity.shadergraph/Editor/Data/Nodes/ShaderStage.cs
-
2com.unity.shadergraph/Editor/Data/Nodes/UV/FlipbookNode.cs
-
10com.unity.shadergraph/Editor/Data/Nodes/UV/TriplanarNode.cs
-
36com.unity.shadergraph/Editor/Data/Nodes/Utility/SubGraphNode.cs
-
2com.unity.shadergraph/Editor/Data/SubGraph/SubGraph.cs
-
50com.unity.shadergraph/Editor/Data/SurfaceModel/SurfaceMaterialOptions.cs
-
436com.unity.shadergraph/Editor/Data/Util/GraphUtil.cs
-
13com.unity.shadergraph/Editor/Data/Util/PropertyCollector.cs
-
411com.unity.shadergraph/Editor/Data/Util/ShaderGenerator.cs
-
4com.unity.shadergraph/Editor/Data/Util/ShaderGeneratorNames.cs
-
33com.unity.shadergraph/Editor/Data/Util/ShaderStringBuilder.cs
-
69com.unity.shadergraph/Editor/Drawing/PreviewManager.cs
-
6com.unity.shadergraph/Editor/Drawing/SearchWindowProvider.cs
-
17com.unity.shadergraph/Editor/Drawing/Views/MaterialGraphView.cs
-
47com.unity.shadergraph/Editor/Templates/HDUnlitPassForward.template
|
|||
Pass |
|||
{ |
|||
Name "ShadowCaster" |
|||
Tags{"LightMode" = "ShadowCaster"} |
|||
Name "ShadowCaster" |
|||
Tags{"LightMode" = "ShadowCaster"} |
|||
ZWrite On |
|||
ZTest LEqual |
|||
Cull ${Culling} |
|||
ZWrite On ZTest LEqual |
|||
HLSLPROGRAM |
|||
// Required to compile gles 2.0 with standard srp library |
|||
#pragma prefer_hlslcc gles |
|||
#pragma exclude_renderers d3d11_9x |
|||
#pragma target 2.0 |
|||
// Material options generated by graph |
|||
${Culling} |
|||
HLSLPROGRAM |
|||
// Required to compile gles 2.0 with standard srp library |
|||
#pragma prefer_hlslcc gles |
|||
#pragma exclude_renderers d3d11_9x |
|||
#pragma target 2.0 |
|||
// ------------------------------------- |
|||
// Material Keywords |
|||
#pragma shader_feature _ALPHATEST_ON |
|||
//-------------------------------------- |
|||
// GPU Instancing |
|||
#pragma multi_compile_instancing |
|||
//-------------------------------------- |
|||
// GPU Instancing |
|||
#pragma multi_compile_instancing |
|||
#pragma vertex ShadowPassVertex |
|||
#pragma fragment ShadowPassFragment |
|||
#pragma vertex ShadowPassVertex |
|||
#pragma fragment ShadowPassFragment |
|||
// Defines generated by graph |
|||
${Defines} |
|||
#include "LWRP/ShaderLibrary/Core.hlsl" |
|||
#include "LWRP/ShaderLibrary/Lighting.hlsl" |
|||
#include "ShaderGraphLibrary/Functions.hlsl" |
|||
#include "CoreRP/ShaderLibrary/Color.hlsl" |
|||
#include "LWRP/ShaderLibrary/InputSurfacePBR.hlsl" |
|||
#include "LWRP/ShaderLibrary/LightweightPassShadow.hlsl" |
|||
${Graph} |
|||
struct VertexOutput |
|||
{ |
|||
float2 uv : TEXCOORD0; |
|||
float4 clipPos : SV_POSITION; |
|||
}; |
|||
|
|||
// x: global clip space bias, y: normal world space bias |
|||
float4 _ShadowBias; |
|||
float3 _LightDirection; |
|||
ENDHLSL |
|||
VertexOutput ShadowPassVertex(GraphVertexInput v) |
|||
{ |
|||
VertexOutput o; |
|||
UNITY_SETUP_INSTANCE_ID(v); |
|||
|
|||
// Vertex transformations performed by graph |
|||
${VertexShader} |
|||
VertexDescriptionInputs vdi = (VertexDescriptionInputs)0; |
|||
|
|||
// Vertex description inputs defined by graph |
|||
${VertexShaderDescriptionInputs} |
|||
VertexDescription vd = PopulateVertexData(vdi); |
|||
v.vertex.xyz = vd.Position; |
|||
|
|||
o.uv = uv1; |
|||
|
|||
float3 positionWS = TransformObjectToWorld(v.vertex.xyz); |
|||
float3 normalWS = TransformObjectToWorldDir(v.normal); |
|||
|
|||
float invNdotL = 1.0 - saturate(dot(_LightDirection, normalWS)); |
|||
float scale = invNdotL * _ShadowBias.y; |
|||
|
|||
// normal bias is negative since we want to apply an inset normal offset |
|||
positionWS = normalWS * scale.xxx + positionWS; |
|||
float4 clipPos = TransformWorldToHClip(positionWS); |
|||
|
|||
// _ShadowBias.x sign depens on if platform has reversed z buffer |
|||
clipPos.z += _ShadowBias.x; |
|||
|
|||
#if UNITY_REVERSED_Z |
|||
clipPos.z = min(clipPos.z, clipPos.w * UNITY_NEAR_CLIP_VALUE); |
|||
#else |
|||
clipPos.z = max(clipPos.z, clipPos.w * UNITY_NEAR_CLIP_VALUE); |
|||
#endif |
|||
o.clipPos = clipPos; |
|||
|
|||
return o; |
|||
} |
|||
|
|||
half4 ShadowPassFragment() : SV_TARGET |
|||
{ |
|||
return 0; |
|||
} |
|||
|
|||
ENDHLSL |
|||
Name "DepthOnly" |
|||
Tags{"LightMode" = "DepthOnly"} |
|||
Name "DepthOnly" |
|||
Tags{"LightMode" = "DepthOnly"} |
|||
ZWrite On |
|||
ColorMask 0 |
|||
Cull ${Culling} |
|||
ZWrite On |
|||
ColorMask 0 |
|||
HLSLPROGRAM |
|||
// Required to compile gles 2.0 with standard srp library |
|||
#pragma prefer_hlslcc gles |
|||
#pragma target 2.0 |
|||
// Material options generated by graph |
|||
${Culling} |
|||
HLSLPROGRAM |
|||
// Required to compile gles 2.0 with standard srp library |
|||
#pragma prefer_hlslcc gles |
|||
#pragma exclude_renderers d3d11_9x |
|||
#pragma target 2.0 |
|||
#pragma vertex DepthOnlyVertex |
|||
#pragma fragment DepthOnlyFragment |
|||
//-------------------------------------- |
|||
// GPU Instancing |
|||
#pragma multi_compile_instancing |
|||
// ------------------------------------- |
|||
// Material Keywords |
|||
#pragma shader_feature _ALPHATEST_ON |
|||
#pragma vertex vert |
|||
#pragma fragment frag |
|||
//-------------------------------------- |
|||
// GPU Instancing |
|||
#pragma multi_compile_instancing |
|||
// Defines generated by graph |
|||
${Defines} |
|||
#include "LWRP/ShaderLibrary/Core.hlsl" |
|||
#include "LWRP/ShaderLibrary/Lighting.hlsl" |
|||
#include "ShaderGraphLibrary/Functions.hlsl" |
|||
#include "CoreRP/ShaderLibrary/Color.hlsl" |
|||
#include "LWRP/ShaderLibrary/InputSurfacePBR.hlsl" |
|||
#include "LWRP/ShaderLibrary/LightweightPassDepthOnly.hlsl" |
|||
ENDHLSL |
|||
${Graph} |
|||
struct VertexOutput |
|||
{ |
|||
float2 uv : TEXCOORD0; |
|||
float4 clipPos : SV_POSITION; |
|||
}; |
|||
|
|||
VertexOutput vert(GraphVertexInput v) |
|||
{ |
|||
VertexOutput o = (VertexOutput)0; |
|||
UNITY_SETUP_INSTANCE_ID(v); |
|||
|
|||
// Vertex transformations performed by graph |
|||
${VertexShader} |
|||
VertexDescriptionInputs vdi = (VertexDescriptionInputs)0; |
|||
|
|||
// Vertex description inputs defined by graph |
|||
${VertexShaderDescriptionInputs} |
|||
VertexDescription vd = PopulateVertexData(vdi); |
|||
v.vertex.xyz = vd.Position; |
|||
|
|||
o.uv = uv1; |
|||
o.clipPos = TransformObjectToHClip(v.vertex.xyz); |
|||
return o; |
|||
} |
|||
|
|||
half4 frag() : SV_TARGET |
|||
{ |
|||
return 0; |
|||
} |
|||
ENDHLSL |
|||
Name "Meta" |
|||
Tags{"LightMode" = "Meta"} |
|||
Name "Meta" |
|||
Tags{"LightMode" = "Meta"} |
|||
Cull Off |
|||
Cull Off |
|||
HLSLPROGRAM |
|||
// Required to compile gles 2.0 with standard srp library |
|||
#pragma prefer_hlslcc gles |
|||
HLSLPROGRAM |
|||
// Required to compile gles 2.0 with standard srp library |
|||
#pragma prefer_hlslcc gles |
|||
#pragma exclude_renderers d3d11_9x |
|||
#pragma target 2.0 |
|||
#pragma vertex LightweightVertexMeta |
|||
#pragma fragment LightweightFragmentMeta |
|||
#pragma vertex LightweightVertexMeta |
|||
#pragma fragment LightweightFragmentMeta |
|||
#pragma shader_feature _SPECULAR_SETUP |
|||
#pragma shader_feature _EMISSION |
|||
#pragma shader_feature _METALLICSPECGLOSSMAP |
|||
#pragma shader_feature _ _SMOOTHNESS_TEXTURE_ALBEDO_CHANNEL_A |
|||
#pragma shader_feature EDITOR_VISUALIZATION |
|||
#pragma shader_feature _SPECULAR_SETUP |
|||
#pragma shader_feature _EMISSION |
|||
#pragma shader_feature _METALLICSPECGLOSSMAP |
|||
#pragma shader_feature _ _SMOOTHNESS_TEXTURE_ALBEDO_CHANNEL_A |
|||
#pragma shader_feature EDITOR_VISUALIZATION |
|||
#pragma shader_feature _SPECGLOSSMAP |
|||
#pragma shader_feature _SPECGLOSSMAP |
|||
#include "LWRP/ShaderLibrary/InputSurfacePBR.hlsl" |
|||
#include "LWRP/ShaderLibrary/LightweightPassMetaPBR.hlsl" |
|||
ENDHLSL |
|||
} |
|||
#include "LWRP/ShaderLibrary/InputSurfacePBR.hlsl" |
|||
#include "LWRP/ShaderLibrary/LightweightPassMetaPBR.hlsl" |
|||
ENDHLSL |
|||
} |
|
|||
Pass |
|||
{ |
|||
Name "ShadowCaster" |
|||
Tags{"LightMode" = "ShadowCaster"} |
|||
|
|||
ZWrite On ZTest LEqual |
|||
|
|||
// Material options generated by graph |
|||
${Culling} |
|||
HLSLPROGRAM |
|||
// Required to compile gles 2.0 with standard srp library |
|||
#pragma prefer_hlslcc gles |
|||
#pragma exclude_renderers d3d11_9x |
|||
#pragma target 2.0 |
|||
|
|||
//-------------------------------------- |
|||
// GPU Instancing |
|||
#pragma multi_compile_instancing |
|||
|
|||
#pragma vertex ShadowPassVertex |
|||
#pragma fragment ShadowPassFragment |
|||
|
|||
// Defines generated by graph |
|||
${Defines} |
|||
#include "LWRP/ShaderLibrary/Core.hlsl" |
|||
#include "LWRP/ShaderLibrary/Lighting.hlsl" |
|||
#include "ShaderGraphLibrary/Functions.hlsl" |
|||
#include "CoreRP/ShaderLibrary/Color.hlsl" |
|||
|
|||
${Graph} |
|||
struct VertexOutput |
|||
{ |
|||
float2 uv : TEXCOORD0; |
|||
float4 clipPos : SV_POSITION; |
|||
}; |
|||
|
|||
// x: global clip space bias, y: normal world space bias |
|||
float4 _ShadowBias; |
|||
float3 _LightDirection; |
|||
|
|||
VertexOutput ShadowPassVertex(GraphVertexInput v) |
|||
{ |
|||
VertexOutput o; |
|||
UNITY_SETUP_INSTANCE_ID(v); |
|||
|
|||
// Vertex transformations performed by graph |
|||
${VertexShader} |
|||
VertexDescriptionInputs vdi = (VertexDescriptionInputs)0; |
|||
|
|||
// Vertex description inputs defined by graph |
|||
${VertexShaderDescriptionInputs} |
|||
VertexDescription vd = PopulateVertexData(vdi); |
|||
v.vertex.xyz = vd.Position; |
|||
|
|||
o.uv = uv1; |
|||
|
|||
float3 positionWS = TransformObjectToWorld(v.vertex.xyz); |
|||
float3 normalWS = TransformObjectToWorldDir(v.normal); |
|||
|
|||
float invNdotL = 1.0 - saturate(dot(_LightDirection, normalWS)); |
|||
float scale = invNdotL * _ShadowBias.y; |
|||
|
|||
// normal bias is negative since we want to apply an inset normal offset |
|||
positionWS = normalWS * scale.xxx + positionWS; |
|||
float4 clipPos = TransformWorldToHClip(positionWS); |
|||
|
|||
// _ShadowBias.x sign depens on if platform has reversed z buffer |
|||
clipPos.z += _ShadowBias.x; |
|||
|
|||
#if UNITY_REVERSED_Z |
|||
clipPos.z = min(clipPos.z, clipPos.w * UNITY_NEAR_CLIP_VALUE); |
|||
#else |
|||
clipPos.z = max(clipPos.z, clipPos.w * UNITY_NEAR_CLIP_VALUE); |
|||
#endif |
|||
o.clipPos = clipPos; |
|||
|
|||
return o; |
|||
} |
|||
|
|||
half4 ShadowPassFragment() : SV_TARGET |
|||
{ |
|||
return 0; |
|||
} |
|||
|
|||
ENDHLSL |
|||
} |
|||
Tags{"LightMode" = "DepthOnly"} |
|||
Tags{"LightMode" = "DepthOnly"} |
|||
ZWrite On |
|||
Cull ${Culling} |
|||
ColorMask 0 |
|||
ZWrite On |
|||
ColorMask 0 |
|||
HLSLPROGRAM |
|||
// Required to compile gles 2.0 with standard srp library |
|||
#pragma prefer_hlslcc gles |
|||
#pragma exclude_renderers d3d11_9x |
|||
#pragma target 2.0 |
|||
// Material options generated by graph |
|||
${Culling} |
|||
HLSLPROGRAM |
|||
// Required to compile gles 2.0 with standard srp library |
|||
#pragma prefer_hlslcc gles |
|||
#pragma exclude_renderers d3d11_9x |
|||
#pragma target 2.0 |
|||
#pragma vertex DepthOnlyVertex |
|||
#pragma fragment DepthOnlyFragment |
|||
//-------------------------------------- |
|||
// GPU Instancing |
|||
#pragma multi_compile_instancing |
|||
// ------------------------------------- |
|||
// Material Keywords |
|||
#pragma shader_feature _ALPHATEST_ON |
|||
#pragma vertex vert |
|||
#pragma fragment frag |
|||
//-------------------------------------- |
|||
// GPU Instancing |
|||
#pragma multi_compile_instancing |
|||
// Defines generated by graph |
|||
${Defines} |
|||
#include "LWRP/ShaderLibrary/Core.hlsl" |
|||
#include "LWRP/ShaderLibrary/Lighting.hlsl" |
|||
#include "ShaderGraphLibrary/Functions.hlsl" |
|||
#include "CoreRP/ShaderLibrary/Color.hlsl" |
|||
#include "LWRP/ShaderLibrary/InputSurfaceUnlit.hlsl" |
|||
#include "LWRP/ShaderLibrary/LightweightPassDepthOnly.hlsl" |
|||
ENDHLSL |
|||
} |
|||
${Graph} |
|||
struct VertexOutput |
|||
{ |
|||
float2 uv : TEXCOORD0; |
|||
float4 clipPos : SV_POSITION; |
|||
}; |
|||
|
|||
VertexOutput vert(GraphVertexInput v) |
|||
{ |
|||
VertexOutput o = (VertexOutput)0; |
|||
UNITY_SETUP_INSTANCE_ID(v); |
|||
|
|||
// Vertex transformations performed by graph |
|||
${VertexShader} |
|||
VertexDescriptionInputs vdi = (VertexDescriptionInputs)0; |
|||
|
|||
// Vertex description inputs defined by graph |
|||
${VertexShaderDescriptionInputs} |
|||
VertexDescription vd = PopulateVertexData(vdi); |
|||
v.vertex.xyz = vd.Position; |
|||
|
|||
o.uv = uv1; |
|||
o.clipPos = TransformObjectToHClip(v.vertex.xyz); |
|||
return o; |
|||
} |
|||
|
|||
half4 frag() : SV_TARGET |
|||
{ |
|||
return 0; |
|||
} |
|||
ENDHLSL |
|||
} |
|
|||
# Changelog |
|||
All notable changes to this package will be documented in this file. |
|||
# Next version |
|||
|
|||
### Master node settings |
|||
|
|||
![](.data/menu_settings.png) |
|||
|
|||
The settings on master nodes now live in a small window that you can toggle on and off. The settings menu allows you to change various rendering settings for your shader. |
|||
|
|||
### Property reference names and exposed state |
|||
|
|||
![](.data/editable_property_references.gif) |
|||
|
|||
The property reference names are now editable. Furthermore, it is now possible to control whether the properties are exposed. |
|||
|
|||
### Editable paths for graphs |
|||
|
|||
![](.data/change_path.gif) |
|||
![](.data/use_path.gif) |
|||
|
|||
Enables the user to change the path of Shader Graphs and Sub Graphs. Changing the path of a Shader Graph modifies the location it has in the shader selection list. Likewise changing the path of Sub Graph modifies its location in the node creation menu. |
|||
|
|||
|
|||
### Gradient nodes |
|||
|
|||
![](.data/gradient_node.png) |
|||
|
|||
This adds gradient functionality via two new nodes. Sample Gradient node samples a gradient given a Time parameter. This gradient can be defined on the Gradient slot control view. The Gradient Asset node defines a gradient that can be sampled by multiple Sample Gradient nodes using different Time parameters. |
|||
|
|||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) |
|||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). |
|||
## [0.1.0] - 2017-MM-DD |
|||
### This is the first release of *Unity Package \<Your package name\>*. |
|||
### Bug fixes and minor changes |
|||
*Short description of this release* |
|||
- Fixed an issue where vector 1 node was not evaluating properly. ([#334](https://github.com/Unity-Technologies/ShaderGraph/issues/334) and [#337](https://github.com/Unity-Technologies/ShaderGraph/issues/337)) |
|||
- Properties can now be copied and pasted. |
|||
- Pasting a property node into another graph will now convert it to a concrete node. ([#300](https://github.com/Unity-Technologies/ShaderGraph/issues/300) and [#307](https://github.com/Unity-Technologies/ShaderGraph/pull/307)) |
|||
- Make nodes that are copied from one graph to another spawn in the center of the current view. ([#333](https://github.com/Unity-Technologies/ShaderGraph/issues/333)) |
|||
- Fixed an issue with editable sub graph paths, causing the search window to sometimes yield a null reference exception. |
|||
- Ensure that the blackboard is within view when deserialized. |
|||
- Fixed float value to string error and truncation warning for normal create node. |
撰写
预览
正在加载...
取消
保存
Reference in new issue