修改。

This commit is contained in:
liteng 2019-02-01 17:14:00 +08:00
parent 5d40849fb4
commit e1194eb36b
3 changed files with 584 additions and 583 deletions

View File

@ -1,9 +1,10 @@
varying vec3 vNormal;
const vec3 lightPosition = vec3(0.0, 0.0, 1.0);
const vec3 lightColor = vec3(1.0, 0.0, 0.0);
const vec3 lightPosition = vec3(0.0, 0.0, 1.0);
const float shiness = 0.8;
void main() {
gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);
vec3 color = lightColor * pow(max(0, cameraPosition * reflect(vNormal)), shiness);
gl_FragColor = vec4(color, 1.0);
}

1158
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -34,4 +34,4 @@
"url": "https://github.com/tengge1/ShadowEditor/issues"
},
"homepage": "https://github.com/tengge1/ShadowEditor"
}
}