MCPcopy Create free account
hub / github.com/android/ndk-samples / EnablePointLight

Method EnablePointLight

endless-tunnel/app/src/main/cpp/our_shader.cpp:85–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85void OurShader::EnablePointLight(glm::vec3 pos, float r, float g, float b) {
86 MY_ASSERT(mPreparedVertexBuf != NULL);
87 glUniform4f(mPointLightColorLoc, r, g, b, 1.0);
88 glUniform4f(mPointLightPosLoc, pos.x, pos.y, pos.z, 1.0);
89}
90
91void OurShader::DisablePointLight() {
92 MY_ASSERT(mPreparedVertexBuf != NULL);

Callers 1

RenderTunnelMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected