Skip to content
This repository was archived by the owner on Jun 24, 2024. It is now read-only.

Commit 891ed02

Browse files
committed
renamed sketches so they appear in the right order
1 parent 95ff399 commit 891ed02

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+60
-107
lines changed

intro/Ex_2_1_toon/data/frag.glsl renamed to intro/Ex_02_1_toon/data/frag.glsl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ precision mediump float;
33
precision mediump int;
44
#endif
55

6-
#define PROCESSING_LIGHT_SHADER
7-
86
uniform float fraction;
97

108
varying vec4 vertColor;

intro/Ex_2_1_toon/data/vert.glsl renamed to intro/Ex_02_1_toon/data/vert.glsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ uniform mat4 transform;
22
uniform mat3 normalMatrix;
33
uniform vec3 lightNormal;
44

5-
attribute vec4 vertex;
5+
attribute vec4 position;
66
attribute vec4 color;
77
attribute vec3 normal;
88

@@ -11,7 +11,7 @@ varying vec3 vertNormal;
1111
varying vec3 vertLightDir;
1212

1313
void main() {
14-
gl_Position = transform * vertex;
14+
gl_Position = transform * position;
1515
vertColor = color;
1616
vertNormal = normalize(normalMatrix * normal);
1717
vertLightDir = -lightNormal;
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
#define PROCESSING_COLOR_SHADER
2-
31
uniform mat4 transform;
42

5-
attribute vec4 vertex;
3+
attribute vec4 position;
64
attribute vec4 color;
75

86
varying vec4 vertColor;
97

108
void main() {
11-
gl_Position = transform * vertex;
9+
gl_Position = transform * position;
1210
vertColor = color;
1311
}

0 commit comments

Comments
 (0)