mirror of https://github.com/teverse/teverse
Compare commits
3 Commits
edd5bce75c
...
ff7349f77b
Author | SHA1 | Date |
---|---|---|
Jay | ff7349f77b | |
Jay | 603e4e49c2 | |
Jay | 8285c56bec |
|
@ -89,7 +89,7 @@ void main()
|
|||
vec3 V = normalize(uniformCameraPosition.xyz - wpos);
|
||||
|
||||
vec3 F0 = vec3(0.04, 0.04, 0.04);
|
||||
F0 = mix(F0, colour, metallic);
|
||||
F0 = mix(F0, colour.xyz, metallic);
|
||||
|
||||
vec3 L = lightDir;
|
||||
vec3 H = normalize(V + L);
|
||||
|
@ -110,5 +110,5 @@ void main()
|
|||
// add to outgoing radiance Lo
|
||||
float NdotL = max(dot(normal.xyz, L), 0.0);
|
||||
|
||||
gl_FragColor = vec4(((kD * colour / PI + specular) * lightColour * NdotL), colour.w);
|
||||
gl_FragColor = vec4(((kD * colour.xyz / PI + specular) * lightColour * NdotL), colour.w);
|
||||
}
|
Loading…
Reference in New Issue