'convert' shaders to ts
This commit is contained in:
parent
553cecbcc7
commit
ad6484ef03
|
@ -1,3 +1,4 @@
|
||||||
|
/* eslint-disable */
|
||||||
export default `#define MAX_STEPS 1000
|
export default `#define MAX_STEPS 1000
|
||||||
#define MAX_DIST 500.
|
#define MAX_DIST 500.
|
||||||
#define E 0.000001
|
#define E 0.000001
|
||||||
|
@ -104,3 +105,4 @@ void mainImage( out vec4 fragColor, in vec2 fragCoord )
|
||||||
//col = myvec;
|
//col = myvec;
|
||||||
fragColor = vec4(col,1.0);
|
fragColor = vec4(col,1.0);
|
||||||
}`;
|
}`;
|
||||||
|
/* eslint-enable */
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* eslint-disable */
|
||||||
export default `#define MAX_STEPS 1280
|
export default `#define MAX_STEPS 1280
|
||||||
#define MAX_DIST 1280.
|
#define MAX_DIST 1280.
|
||||||
#define E 0.00001
|
#define E 0.00001
|
||||||
|
@ -75,3 +76,4 @@ void mainImage( out vec4 fragColor, in vec2 fragCoord ) {
|
||||||
col += vec3(dif);
|
col += vec3(dif);
|
||||||
fragColor = vec4(col, 1.0);
|
fragColor = vec4(col, 1.0);
|
||||||
}`;
|
}`;
|
||||||
|
/* eslint-enable */
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* eslint-disable */
|
||||||
export default `
|
export default `
|
||||||
#define MAX_STEPS 1280
|
#define MAX_STEPS 1280
|
||||||
#define MAX_DIST 1280.
|
#define MAX_DIST 1280.
|
||||||
|
@ -200,5 +201,5 @@ void mainImage( out vec4 fragColor, in vec2 fragCoord )
|
||||||
col += vec3(dif / 2., dif / 2., dif / 2.);
|
col += vec3(dif / 2., dif / 2., dif / 2.);
|
||||||
//col = pow(col, vec3(0.454545));
|
//col = pow(col, vec3(0.454545));
|
||||||
fragColor = vec4(col, 1.0);
|
fragColor = vec4(col, 1.0);
|
||||||
}
|
}`;
|
||||||
`
|
/* eslint-enable */
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* eslint-disable */
|
||||||
export default `#define MAX_STEPS 1280
|
export default `#define MAX_STEPS 1280
|
||||||
#define MAX_DIST 1024.
|
#define MAX_DIST 1024.
|
||||||
#define E 0.0001
|
#define E 0.0001
|
||||||
|
@ -221,3 +222,4 @@ void mainImage( out vec4 fragColor, in vec2 fragCoord )
|
||||||
}
|
}
|
||||||
fragColor = vec4(col, 1.0);
|
fragColor = vec4(col, 1.0);
|
||||||
}`;
|
}`;
|
||||||
|
/* eslint-enable */
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* eslint-disable */
|
||||||
export default `
|
export default `
|
||||||
#define MAX_STEPS 1280
|
#define MAX_STEPS 1280
|
||||||
#define MAX_DIST 128.
|
#define MAX_DIST 128.
|
||||||
|
@ -141,4 +142,5 @@ void mainImage( out vec4 fragColor, in vec2 fragCoord )
|
||||||
// Output to screen
|
// Output to screen
|
||||||
col = pow(col, vec3(0.454545));
|
col = pow(col, vec3(0.454545));
|
||||||
fragColor = vec4(col, 1.0);
|
fragColor = vec4(col, 1.0);
|
||||||
}`
|
}`;
|
||||||
|
/* eslint-enable */
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* eslint-disable */
|
||||||
export default `#define MAX_STEPS 1280
|
export default `#define MAX_STEPS 1280
|
||||||
#define MAX_DIST 1280.
|
#define MAX_DIST 1280.
|
||||||
#define E 0.00001
|
#define E 0.00001
|
||||||
|
@ -228,3 +229,4 @@ void mainImage( out vec4 fragColor, in vec2 fragCoord )
|
||||||
col += dif;
|
col += dif;
|
||||||
fragColor = vec4(col, 1.0);
|
fragColor = vec4(col, 1.0);
|
||||||
}`;
|
}`;
|
||||||
|
/* eslint-enable */
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* eslint-disable */
|
||||||
export default `
|
export default `
|
||||||
#define MAX_STEPS 12800
|
#define MAX_STEPS 12800
|
||||||
#define MAX_DIST 128.
|
#define MAX_DIST 128.
|
||||||
|
@ -202,5 +203,5 @@ void mainImage( out vec4 fragColor, in vec2 fragCoord )
|
||||||
}
|
}
|
||||||
col = pow(col, vec3(0.454545));
|
col = pow(col, vec3(0.454545));
|
||||||
fragColor = vec4(col, 1.);
|
fragColor = vec4(col, 1.);
|
||||||
}
|
}`;
|
||||||
`
|
/* eslint-enable */
|
|
@ -1,3 +1,4 @@
|
||||||
|
/* eslint-disable */
|
||||||
export default `#define MAX_STEPS 1280
|
export default `#define MAX_STEPS 1280
|
||||||
#define MAX_DIST 128.
|
#define MAX_DIST 128.
|
||||||
#define E 0.0001
|
#define E 0.0001
|
||||||
|
@ -151,3 +152,4 @@ void mainImage( out vec4 fragColor, in vec2 fragCoord )
|
||||||
col = pow(col, vec3(0.454545));
|
col = pow(col, vec3(0.454545));
|
||||||
fragColor = vec4(col, 1.0);
|
fragColor = vec4(col, 1.0);
|
||||||
}`;
|
}`;
|
||||||
|
/* eslint-enable */
|
Loading…
Reference in New Issue