Std2DMaterialLoader start ok,,but don't support Sampler2D in material file...
This commit is contained in:
@@ -37,13 +37,13 @@ namespace hgl
|
||||
|
||||
protected:
|
||||
|
||||
virtual bool BeginCustomShader(){return true;/*some work before creating shader*/};
|
||||
virtual bool BeginCustomShader(){return true;/*some work before create shader*/};
|
||||
|
||||
virtual bool CustomVertexShader(ShaderCreateInfoVertex *)=0;
|
||||
virtual bool CustomGeometryShader(ShaderCreateInfoGeometry *){return false;}
|
||||
virtual bool CustomFragmentShader(ShaderCreateInfoFragment *)=0;
|
||||
|
||||
virtual bool EndCustomShader(){return true;/*some work after creating shader*/};
|
||||
virtual bool EndCustomShader(){return true;/*some work after create shader*/};
|
||||
|
||||
public:
|
||||
|
||||
|
@@ -88,6 +88,10 @@ public:
|
||||
void SetLocalToWorld(UBODescriptor *);
|
||||
|
||||
void SetMain(const AnsiString &str){main_function=str;}
|
||||
void SetMain(const char *str,const int len)
|
||||
{
|
||||
main_function.SetString(str,len);
|
||||
}
|
||||
|
||||
const AnsiString &GetOutputStruct()const{return output_struct;}
|
||||
const AnsiString &GetShaderSource()const{return final_shader;}
|
||||
|
Reference in New Issue
Block a user