27 lines
605 B
C++
27 lines
605 B
C++
//
|
|
// Copyright Contributors to the MaterialX Project
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
#ifndef MATERIALX_LIGHTSAMPLERNODEGLSL_H
|
|
#define MATERIALX_LIGHTSAMPLERNODEGLSL_H
|
|
|
|
#include <MaterialXGenGlsl/GlslShaderGenerator.h>
|
|
|
|
MATERIALX_NAMESPACE_BEGIN
|
|
|
|
/// Utility node for sampling lights for GLSL.
|
|
class MX_GENGLSL_API LightSamplerNodeGlsl : public GlslImplementation
|
|
{
|
|
public:
|
|
LightSamplerNodeGlsl();
|
|
|
|
static ShaderNodeImplPtr create();
|
|
|
|
void emitFunctionDefinition(const ShaderNode& node, GenContext& context, ShaderStage& stage) const override;
|
|
};
|
|
|
|
MATERIALX_NAMESPACE_END
|
|
|
|
#endif
|