group = "Vertex Inputs"
display_name = "World Normal"
depends_on = [
	"core/stingray_renderer/output_nodes/standard_base", "core/stingray_renderer/output_nodes/unlit_base", 
	"core/stingray_renderer/output_nodes/particle_base", "core/stingray_renderer/output_nodes/particle_gbuffer_base", 
	"core/stingray_renderer/output_nodes/particle_distortion_base", "core/stingray_renderer/output_nodes/billboard_base",
	"core/stingray_renderer/output_nodes/anisotropic_base"]

// This node will only work with a base node that exposes the per-vertex world space normal as
// the world_space_normal output channel.

imports = {
	normal = {
		type = "float3"
		domain = "vertex"
		output_channel = "world_space_normal"
	}
}

defines = ["NEEDS_WORLD_SPACE_NORMAL"]

output = {
	type = { typeof: "normal" }
}

code = """
	RESULT(normal);
"""
