Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Fadecandy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
scanlime
Fadecandy
Commits
b161bbc2
Commit
b161bbc2
authored
11 years ago
by
Micah Elizabeth Scott
Browse files
Options
Downloads
Patches
Plain Diff
Actually this.
parent
83a0bc53
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/processing/grid32x16z_red/grid32x16z_red.pde
+8
-14
8 additions, 14 deletions
examples/processing/grid32x16z_red/grid32x16z_red.pde
with
8 additions
and
14 deletions
examples/processing/grid32x16z_red/grid32x16z_red.pde
+
8
−
14
View file @
b161bbc2
...
@@ -9,7 +9,7 @@ void setup()
...
@@ -9,7 +9,7 @@ void setup()
blur
=
loadShader
(
"blur.glsl"
);
blur
=
loadShader
(
"blur.glsl"
);
blur
.
set
(
"blurSize"
,
height
/
8
);
blur
.
set
(
"blurSize"
,
height
/
8
);
blur
.
set
(
"sigma"
,
2
0.0
f
);
blur
.
set
(
"sigma"
,
1
0.0
f
);
src
=
createGraphics
(
width
,
height
,
P3D
);
src
=
createGraphics
(
width
,
height
,
P3D
);
...
@@ -42,20 +42,21 @@ void draw()
...
@@ -42,20 +42,21 @@ void draw()
src
.
beginDraw
();
src
.
beginDraw
();
src
.
noStroke
();
src
.
noStroke
();
src
.
background
(
0
);
src
.
background
(
255
,
0
,
0
);
src
.
fill
(
255
);
src
.
fill
(
255
,
80
);
src
.
directionalLight
(
255
,
255
,
255
,
-
1
,
0
,
0.4
);
src
.
directionalLight
(
255
,
255
,
255
,
-
1
,
0
,
0.4
);
src
.
directionalLight
(
255
,
255
,
255
,
-
1
,
0
,
0.2
);
src
.
directionalLight
(
255
,
255
,
255
,
-
1
,
0
,
0.2
);
src
.
directionalLight
(
255
,
255
,
255
,
-
1
,
0
,
0
);
src
.
directionalLight
(
255
,
255
,
255
,
-
1
,
0
,
0
);
src
.
directionalLight
(
255
,
0
,
0
,
1
,
0
,
0
);
// Lots of rotating cubes
// Lots of rotating cubes
for
(
int
i
=
0
;
i
<
5
0
;
i
++
)
{
for
(
int
i
=
0
;
i
<
10
0
;
i
++
)
{
src
.
pushMatrix
();
src
.
pushMatrix
();
src
.
translate
(
random
(
0
,
width
),
random
(
0
,
height
),
0
);
src
.
translate
(
random
(
0
,
width
),
random
(
0
,
height
),
0
);
src
.
rotateY
(
t
*
0.
5
+
randomGaussian
());
src
.
rotateY
(
t
*
0.
3
+
randomGaussian
());
src
.
rotateX
(
randomGaussian
());
src
.
rotateX
(
t
*
0.122222
+
randomGaussian
());
src
.
box
(
height
*
abs
(
0.
3
+
0.
1
*
randomGaussian
()));
src
.
box
(
height
*
abs
(
0.
2
+
0.
2
*
randomGaussian
()));
src
.
popMatrix
();
src
.
popMatrix
();
}
}
...
@@ -74,13 +75,6 @@ void draw()
...
@@ -74,13 +75,6 @@ void draw()
pass2
.
image
(
pass1
,
0
,
0
);
pass2
.
image
(
pass1
,
0
,
0
);
pass2
.
endDraw
();
pass2
.
endDraw
();
blendMode
(
NORMAL
);
image
(
pass2
,
0
,
0
);
image
(
pass2
,
0
,
0
);
// Bright red wash
blendMode
(
ADD
);
fill
(
255
,
20
,
20
,
190
);
noStroke
();
rect
(
0
,
0
,
width
,
height
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment