Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions TestProjects/ShaderGraph/Assets/CommonAssets/Editor/NodeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -316,5 +316,53 @@ public IEnumerator BoolConversionV4()
ReportTests();
yield break;
}

[UnityTest]
public IEnumerator ScreenPositionDefault()
{
// Test that default screen space acts as expected relative to raw screen space
string graphPath = "Assets/CommonAssets/Graphs/NodeTests/ScreenPositionDefault.shadergraph";
var graph = LoadGraph(graphPath);
ResetTestReporting();
RunNodeTest(graph, "ScreenPositionDefault");
ReportTests();
yield break;
}

[UnityTest]
public IEnumerator ScreenPositionVertex()
{
// Test that default screen space acts as expected relative to raw screen space
string graphPath = "Assets/CommonAssets/Graphs/NodeTests/ScreenPositionVertex.shadergraph";
var graph = LoadGraph(graphPath);
ResetTestReporting();
RunNodeTest(graph, "ScreenPositionVertex");
ReportTests();
yield break;
}

[UnityTest]
public IEnumerator PixelPosition()
{
// Test that pixel position acts as expected relative to raw screen space
string graphPath = "Assets/CommonAssets/Graphs/NodeTests/PixelPosition.shadergraph";
var graph = LoadGraph(graphPath);
ResetTestReporting();
RunNodeTest(graph, "PixelPosition");
ReportTests();
yield break;
}

[UnityTest]
public IEnumerator PixelPositionVertex()
{
// Test that pixel position acts as expected relative to raw screen space
string graphPath = "Assets/CommonAssets/Graphs/NodeTests/PixelPositionVertex.shadergraph";
var graph = LoadGraph(graphPath);
ResetTestReporting();
RunNodeTest(graph, "PixelPositionVertex");
ReportTests();
yield break;
}
}
}
Loading