ULRE/ShaderLibrary/Std3D/VertexColor3D.mtl

39 lines
317 B
Plaintext
Raw Normal View History

2023-10-07 20:09:16 +08:00
#Material
Name VertexColor3D
Base Std3D
#VertexInput
vec4 Color
2023-10-07 20:09:16 +08:00
#Vertex
Output
{
vec4 Color
}
Code
{
void main()
{
Output.Color=Color;
gl_Position=GetPosition3D();
}
}
#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
}
}