MaterialX
1.39.1
Loading...
Searching...
No Matches
LightSamplerNodeGlsl.h
1
//
2
// Copyright Contributors to the MaterialX Project
3
// SPDX-License-Identifier: Apache-2.0
4
//
5
6
#ifndef MATERIALX_LIGHTSAMPLERNODEGLSL_H
7
#define MATERIALX_LIGHTSAMPLERNODEGLSL_H
8
9
#include <
MaterialXGenGlsl/GlslShaderGenerator.h
>
10
11
MATERIALX_NAMESPACE_BEGIN
12
14
class
MX_GENGLSL_API
LightSamplerNodeGlsl
:
public
GlslImplementation
15
{
16
public
:
17
LightSamplerNodeGlsl
();
18
19
static
ShaderNodeImplPtr
create();
20
21
void
emitFunctionDefinition
(
const
ShaderNode
& node,
GenContext
& context,
ShaderStage
& stage)
const override
;
22
};
23
24
MATERIALX_NAMESPACE_END
25
26
#endif
GlslShaderGenerator.h
GLSL shader generator.
ShaderNodeImplPtr
shared_ptr< ShaderNodeImpl > ShaderNodeImplPtr
Shared pointer to a ShaderNodeImpl.
Definition:
Library.h:40
GenContext
A context class for shader generation.
Definition:
GenContext.h:31
GlslImplementation
Base class for common GLSL node implementations.
Definition:
GlslShaderGenerator.h:93
LightSamplerNodeGlsl
Utility node for sampling lights for GLSL.
Definition:
LightSamplerNodeGlsl.h:15
LightSamplerNodeGlsl::emitFunctionDefinition
void emitFunctionDefinition(const ShaderNode &node, GenContext &context, ShaderStage &stage) const override
Emit function definition for the given node instance.
ShaderNode
Class representing a node in the shader generation DAG.
Definition:
ShaderNode.h:320
ShaderStage
A shader stage, containing the state and resulting source code for the stage.
Definition:
ShaderStage.h:139
source
MaterialXGenGlsl
Nodes
LightSamplerNodeGlsl.h
Generated by
1.9.5