40 lines
377 B
Plaintext
40 lines
377 B
Plaintext
#Material
|
|
Name PureTexture2D
|
|
Base Std2D
|
|
|
|
#VertexInput
|
|
vec2 TexCoord
|
|
|
|
#Vertex
|
|
Output
|
|
{
|
|
vec2 TexCoord
|
|
}
|
|
|
|
Code
|
|
{
|
|
void main()
|
|
{
|
|
Output.TexCoord=TexCoord;
|
|
|
|
gl_Position=GetPosition2D();
|
|
}
|
|
}
|
|
|
|
#Fragment
|
|
|
|
sampler2D TextureColor
|
|
|
|
Output
|
|
{
|
|
vec4 FragColor;
|
|
}
|
|
|
|
Code
|
|
{
|
|
void main()
|
|
{
|
|
FragColor=texture(TextureColor,Input.TexCoord);
|
|
}
|
|
}
|