ULRE/ShaderLibrary/Std2D/PureTexture2D.mtl

40 lines
385 B
Plaintext
Raw Normal View History

2023-10-07 20:09:16 +08:00
#Material
Name PureTexture2D
Base Std2D
#VertexInput
vec2 TexCoord
2023-10-07 20:09:16 +08:00
#Vertex
2023-10-07 20:09:16 +08:00
Output
{
vec2 TexCoord
}
Code
{
void main()
{
Output.TexCoord=TexCoord;
gl_Position=GetPosition2D();
}
}
#Fragment
sampler2D TextureBaseColor
2023-10-07 20:09:16 +08:00
Output
{
vec4 FragColor;
2023-10-07 20:09:16 +08:00
}
Code
{
void main()
{
FragColor=texture(TextureBaseColor,Input.TexCoord);
2023-10-07 20:09:16 +08:00
}
}