lygia
/v1.2.0
/lighting
/specular
/beckmann
)Dependencies:
#ifndef FNC_SPECULAR_BECKMANN
#define FNC_SPECULAR_BECKMANN
float specularBeckmann(const in vec3 L, const in vec3 N, const in vec3 V, const in float roughness) {
float NoH = dot(N, normalize(L + V));
return beckmann(NoH, roughness);
}
float specularBeckmann(const in vec3 L, const in vec3 N, const in vec3 V, const in float roughness, const in float fresnel) {
return specularBeckmann(L, N, V, roughness);
}
float specularBeckmann(const in vec3 L, const in vec3 N, const in vec3 V, const in float NoV, const in float NoL, const in float roughness, const in float fresnel) {
return specularBeckmann(L, N, V, roughness);
}
#endif
Dependencies:
#ifndef FNC_SPECULAR_BECKMANN
#define FNC_SPECULAR_BECKMANN
float specularBeckmann(float3 L, float3 N, float3 V, float roughness) {
float NoH = dot(N, normalize(L + V));
return beckmann(NoH, roughness);
}
float specularBeckmann(float3 L, float3 N, float3 V, float roughness, float fresnel) {
return specularBeckmann(L, N, V, roughness);
}
float specularBeckmann(float3 L, float3 N, float3 V, float NoV, float NoL, float roughness, float fresnel) {
return specularBeckmann(L, N, V, roughness);
}
#endif
LYGIA is dual-licensed under the Prosperity License and the Patron License for sponsors and contributors.
Sponsors and contributors are automatically added to the Patron License and they can ignore the any non-commercial rule of the Prosperity Licensed software (please take a look to the exception).
It's also possible to get a permanent comercial license hook to a single and specific version of LYGIA.
Sign up for the news letter bellow, joing the LYGIA's channel on Discord or follow the Github repository