56 lines
941 B
C
56 lines
941 B
C
|
#ifndef HGL_GRAPH_SHADER_VECTOR_NODE_INCLUDE
|
|||
|
#define HGL_GRAPH_SHADER_VECTOR_NODE_INCLUDE
|
|||
|
|
|||
|
#include<hgl/graph/shader/ShaderParam.h>
|
|||
|
#include<hgl/graph/shader/ShaderNode.h>
|
|||
|
BEGIN_SHADER_NAMESPACE
|
|||
|
class float1:public Output
|
|||
|
{
|
|||
|
float x;
|
|||
|
|
|||
|
public:
|
|||
|
|
|||
|
float1():Output("float1")
|
|||
|
{
|
|||
|
SHADER_OUTPUT_PARAM(X,FLOAT_1)
|
|||
|
}
|
|||
|
};//class float1:public Output
|
|||
|
|
|||
|
class float2:public Output
|
|||
|
{
|
|||
|
float x,y;
|
|||
|
|
|||
|
public:
|
|||
|
|
|||
|
float2():Output("float2")
|
|||
|
{
|
|||
|
SHADER_OUTPUT_PARAM(XY,FLOAT_2)
|
|||
|
}
|
|||
|
};//class float2:public Output
|
|||
|
|
|||
|
class float3:public Output
|
|||
|
{
|
|||
|
float x,y,z;
|
|||
|
|
|||
|
public:
|
|||
|
|
|||
|
float3():Output("float3")
|
|||
|
{
|
|||
|
SHADER_OUTPUT_PARAM(XYZ,FLOAT_3)
|
|||
|
}
|
|||
|
};//class float3:public Output
|
|||
|
|
|||
|
class float4:public Output
|
|||
|
{
|
|||
|
float x,y,z,w;
|
|||
|
|
|||
|
public:
|
|||
|
|
|||
|
float4():Output("float4")
|
|||
|
{
|
|||
|
SHADER_OUTPUT_PARAM(XYZW,FLOAT_4)
|
|||
|
}
|
|||
|
};//class float4:public Output
|
|||
|
END_SHADER_NAMESPACE
|
|||
|
#endif//HGL_GRAPH_SHADER_VECTOR_NODE_INCLUDE
|