Corrections fichiers pour avoir la version x86 fonctionnelle

This commit is contained in:
MarcEricMartel
2023-09-30 18:33:23 -04:00
parent 09dd3d332f
commit 8b3baa9063
694 changed files with 120490 additions and 5 deletions

View File

@@ -0,0 +1,11 @@
varying vec3 normal;
uniform float lightFactor;
void main()
{
vec3 lightPosition = vec3(-1.0, 1.0, 1.0);
vec3 eyePosition = vec3(0.0, 0.0, 1.0);
vec3 halfVector = normalize(lightPosition + eyePosition);
float intensity = lightFactor + (1.0 - lightFactor) * dot(normalize(normal), normalize(halfVector));
gl_FragColor = gl_Color * vec4(intensity, intensity, intensity, 1.0);
}