mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-23 01:21:57 -05:00
15 lines
No EOL
408 B
Text
15 lines
No EOL
408 B
Text
void main(
|
|
float4 in_position : POSITION,
|
|
float4 in_color : DIFFUSE,
|
|
float4 in_tex : TEXCOORD,
|
|
uniform float4x4 mvp,
|
|
uniform float4 uv_offset,
|
|
out float4 out_pos : POSITION,
|
|
out float4 out_color : COLOR,
|
|
out float2 out_tex : TEXCOORD0)
|
|
{
|
|
float4 pos = float4(in_position.xyz, 1.0f);
|
|
out_pos = mul(pos, mvp);
|
|
out_color = in_color;
|
|
out_tex = in_tex + uv_offset;
|
|
} |