Files
UnrealEngine/Engine/Source/ThirdParty/MaterialX/MaterialX-1.38.10/source/MaterialXGenShader/Nodes/HwViewDirectionNode.h
2025-05-18 13:04:45 +08:00

27 lines
684 B
C++

//
// Copyright Contributors to the MaterialX Project
// SPDX-License-Identifier: Apache-2.0
//
#ifndef MATERIALX_HWVIEWDIRECTIONNODE_H
#define MATERIALX_HWVIEWDIRECTIONNODE_H
#include <MaterialXGenShader/HwShaderGenerator.h>
MATERIALX_NAMESPACE_BEGIN
/// ViewDirection node implementation for hardware languages
class MX_GENSHADER_API HwViewDirectionNode : public HwImplementation
{
public:
static ShaderNodeImplPtr create();
void createVariables(const ShaderNode& node, GenContext& context, Shader& shader) const override;
void emitFunctionCall(const ShaderNode& node, GenContext& context, ShaderStage& stage) const override;
};
MATERIALX_NAMESPACE_END
#endif