ULRE/ShaderLibrary/Std2D/VertexColor2D.mtl

40 lines
309 B
Plaintext
Raw Normal View History

2023-10-07 20:09:16 +08:00
#Material
Name VertexColor2D
Base Std2D
#Vertex
Input
{
vec4 Color
}
Output
{
vec4 Color
}
Code
{
void main()
{
Output.Color=Color;
gl_Position=GetPosition2D();
}
}
#Fragment
Output
{
vec4 Color;
}
Code
{
void main()
{
Color=Input.Color;
}
}