mirror of
https://github.com/SangeloDev/SangeFault.git
synced 2024-11-13 00:52:43 +00:00
9 lines
241 B
Text
9 lines
241 B
Text
|
#version 150
|
||
|
|
||
|
vec4 projection_from_position(vec4 position) {
|
||
|
vec4 projection = position * 0.5;
|
||
|
projection.xy = vec2(projection.x + projection.w, projection.y + projection.w);
|
||
|
projection.zw = position.zw;
|
||
|
return projection;
|
||
|
}
|