diff options
Diffstat (limited to 'shaders/skia/1-857.shader_test')
-rw-r--r-- | shaders/skia/1-857.shader_test | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/shaders/skia/1-857.shader_test b/shaders/skia/1-857.shader_test new file mode 100644 index 0000000..f3a788d --- /dev/null +++ b/shaders/skia/1-857.shader_test @@ -0,0 +1,39 @@ +[require] +GLSL >= 1.40 + +[fragment shader] +#version 140 + +out vec4 sk_FragColor; +void main() { + { + sk_FragColor = vec4(1.0, 1.0, 1.0, 1.0); + } +} + +[vertex shader] +#version 140 + +uniform vec4 sk_RTAdjust; +in vec2 attr0; +in float attr1; +in vec2 attr2; +in float attr3; +in vec2 attr4; +in float attr5; +in vec2 attr6; +in float attr7; +in vec2 attr8; +in float attr9; +in vec2 attr10; +in float attr11; +in vec2 attr12; +in float attr13; +in vec2 attr14; +in float attr15; +void main() { + vec2 pos2 = attr0; + gl_Position = vec4(pos2.x, pos2.y, 0.0, 1.0); + gl_Position = vec4(gl_Position.xy * sk_RTAdjust.xz + gl_Position.ww * sk_RTAdjust.yw, 0.0, gl_Position.w); +} + |