| 107 | } |
| 108 | |
| 109 | void CarShader::loadEnvironmentMapTexture(){ |
| 110 | loadSampler2D(envMapTextureLocation, 2); |
| 111 | glActiveTexture(GL_TEXTURE2); |
| 112 | glBindTexture(GL_TEXTURE_2D, envMapTextureID); |
| 113 | } |
| 114 | |
| 115 | void CarShader::loadSpecular(float damper, float reflectivity, float env_reflectivity){ |
| 116 | loadFloat(shineDamperLocation, damper); |