veloren/assets/voxygen/shaders/trail-vert.glsl
Imbris 5434ce546b Fix issue with missing capability when enabling shaderc optimizations
See https://github.com/gfx-rs/wgpu/issues/4915

Also:
* Remove unused vert-out frag-in variables from shaders (naga doesn't
  like this probably because they are optimized out on the fragment
  side). This restriction from naga may be relaxed in the future
  see https://github.com/gfx-rs/wgpu/issues/3748.
* Enable OptimizationLevel::Performance for shaderc by default
* Add a environment variable VOXYGEN_SHADERC_OPTS for disabling this
  (e.g. to test if it actually makes a difference on any platform).
  (TODO: testing might be easier if there was a way to do toggle it
  without restarting...)
2024-02-14 16:36:59 -05:00

10 lines
157 B
GLSL

#version 440 core
#include <globals.glsl>
layout(location = 0) in vec3 v_pos;
void main() {
gl_Position = all_mat * vec4(v_pos - focus_off.xyz, 1);
}