diff --git a/GLSLCompiler.dll b/GLSLCompiler.dll new file mode 100644 index 00000000..e48d90be Binary files /dev/null and b/GLSLCompiler.dll differ diff --git a/example/MaterialCreaterTest.cpp b/example/MaterialCreaterTest.cpp index d2cbea1d..92533250 100644 --- a/example/MaterialCreaterTest.cpp +++ b/example/MaterialCreaterTest.cpp @@ -98,8 +98,7 @@ void main() void main() { Color=Input.Color; -} -)"); +})"); } mc.CreateShader(); diff --git a/inc/hgl/shadergen/StandardMaterial.h b/inc/hgl/shadergen/StandardMaterial.h new file mode 100644 index 00000000..36480299 --- /dev/null +++ b/inc/hgl/shadergen/StandardMaterial.h @@ -0,0 +1,110 @@ +#include +#include + +SHADERGEN_NAMESPACE_BEGIN + +using ParamPreciseFlagBits=uint8; +using PPFB=ParamPreciseFlagBits; + +constexpr const PPFB PPFB_None =0x00; ///<参数没有出现在任何地方 +constexpr const PPFB PPFB_Global =0x01; ///<参数出现在全局(使用一个const值处理) +constexpr const PPFB PPFB_Vertex =0x02; ///<参数出现在顶点(在vertex shader使用一个顶点值处理) +constexpr const PPFB PPFB_Texture =0x04; ///<参数出现在纹理(在fragment shader使用一个纹理处理) + +using TextureComponentFlagBits=uint8; +using TCFB=TextureComponentFlagBits; + +constexpr const TCFB TCFB_Luminance =0x01; ///<亮度 +constexpr const TCFB TCFB_Alpha =0x02; ///<透明度 +constexpr const TCFB TCFB_Red =0x04; ///<红色 +constexpr const TCFB TCFB_Green =0x08; ///<绿色 +constexpr const TCFB TCFB_Blue =0x10; ///<蓝色 +constexpr const TCFB TCFB_Cb =0x20; /// + +SHADERGEN_NAMESPACE_BEGIN + + + +SHADERGEN_NAMESPACE_END