larry babby and threejs for glsl

This commit is contained in:
Sam
2024-06-24 21:24:00 +12:00
parent 87d5dc634d
commit 907ebae4c0
6474 changed files with 1279596 additions and 8 deletions

View File

@@ -0,0 +1,3 @@
precision mediump float;
#define GLSLIFY 1
struct Thing{float b;float c;};vec4 someFunction(vec2 b,vec2 c,vec3 d){return vec4(d,c.y);}void main(){gl_FragColor=someFunction(vec2(0),vec2(1),vec3(2));}

View File

@@ -0,0 +1,27 @@
precision mediump float;
#define GLSLIFY 1
struct Thing {
float b;
float c;
}
;
vec4 someFunction (
vec2 b,
vec2 c, vec3 d
) {
return vec4( d , c.y );
}
void main(
) {
gl_FragColor = someFunction ( vec2(0), vec2(1), vec3(2) );
}

View File

@@ -0,0 +1,551 @@
precision
mediump
float;
#define GLSLIFY 1
struct
Thing
{
float
b;
float
c;
}
;
vec4
someFunction
(
vec2
b,
vec2
c,
vec3
d
)
{
return
vec4(
d
,
c.y
);
}
void
main(
)
{
gl_FragColor
=
someFunction
(
vec2(0),
vec2(1),
vec3(2)
);
}

View File

@@ -0,0 +1,35 @@
precision mediump float;
#define GLSLIFY 1
struct Thing {
float b;
float c;
}
;
vec4 someFunction (
vec2 b,
vec2 c, vec3 d
) {
return vec4( d , c.y );
}
void main(
) {
gl_FragColor = someFunction ( vec2(0), vec2(1), vec3(2) );
}

View File

@@ -0,0 +1,7 @@
precision mediump float;
attribute vec2 position;
void main() {
gl_Position = vec4(position, 1, 1);
}