diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-05-02 00:47:26 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-05-02 00:54:41 +0300 |
commit | 2a7a01b339ad60aec5ffe265411fa2f0b1589137 (patch) | |
tree | 6b472e21edc425d2ceb21c378d248c19bbd558e5 /source/blender/gpu/shaders/gpu_shader_3D_polyline_vert.glsl | |
parent | aa34706aacdab45847d7c0e3987b1de4ff0b8760 (diff) |
GPUShader: Port polyline shaders to use shaderCreateInfo
This should have no functional changes.
Diffstat (limited to 'source/blender/gpu/shaders/gpu_shader_3D_polyline_vert.glsl')
-rw-r--r-- | source/blender/gpu/shaders/gpu_shader_3D_polyline_vert.glsl | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_3D_polyline_vert.glsl b/source/blender/gpu/shaders/gpu_shader_3D_polyline_vert.glsl index 5c673494870..d4ef3e6142f 100644 --- a/source/blender/gpu/shaders/gpu_shader_3D_polyline_vert.glsl +++ b/source/blender/gpu/shaders/gpu_shader_3D_polyline_vert.glsl @@ -1,29 +1,11 @@ -#ifndef USE_GPU_SHADER_CREATE_INFO -uniform mat4 ModelViewProjectionMatrix; -uniform mat4 ModelMatrix; -uniform vec4 ClipPlane; - -in vec3 pos; - -# if !defined(UNIFORM) -in vec4 color; - -out vec4 finalColor_g; -# endif - -# ifdef CLIP -out float clip_g; -# endif -#endif void main() { gl_Position = ModelViewProjectionMatrix * vec4(pos, 1.0); -#if !defined(UNIFORM) - finalColor_g = color; +#ifndef UNIFORM + interp.color = color; #endif - #ifdef CLIP - clip_g = dot(ModelMatrix * vec4(pos, 1.0), ClipPlane); + interp.clip = dot(ModelMatrix * vec4(pos, 1.0), ClipPlane); #endif } |