MCPcopy Create free account
hub / github.com/axmolengine/axmol / setLightPos

Method setLightPos

tests/cpp-tests/Source/ShaderTest/ShaderTest2.cpp:454–458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

452}
453
454void EffectNormalMapped::setLightPos(const Vec3& pos)
455{
456 _lightPos = pos;
457 SET_UNIFORM(_programState, "u_lightPosInLocalSpace", Vec4(_lightPos.x, _lightPos.y, _lightPos.z, 1));
458}
459
460void EffectNormalMapped::setLightColor(const Color4F& color)
461{

Callers 4

initMethod · 0.80
onTouchesBeganMethod · 0.80
onTouchesMovedMethod · 0.80
onTouchesEndedMethod · 0.80

Calls 1

Vec4Function · 0.50

Tested by

no test coverage detected