ULRE/ShaderLibrary/Std2D/VertexColor2D.mtl

38 lines
315 B
Plaintext
Raw Normal View History

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