initial commit
This commit is contained in:
parent
6715289efe
commit
788c3389af
37645 changed files with 2526849 additions and 80 deletions
|
@ -0,0 +1,33 @@
|
|||
using System.Reflection;
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityEditor.ShaderGraph
|
||||
{
|
||||
[Title("Math", "Derivative", "DDX")]
|
||||
class DDXNode : CodeFunctionNode
|
||||
{
|
||||
public DDXNode()
|
||||
{
|
||||
name = "DDX";
|
||||
synonyms = new string[] { "derivative" };
|
||||
}
|
||||
|
||||
protected override MethodInfo GetFunctionToConvert()
|
||||
{
|
||||
return GetType().GetMethod("Unity_DDX", BindingFlags.Instance | BindingFlags.NonPublic);
|
||||
}
|
||||
|
||||
string Unity_DDX(
|
||||
[Slot(0, Binding.None)] DynamicDimensionVector In,
|
||||
[Slot(1, Binding.None, ShaderStageCapability.Fragment)] out DynamicDimensionVector Out)
|
||||
{
|
||||
return
|
||||
$@"
|
||||
{{
|
||||
{GetRayTracingError()}
|
||||
Out = ddx(In);
|
||||
}}
|
||||
";
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f13ae4db3be37ef4bbb46a37782ecd1a
|
||||
timeCreated: 1490780593
|
||||
licenseType: Pro
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,33 @@
|
|||
using System.Reflection;
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityEditor.ShaderGraph
|
||||
{
|
||||
[Title("Math", "Derivative", "DDXY")]
|
||||
class DDXYNode : CodeFunctionNode
|
||||
{
|
||||
public DDXYNode()
|
||||
{
|
||||
name = "DDXY";
|
||||
synonyms = new string[] { "derivative" };
|
||||
}
|
||||
|
||||
protected override MethodInfo GetFunctionToConvert()
|
||||
{
|
||||
return GetType().GetMethod("Unity_DDXY", BindingFlags.Instance | BindingFlags.NonPublic);
|
||||
}
|
||||
|
||||
string Unity_DDXY(
|
||||
[Slot(0, Binding.None)] DynamicDimensionVector In,
|
||||
[Slot(1, Binding.None, ShaderStageCapability.Fragment)] out DynamicDimensionVector Out)
|
||||
{
|
||||
return
|
||||
$@"
|
||||
{{
|
||||
{GetRayTracingError()}
|
||||
Out = abs(ddx(In)) + abs(ddy(In));
|
||||
}}
|
||||
";
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c18b14d941c03eb4d90c30f51c1d4fe1
|
||||
timeCreated: 1490780593
|
||||
licenseType: Pro
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,33 @@
|
|||
using System.Reflection;
|
||||
using UnityEngine;
|
||||
|
||||
namespace UnityEditor.ShaderGraph
|
||||
{
|
||||
[Title("Math", "Derivative", "DDY")]
|
||||
class DDYNode : CodeFunctionNode
|
||||
{
|
||||
public DDYNode()
|
||||
{
|
||||
name = "DDY";
|
||||
synonyms = new string[] { "derivative" };
|
||||
}
|
||||
|
||||
protected override MethodInfo GetFunctionToConvert()
|
||||
{
|
||||
return GetType().GetMethod("Unity_DDY", BindingFlags.Instance | BindingFlags.NonPublic);
|
||||
}
|
||||
|
||||
string Unity_DDY(
|
||||
[Slot(0, Binding.None)] DynamicDimensionVector In,
|
||||
[Slot(1, Binding.None, ShaderStageCapability.Fragment)] out DynamicDimensionVector Out)
|
||||
{
|
||||
return
|
||||
$@"
|
||||
{{
|
||||
{GetRayTracingError()}
|
||||
Out = ddy(In);
|
||||
}}
|
||||
";
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 421366e7b391f2c45902b735c4f45cb9
|
||||
timeCreated: 1490780593
|
||||
licenseType: Pro
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Add table
Add a link
Reference in a new issue