Skip to content

[SG2] Implement transform node builder#7732

Merged
dhsavell merged 5 commits into
sg2/mainfrom
sg2/transform-node
Nov 14, 2022
Merged

[SG2] Implement transform node builder#7732
dhsavell merged 5 commits into
sg2/mainfrom
sg2/transform-node

Conversation

@dhsavell
Copy link
Copy Markdown
Contributor

@dhsavell dhsavell commented Nov 10, 2022

Purpose of this PR

This PR implements a builder for the Transform node with code generation ported from SG1.

The node appears and functions, but since there are no dropdowns yet, it's stuck in the default Object -> World position mode. Uninteresting screenshot:

image

The UI dropdowns will be added in the next PR.


Testing status

  • Manual when UI is available.

@dhsavell dhsavell self-assigned this Nov 10, 2022
@@ -0,0 +1,396 @@
using UnityEditor.ShaderFoundry;

namespace UnityEditor.ShaderGraph.GraphDelta
Copy link
Copy Markdown
Contributor Author

@dhsavell dhsavell Nov 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is ported from:

The generation functions have been changed minimally to work with foundry.

Also, some of the names were tweaked to match their surroundings (Util -> Utils to match folder), and some of the unneeded functions/interface implementations were removed.

@dhsavell dhsavell marked this pull request as ready for review November 14, 2022 20:56
@dhsavell dhsavell merged commit 9d54b5b into sg2/main Nov 14, 2022
@dhsavell dhsavell deleted the sg2/transform-node branch November 14, 2022 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants