This commit is contained in:
s473621 2024-02-07 15:36:10 +01:00
parent c20788feaa
commit 349ba83ec3

View File

@ -2,17 +2,9 @@
float AMBIENT = 0.2; float AMBIENT = 0.2;
uniform vec3 color;
uniform vec3 lightPos; uniform vec3 lightPos;
uniform vec3 viewPos; uniform sampler2D colorTexture;
in vec3 FragPos; // Pozycja fragmentu
in vec3 Normal; // Normalna fragmentu
out vec4 FragColor;
// Obliczenie faktora odbicia ?wietlnego dla modelu PBR
float DistributionGGX(vec3 N, vec3 H, float roughness);
float GeometrySchlickGGX(float NdotV, float roughness);
float GeometrySmith(vec3 N, vec3 V, vec3 L, float roughness);
const float PI = 3.14159265359; const float PI = 3.14159265359;