minetest/client/shaders/Irrlicht/Renderer2D.vsh

26 lines
422 B
V Shell
Raw Normal View History

2024-03-21 20:13:15 +01:00
#version 100
/* Attributes */
attribute vec4 inVertexPosition;
attribute vec4 inVertexColor;
attribute vec2 inTexCoord0;
/* Uniforms */
uniform float uThickness;
uniform mat4 uProjection;
2024-03-21 20:13:15 +01:00
/* Varyings */
varying vec2 vTextureCoord;
varying vec4 vVertexColor;
void main()
{
gl_Position = uProjection * inVertexPosition;
2024-03-21 20:13:15 +01:00
gl_PointSize = uThickness;
vTextureCoord = inTexCoord0;
vVertexColor = inVertexColor.bgra;
}