So I am trying to pass the below value to a float*, it returns a float
enviroment->getDirectionalLight()->getAmbientIntensity()
Here is what I am trying to pass it into.
void addUniform(std::string _id, float* _value);
getShader()->addUniform("directionalLight.base.ambientIntensity",&enviroment->getDirectionalLight()->getAmbientIntensity());
Unfortunately, it gives me this error
error C2102: '&' requires l-value
I dont understand this error, or a way around it?