diff options
author | Alex Sakhartchouk <alexst@google.com> | 2011-12-08 17:55:09 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-12-08 17:55:09 -0800 |
commit | 1fc841ac55eaef8c53f289335621962973e852c3 (patch) | |
tree | 8a5615471a27e7dab7e5afc8f6fc92ad49b000df /tests/RenderScriptTests/SceneGraph/res/raw/blur_v.glsl | |
parent | c7f3947c588f8b1f1829cfcc1235d3d010efdba2 (diff) | |
parent | a7a211b8a68a7d3f5ff4409aa286db07f96c0550 (diff) | |
download | frameworks_base-1fc841ac55eaef8c53f289335621962973e852c3.zip frameworks_base-1fc841ac55eaef8c53f289335621962973e852c3.tar.gz frameworks_base-1fc841ac55eaef8c53f289335621962973e852c3.tar.bz2 |
Merge "Sample scene graph" into graphics-dev
Diffstat (limited to 'tests/RenderScriptTests/SceneGraph/res/raw/blur_v.glsl')
-rw-r--r-- | tests/RenderScriptTests/SceneGraph/res/raw/blur_v.glsl | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/RenderScriptTests/SceneGraph/res/raw/blur_v.glsl b/tests/RenderScriptTests/SceneGraph/res/raw/blur_v.glsl new file mode 100644 index 0000000..a644a3e --- /dev/null +++ b/tests/RenderScriptTests/SceneGraph/res/raw/blur_v.glsl @@ -0,0 +1,17 @@ +varying vec2 varTex0; + +void main() { + vec2 blurCoord = varTex0; + blurCoord.y = varTex0.y + UNI_blurOffset0; + vec3 col = texture2D(UNI_Tex0, blurCoord).rgb; + blurCoord.y = varTex0.y + UNI_blurOffset1; + col += texture2D(UNI_Tex0, blurCoord).rgb; + blurCoord.y = varTex0.y + UNI_blurOffset2; + col += texture2D(UNI_Tex0, blurCoord).rgb; + blurCoord.y = varTex0.y + UNI_blurOffset3; + col += texture2D(UNI_Tex0, blurCoord).rgb; + + col = col * 0.25; + + gl_FragColor = vec4(col, 0.0); //texture2D(UNI_Tex0, varTex0); +} |