Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: conformance/shaders/misc/shared-b.frag

Issue 8344024: Remove older revision of webgl conformance tests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/webgl/sdk/tests/
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « conformance/shaders/misc/shared-a.frag ('k') | conformance/shaders/reserved/00_shaders.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: conformance/shaders/misc/shared-b.frag
===================================================================
--- conformance/shaders/misc/shared-b.frag (revision 106149)
+++ conformance/shaders/misc/shared-b.frag (working copy)
@@ -1,31 +0,0 @@
-// shared fragment shader should succeed.
-precision mediump float;
-varying vec4 v_position;
-varying vec2 v_texCoord;
-varying vec3 v_surfaceToLight;
-
-// #fogUniforms
-
-vec4 lit(float l ,float h, float m) {
- return vec4(1.0,
- max(l, 0.0),
- (l > 0.0) ? pow(max(0.0, h), m) : 0.0,
- 1.0);
-}
-void main() {
- vec4 normalSpec = vec4(0,0,0,0); // #noNormalMap
- vec4 reflection = vec4(0,0,0,0); // #noReflection
- vec3 surfaceToLight = normalize(v_surfaceToLight);
- vec4 skyColor = vec4(0.5,0.5,1,1); // #noReflection
-
- vec3 halfVector = normalize(surfaceToLight);
- vec4 litR = lit(1.0, 1.0, 10.0);
- vec4 outColor = vec4(mix(
- skyColor,
- vec4(1,2,3,4) * (litR.y + litR.z * normalSpec.a),
- 1.0 - reflection.r).rgb,
- 1.0);
- // #fogCode
- gl_FragColor = outColor;
-}
-
« no previous file with comments | « conformance/shaders/misc/shared-a.frag ('k') | conformance/shaders/reserved/00_shaders.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698