removed standalone ".glsl" files ,merge to c++ codes.

This commit is contained in:
2024-03-06 23:24:57 +08:00
parent 3874d771d3
commit 5ba3c1790d
16 changed files with 39 additions and 74 deletions

View File

@@ -1,4 +0,0 @@
mat4 GetLocalToWorld()
{
return l2w.mats[Assign.x];
}

View File

@@ -1,8 +0,0 @@
MaterialInstance GetMI()
{
#if ShaderStage == VertexShader
return mtl.mi[Assign.y];
#else
return mtl.mi[Input.MaterialInstanceID];
#endif
}

View File

@@ -1,10 +0,0 @@
void HandoverMI()
{
#if ShaderStage == VertexShader
Output.MaterialInstanceID=Assign.y;
#elif ShaderStage == GeometryShader
Output.MaterialInstanceID=Input[0].MaterialInstanceID;
#else
Output.MaterialInstanceID=Input.MaterialInstanceID;
#endif
}

View File

@@ -1,10 +0,0 @@
#version 460 core
#define VertexShader 0x01
#define TessControlShader 0x02
#define TeseEvalShader 0x04
#define GeometryShader 0x08
#define FragmentShader 0x10
#define ComputeShader 0x20
#define TaskShader 0x40
#define MeshShader 0x80