lygia
/v1.1.6
/lighting
/light
/resolve
)Dependencies:
lygia
/v1.1.6
/lighting
/light
/point
.glsl
lygia
/v1.1.6
/lighting
/light
/directional
.glsl
lygia
/v1.1.6
/lighting
/material
.glsl
#ifndef FNC_LIGHT_RESOLVE
#define FNC_LIGHT_RESOLVE
void lightResolve(vec3 _diffuseColor, vec3 _specularColor, Material _M, LightPoint _L, inout vec3 _lightDiffuse, inout vec3 _lightSpecular) {
lightPoint(_diffuseColor, _specularColor, _L, _M, _lightDiffuse, _lightSpecular);
}
void lightResolve(vec3 _diffuseColor, vec3 _specularColor, Material _M, LightDirectional _L, inout vec3 _lightDiffuse, inout vec3 _lightSpecular) {
lightDirectional(_diffuseColor, _specularColor, _L, _M, _lightDiffuse, _lightSpecular);
}
#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