Editor/UpgradedShaderGraph/Nodes/UniversalNodes/SceneNormal.cs

An editor Shader Graph node for the Universal pipeline that provides a Scene Normal output. It defines an optional 2D Coordinates input and produces a Vector3 output by emitting a shader snippet that calls Normals::Sample with the coordinates.

Obfuscated Code
namespace Editor.ShaderGraphExtras.Nodes;

[Title( "SGE - Scene Normal" ), Category( "Shader Graph Extras - Universal" ), Icon( "explore" )]
public sealed class SGESceneNormalNode : ShaderNode
{
	[Input( typeof( Vector2 ) )]
	[Hide]
	public NodeInput Coordinates { get; set; }

	[Output( typeof( Vector3 ) )]
	[Hide]
	public NodeResult.Func Output => ( GraphCompiler compiler ) =>
	{
		var coordinates = compiler.Result( Coordinates ).Cast( 2 );
		return new NodeResult( NodeResultType.Vector3, $"Normals::Sample( {coordinates} )" );
	};
}