LYGIA Shader Library

resolve (lygia/lighting/light/resolve)


Check it on Github


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);



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.

Get the latest news and releases

Sign up for the news letter bellow, joing the LYGIA's channel on Discord or follow the Github repository