diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2022-02-19 00:28:05 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2022-02-19 00:28:05 +0300 |
commit | 93cc892470109ab505f00f0b9d2bddb1a0a8179d (patch) | |
tree | 60f08236193506069c085b5c934ddbf93c0f8ece /intern/opencolorio/gpu_shader_display_transform_vertex.glsl | |
parent | 32660382f54819b5b21d3279ca0540d2df17b252 (diff) |
Revert "OCIO: Port shader creation logic to use GPUShaderCreateInfo"
This reverts commit 7f7c614ecddbcb66de0bff1657366970dede99be.
Diffstat (limited to 'intern/opencolorio/gpu_shader_display_transform_vertex.glsl')
-rw-r--r-- | intern/opencolorio/gpu_shader_display_transform_vertex.glsl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/intern/opencolorio/gpu_shader_display_transform_vertex.glsl b/intern/opencolorio/gpu_shader_display_transform_vertex.glsl new file mode 100644 index 00000000000..8cf9628b06b --- /dev/null +++ b/intern/opencolorio/gpu_shader_display_transform_vertex.glsl @@ -0,0 +1,12 @@ + +uniform mat4 ModelViewProjectionMatrix; + +in vec2 texCoord; +in vec2 pos; +out vec2 texCoord_interp; + +void main() +{ + gl_Position = ModelViewProjectionMatrix * vec4(pos.xy, 0.0f, 1.0f); + texCoord_interp = texCoord; +} |