Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2216b956 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 3013 into donut

* changes:
  fix a bug in GL lighting where the specular component could be ommited when vertex material was disabled.
parents b5c7b39b 50aba6d3
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -318,6 +318,11 @@ void lightVertexMaterial(ogles_context_t* c, vertex_t* v)
        vmul3(l.implicitAmbient.v,  material.ambient.v,  l.ambient.v);
        vmul3(l.implicitDiffuse.v,  material.diffuse.v,  l.diffuse.v);
        vmul3(l.implicitSpecular.v, material.specular.v, l.specular.v);
        // this is just a flag to tell if we have a specular component
        l.implicitSpecular.v[3] =
                l.implicitSpecular.r |
                l.implicitSpecular.g |
                l.implicitSpecular.b;
    }
    // emission and ambient for the whole scene
    vmla3(  c->lighting.implicitSceneEmissionAndAmbient.v,