Merge branch 'master' of https://github.com/Doodle3D/Doodle3D-Core
Before Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 113 KiB |
BIN
img/bannerBg.png
Before Width: | Height: | Size: 14 KiB |
BIN
img/btnCross.png
Before Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 630 B |
Before Width: | Height: | Size: 524 B |
Before Width: | Height: | Size: 639 B |
Before Width: | Height: | Size: 930 B |
BIN
img/btnPlus.png
Before Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 219 KiB |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 8.6 KiB |
Before Width: | Height: | Size: 8.1 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 9.0 KiB |
Before Width: | Height: | Size: 8.1 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 9.3 KiB |
Before Width: | Height: | Size: 10 KiB |
BIN
img/logo.png
Before Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 9.3 KiB |
Before Width: | Height: | Size: 8.9 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 9.9 KiB |
Before Width: | Height: | Size: 9.6 KiB |
Before Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 5.6 KiB |
Before Width: | Height: | Size: 7.6 KiB |
Before Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 7.4 KiB |
Before Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 7.0 KiB |
BIN
img/menu/new.png
Before Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 6.4 KiB |
Before Width: | Height: | Size: 8.7 KiB |
Before Width: | Height: | Size: 8.4 KiB |
Before Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 34 KiB |
Before Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 11 KiB |
BIN
img/platform.png
Before Width: | Height: | Size: 22 KiB |
BIN
img/trace.jpg
Before Width: | Height: | Size: 146 KiB |
@ -5,32 +5,25 @@ varying vec2 vUv;
|
||||
uniform mat3 colorMatrixLeft;
|
||||
uniform mat3 colorMatrixRight;
|
||||
|
||||
float lin( float c ) {
|
||||
return c <= 0.04045 ? c * 0.0773993808 :
|
||||
pow( c * 0.9478672986 + 0.0521327014, 2.4 );
|
||||
float lin(float c) {
|
||||
return c <= 0.04045 ? c * 0.0773993808 : pow(c * 0.9478672986 + 0.0521327014, 2.4);
|
||||
}
|
||||
|
||||
vec4 lin( vec4 c ) {
|
||||
return vec4( lin( c.r ), lin( c.g ), lin( c.b ), c.a );
|
||||
vec4 lin(vec4 c) {
|
||||
return vec4(lin(c.r), lin(c.g), lin(c.b), c.a);
|
||||
}
|
||||
|
||||
float dev( float c ) {
|
||||
return c <= 0.0031308 ? c * 12.92 : pow( c, 0.41666 ) * 1.055 - 0.055;
|
||||
float dev(float c) {
|
||||
return c <= 0.0031308 ? c * 12.92 : pow(c, 0.41666) * 1.055 - 0.055;
|
||||
}
|
||||
|
||||
void main() {
|
||||
|
||||
vec2 uv = vUv;
|
||||
|
||||
vec4 colorL = lin( texture2D( mapLeft, uv ) );
|
||||
vec4 colorR = lin( texture2D( mapRight, uv ) );
|
||||
vec4 colorL = lin(texture2D(mapLeft, uv));
|
||||
vec4 colorR = lin(texture2D(mapRight, uv));
|
||||
|
||||
vec3 color = clamp(
|
||||
colorMatrixLeft * colorL.rgb +
|
||||
colorMatrixRight * colorR.rgb, 0., 1. );
|
||||
|
||||
gl_FragColor = vec4(
|
||||
dev( color.r ), dev( color.g ), dev( color.b ),
|
||||
max( colorL.a, colorR.a ) );
|
||||
vec3 color = clamp(colorMatrixLeft * colorL.rgb + colorMatrixRight * colorR.rgb, 0., 1.);
|
||||
|
||||
gl_FragColor = vec4(dev(color.r), dev(color.g), dev(color.b), max(colorL.a, colorR.a));
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
varying vec2 vUv;
|
||||
|
||||
void main() {
|
||||
vUv = vec2( uv.x, uv.y );
|
||||
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
|
||||
vUv = vec2(uv.x, uv.y);
|
||||
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
||||
}
|
||||
|