sebastienlagarde
7 年前
当前提交
7934a87a
共有 54 个文件被更改,包括 513 次插入 和 659 次删除
-
4com.unity.render-pipelines.core/CoreRP/Editor/com.unity.render-pipelines.core.Editor.asmdef
-
16com.unity.render-pipelines.core/CoreRP/ShaderLibrary/Common.hlsl
-
15com.unity.render-pipelines.core/CoreRP/Utilities/CoreUtils.cs
-
3com.unity.render-pipelines.core/CoreRP/com.unity.render-pipelines.core.Runtime.asmdef
-
5com.unity.render-pipelines.core/package.json
-
6com.unity.render-pipelines.high-definition/CHANGELOG.md
-
2com.unity.render-pipelines.high-definition/HDRP/Camera/HDCamera.cs
-
8com.unity.render-pipelines.high-definition/HDRP/Editor/BuildProcessors/HDRPreprocessShaders.cs
-
24com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Volumetric/DensityVolumeEditor.cs
-
21com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Volumetric/Texture3DCreationEditor.cs
-
7com.unity.render-pipelines.high-definition/HDRP/Editor/Material/Lit/LitShaderPreprocessor.cs
-
5com.unity.render-pipelines.high-definition/HDRP/Editor/RenderPipeline/Settings/RenderPipelineSettingsUI.cs
-
2com.unity.render-pipelines.high-definition/HDRP/Editor/RenderPipeline/Settings/SerializedFrameSettings.cs
-
40com.unity.render-pipelines.high-definition/HDRP/Editor/RenderPipeline/Settings/SerializedRenderPipelineSettings.cs
-
20com.unity.render-pipelines.high-definition/HDRP/Editor/Sky/AtmosphericScattering/VolumetricFogEditor.cs
-
13com.unity.render-pipelines.high-definition/HDRP/HDRenderPipelineAsset.asset
-
18com.unity.render-pipelines.high-definition/HDRP/Lighting/LightDefinition.cs
-
254com.unity.render-pipelines.high-definition/HDRP/Lighting/LightDefinition.cs.hlsl
-
18com.unity.render-pipelines.high-definition/HDRP/Lighting/LightEvaluation.hlsl
-
36com.unity.render-pipelines.high-definition/HDRP/Lighting/LightLoop/LightLoop.cs
-
2com.unity.render-pipelines.high-definition/HDRP/Lighting/LightLoop/LightLoopDef.hlsl
-
8com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/VolumeProjection.hlsl
-
13com.unity.render-pipelines.high-definition/HDRP/Lighting/SphericalHarmonics.cs
-
2com.unity.render-pipelines.high-definition/HDRP/Lighting/Volumetrics/DensityVolume.cs
-
21com.unity.render-pipelines.high-definition/HDRP/Lighting/Volumetrics/VolumeTextureAtlas.cs
-
133com.unity.render-pipelines.high-definition/HDRP/Lighting/Volumetrics/VolumeVoxelization.compute
-
81com.unity.render-pipelines.high-definition/HDRP/Lighting/Volumetrics/VolumetricLighting.compute
-
126com.unity.render-pipelines.high-definition/HDRP/Lighting/Volumetrics/VolumetricLighting.cs
-
4com.unity.render-pipelines.high-definition/HDRP/Material/Decal/Decal.cs
-
28com.unity.render-pipelines.high-definition/HDRP/Material/Decal/Decal.cs.hlsl
-
20com.unity.render-pipelines.high-definition/HDRP/Material/Lit/Lit.hlsl
-
4com.unity.render-pipelines.high-definition/HDRP/Material/Lit/LitReference.hlsl
-
46com.unity.render-pipelines.high-definition/HDRP/Material/StackLit/StackLit.hlsl
-
4com.unity.render-pipelines.high-definition/HDRP/Material/SubsurfaceScattering/SubsurfaceScattering.compute
-
2com.unity.render-pipelines.high-definition/HDRP/Material/SubsurfaceScattering/SubsurfaceScatteringManager.cs
-
10com.unity.render-pipelines.high-definition/HDRP/RenderPipeline/HDRenderPipeline.cs
-
15com.unity.render-pipelines.high-definition/HDRP/RenderPipeline/HDUtils.cs
-
12com.unity.render-pipelines.high-definition/HDRP/RenderPipeline/Settings/FrameSettings.cs
-
5com.unity.render-pipelines.high-definition/HDRP/RenderPipeline/Settings/RenderPipelineSettings.cs
-
6com.unity.render-pipelines.high-definition/HDRP/ShaderConfig.cs
-
1com.unity.render-pipelines.high-definition/HDRP/ShaderConfig.cs.hlsl
-
2com.unity.render-pipelines.high-definition/HDRP/Sky/AtmosphericScattering/AtmosphericScattering.cs
-
4com.unity.render-pipelines.high-definition/HDRP/Sky/AtmosphericScattering/AtmosphericScattering.hlsl
-
22com.unity.render-pipelines.high-definition/HDRP/Sky/AtmosphericScattering/VolumetricFog.cs
-
2com.unity.render-pipelines.lightweight/CHANGELOG.md
-
11com.unity.render-pipelines.lightweight/LWRP/LightweightPipeline.cs
-
2com.unity.render-pipelines.lightweight/LWRP/ShaderLibrary/Terrain/InputSurfaceGrass.hlsl
-
7com.unity.shadergraph/CHANGELOG.md
-
4com.unity.shadergraph/Editor/Data/Graphs/Vector1MaterialSlot.cs
-
4com.unity.shadergraph/Editor/Data/Graphs/Vector2MaterialSlot.cs
-
1com.unity.shadergraph/Editor/Data/Graphs/Vector3MaterialSlot.cs
-
3com.unity.shadergraph/.data/sphereMask.PNG
-
39com.unity.shadergraph/Editor/Data/Nodes/Math/Vector/SphereMaskNode.cs
-
11com.unity.shadergraph/Editor/Data/Nodes/Math/Vector/SphereMaskNode.cs.meta
|
|||
{ |
|||
"name": "com.unity.render-pipelines.core.Runtime", |
|||
"references": [ |
|||
"com.unity.postprocessing.Runtime" |
|||
], |
|||
"optionalUnityReferences": [], |
|||
"includePlatforms": [], |
|||
"excludePlatforms": [], |
|
|||
version https://git-lfs.github.com/spec/v1 |
|||
oid sha256:8df3a610b0b2a3f8d3b6a2b9ddb563c3a74e682055b53bc728ac7f795870d9ad |
|||
size 91474 |
|
|||
using System.Reflection; |
|||
using UnityEngine; |
|||
|
|||
namespace UnityEditor.ShaderGraph |
|||
{ |
|||
[Title("Math", "Vector", "Sphere Mask")] |
|||
public class SphereMaskNode : CodeFunctionNode |
|||
{ |
|||
public SphereMaskNode() |
|||
{ |
|||
name = "Sphere Mask"; |
|||
} |
|||
|
|||
public override string documentationURL |
|||
{ |
|||
get { return "https://github.com/Unity-Technologies/ShaderGraph/wiki/Sphere-Mask-Node"; } |
|||
} |
|||
|
|||
protected override MethodInfo GetFunctionToConvert() |
|||
{ |
|||
return GetType().GetMethod("SphereMask", BindingFlags.Static | BindingFlags.NonPublic); |
|||
} |
|||
|
|||
static string SphereMask( |
|||
[Slot(0, Binding.None)] DynamicDimensionVector Coords, |
|||
[Slot(1, Binding.None, 0.5f, 0.5f, 0.5f, 0.5f)] DynamicDimensionVector Center, |
|||
[Slot(2, Binding.None, 0.1f, 0.1f, 0.1f, 0.1f)] Vector1 Radius, |
|||
[Slot(3, Binding.None, 0.8f, 0.8f, 0.8f, 0.8f)] Vector1 Hardness, |
|||
[Slot(4, Binding.None)] out DynamicDimensionVector Out) |
|||
{ |
|||
return |
|||
@"
|
|||
{ |
|||
Out = 1 - saturate((distance(Coords, Center) - Radius) / (1 - Hardness)); |
|||
} |
|||
";
|
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 6b31e904eeb9a604b9145c218287ad1e |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue