demo stuff

This commit is contained in:
Luca Conte 2024-05-27 12:18:45 +02:00
parent 6b609ac858
commit b9beb5975d
1 changed files with 1 additions and 0 deletions

View File

@ -28,6 +28,7 @@ void main() {
vec4 color = texture(myTexture, textureCoordinate); vec4 color = texture(myTexture, textureCoordinate);
vec3 norm = normalize((texture(myNormal, textureCoordinate).xyz * 2 - vec3(1,1,1))); vec3 norm = normalize((texture(myNormal, textureCoordinate).xyz * 2 - vec3(1,1,1)));
// norm = normalize(normal);
vec3 lightDir = TBN * normalize(lightPosition - fragmentPosition); vec3 lightDir = TBN * normalize(lightPosition - fragmentPosition);
vec3 eyeDir = TBN * (-normalize(fragmentPosition)); vec3 eyeDir = TBN * (-normalize(fragmentPosition));