MaterialX 1.38.2
LightSamplerNodeGlsl.h
1//
2// TM & (c) 2017 Lucasfilm Entertainment Company Ltd. and Lucasfilm Ltd.
3// All rights reserved. See LICENSE.txt for license.
4//
5
6#ifndef MATERIALX_LIGHTSAMPLERNODEGLSL_H
7#define MATERIALX_LIGHTSAMPLERNODEGLSL_H
8
10
11namespace MaterialX
12{
13
16{
17public:
19
20 static ShaderNodeImplPtr create();
21
22 void emitFunctionDefinition(const ShaderNode& node, GenContext& context, ShaderStage& stage) const override;
23};
24
25} // namespace MaterialX
26
27#endif
GLSL shader generator.
shared_ptr< ShaderNodeImpl > ShaderNodeImplPtr
Shared pointer to a ShaderNodeImpl.
Definition: Library.h:40
A context class for shader generation.
Definition: GenContext.h:27
Base class for common GLSL node implementations.
Definition: GlslShaderGenerator.h:93
Utility node for sampling lights for GLSL.
Definition: LightSamplerNodeGlsl.h:16
void emitFunctionDefinition(const ShaderNode &node, GenContext &context, ShaderStage &stage) const override
Emit function definition for the given node instance.
Definition: LightSamplerNodeGlsl.cpp:26
Class representing a node in the shader generation DAG.
Definition: ShaderNode.h:326
A shader stage, containing the state and resulting source code for the stage.
Definition: ShaderStage.h:124