| 83 | } |
| 84 | |
| 85 | void 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 | |
| 91 | void OurShader::DisablePointLight() { |
| 92 | MY_ASSERT(mPreparedVertexBuf != NULL); |