Lines Matching defs:sph
372 const auto& sph = this->node();
374 sph->setCenter({fOffset.x, fOffset.y});
375 sph->setRadius(fRadius);
376 sph->setSide(side(fRender));
377 sph->setRotation(rotation(fRotOrder, fRotX, fRotY, fRotZ));
379 sph->setAmbientLight (SkTPin(fAmbient * 0.01f, 0.0f, 2.0f));
382 sph->setDiffuseLight (SkTPin(fDiffuse * 0.01f, 0.0f, 1.0f) * intensity);
383 sph->setSpecularLight(SkTPin(fSpecular* 0.01f, 0.0f, 1.0f) * intensity);
385 sph->setLightVec(light_vec(
391 sph->setLightColor({lc.fR, lc.fG, lc.fB});
393 sph->setSpecularExp(1/SkTPin(fRoughness, 0.001f, 0.5f));