aesthetics: mm

This commit is contained in:
FMS-Cat
2021-03-15 12:41:30 +09:00
parent a64e4af324
commit 3f0c7eb0a5
2 changed files with 7 additions and 12 deletions

View File

@@ -27,15 +27,10 @@ float fbm( vec4 p ) {
}
void main() {
float rough = smoothstep( -0.6, 0.6, fbm( vPositionWithoutModel ) );
// vec3 ndisp = rough * 0.2 * vec3(
// fbm( 1.577 + 4.0 * vPosition ),
// fbm( 12.577 + 4.0 * vPosition ),
// fbm( 27.577 + 4.0 * vPosition )
// );
float rough = sin( 14.0 * fbm( vPositionWithoutModel ) );
fragPosition = vPosition;
fragNormal = vec4( normalize( vNormal ), 1.0 );
fragColor = vec4( vec3( 0.5 - 0.3 * rough ), 1.0 );
fragWTF = vec4( vec3( 0.3 + 0.2 * rough, 0.9, 0.0 ), MTL_PBR );
fragColor = vec4( vec3( 0.5 ), 1.0 );
fragWTF = vec4( vec3( 0.2 + 0.03 * rough, 0.17, 0.0 ), MTL_PBR );
}

View File

@@ -2,7 +2,7 @@
precision highp float;
const int MTL_UNLIT = 1;
const int MTL_PBR = 2;
in float vLife;
in vec4 vPosition;
@@ -17,7 +17,7 @@ uniform float time;
void main() {
fragPosition = vPosition;
fragNormal = vec4( vNormal, 1.0 );
fragColor = vec4( 0.6, 1.8, 1.2, 1.0 );
fragWTF = vec4( vec3( 0.0, 0.0, 0.0 ), MTL_UNLIT );
fragNormal = vec4( normalize( vNormal ), 1.0 );
fragColor = vec4( 0.2, 0.9, 0.5, 1.0 );
fragWTF = vec4( vec3( 0.2, 0.2, 4.0 ), MTL_PBR );
}