Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
Fixed uninitialised variable in postprocessing shader.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Sep 4, 2013
1 parent 0371fc1 commit 266e848
Show file tree
Hide file tree
Showing 383 changed files with 386 additions and 386 deletions.
2 changes: 1 addition & 1 deletion deploy/js/effects/PaintEffect.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ var PaintEffect = function ( shared ) {
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2( 1.4 /*vingenettingOffset * 2.0*/);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion deploy/js/effects/PaintEffectDunes.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ var PaintEffectDunes = function ( shared ) {
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2(4.0);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion deploy/js/effects/PaintEffectPrairie.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ var PaintEffectPrairie = function ( shared ) {
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",


"vin = (uv - vec2(0.5)) * vec2( 1.55 /*vingenettingOffset * 2.0*/);",
Expand Down
2 changes: 1 addition & 1 deletion deploy/js/effects/PaintEffectVideo.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ var PaintEffectVideo = function ( shared ) {
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2( 1.4 /*vingenettingOffset * 2.0*/);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
8 changes: 4 additions & 4 deletions deploy/main.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/create_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@
"vec2 vin;",
"vec2 uv = vUv;",
"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",
"vin = (uv - vec2(0.5)) * vec2( 1.4 /*vingenettingOffset * 2.0*/);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/create_tests_dunes.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@
"vec2 vin;",
"vec2 uv = vUv;",
"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",
"vin = (uv - vec2(0.5)) * vec2(4.0);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/create_tests_prairie.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
"vec2 vin;",
"vec2 uv = vUv;",
"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",
"vin = (uv - vec2(0.5)) * vec2( 1.55 /*vingenettingOffset * 2.0*/);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/create_tests_white_city.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
"vec2 vin;",
"vec2 uv = vUv;",
"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",
"vin = (uv - vec2(0.5)) * vec2( 1.4 /*vingenettingOffset * 2.0*/);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/create_tests_white_dunes.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
"vec2 vin;",
"vec2 uv = vUv;",
"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",
"vin = (uv - vec2(0.5)) * vec2(4.0);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/create_tests_white_nopost.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
"vec2 vin;",
"vec2 uv = vUv;",
"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",
"vin = (uv - vec2(0.5)) * vec2( 1.4 /*vingenettingOffset * 2.0*/);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/html/animals_A_life.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2( 1.4 /*vingenettingOffset * 2.0*/);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/html/armhand.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2( 1.4 /*vingenettingOffset * 2.0*/);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/html/bear.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2( 1.4 /*vingenettingOffset * 2.0*/);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/html/bearBrown.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2( 1.4 /*vingenettingOffset * 2.0*/);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/html/birds_B_life.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2( 1.4 /*vingenettingOffset * 2.0*/);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/html/bison.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2( 1.4 /*vingenettingOffset * 2.0*/);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/html/blackwidow.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2( 1.4 /*vingenettingOffset * 2.0*/);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/html/bunny.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2( 1.4 /*vingenettingOffset * 2.0*/);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/html/butterflyA.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2( 1.4 /*vingenettingOffset * 2.0*/);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/html/butterflyB.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2( 1.4 /*vingenettingOffset * 2.0*/);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/html/butterflyC.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2( 1.4 /*vingenettingOffset * 2.0*/);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/html/butterflyD.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2( 1.4 /*vingenettingOffset * 2.0*/);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/html/butterflyLowA.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2( 1.4 /*vingenettingOffset * 2.0*/);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/html/butterflyLowB.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2( 1.4 /*vingenettingOffset * 2.0*/);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/html/butterflyLowC.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2( 1.4 /*vingenettingOffset * 2.0*/);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/html/butterflyLowD.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2( 1.4 /*vingenettingOffset * 2.0*/);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/html/centipede.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2( 1.4 /*vingenettingOffset * 2.0*/);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/html/chow.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2( 1.4 /*vingenettingOffset * 2.0*/);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/html/cow.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2( 1.4 /*vingenettingOffset * 2.0*/);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/html/cowcarcass.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2( 1.4 /*vingenettingOffset * 2.0*/);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/html/crab.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2( 1.4 /*vingenettingOffset * 2.0*/);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/html/deer.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2( 1.4 /*vingenettingOffset * 2.0*/);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2(4.0);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/html/dunes_armhand.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2(4.0);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/html/dunes_bear.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2(4.0);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/html/dunes_bearBrown.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2(4.0);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/html/dunes_birds_B_life.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2(4.0);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/html/dunes_bison.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2(4.0);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/html/dunes_blackwidow.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2(4.0);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/html/dunes_bunny.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2(4.0);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/html/dunes_butterflyA.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2(4.0);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/html/dunes_butterflyB.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2(4.0);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/html/dunes_butterflyC.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2(4.0);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
2 changes: 1 addition & 1 deletion tests/morph_colors_extractor2/html/dunes_butterflyD.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
"vec2 vin;",
"vec2 uv = vUv;",

"add += color = org = texture2D( map, uv );",
"add = color = org = texture2D( map, uv );",

"vin = (uv - vec2(0.5)) * vec2(4.0);",
"sample_dist =(dot( vin, vin ) * 2.0);",
Expand Down
Loading

0 comments on commit 266e848

Please sign in to comment.