mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
修改。
This commit is contained in:
parent
5d40849fb4
commit
e1194eb36b
@ -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
1158
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -34,4 +34,4 @@
|
||||
"url": "https://github.com/tengge1/ShadowEditor/issues"
|
||||
},
|
||||
"homepage": "https://github.com/tengge1/ShadowEditor"
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user