revert to vanilla assets
This commit is contained in:
12
public/assets/minecraft/shaders/include/projection.glsl
Normal file
12
public/assets/minecraft/shaders/include/projection.glsl
Normal file
@@ -0,0 +1,12 @@
|
||||
#version 330
|
||||
|
||||
layout(std140) uniform Projection {
|
||||
mat4 ProjMat;
|
||||
};
|
||||
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user