Closed roxlu closed 6 years ago
I guess you intended the nrSamples to be an int https://github.com/JoeyDeVries/LearnOpenGL/blob/master/src/6.pbr/2.1.2.ibl_irradiance/2.1.2.irradiance_convolution.fs#L40 ?
nrSamples
I'm wondering why you would cast it there; and if it would make a difference to use int/float?
It looks like nrSamples indeed used to be an int. I'd probably just stick to a float there so the cast can be removed; no real need for int arithmetic.
I guess you intended the
nrSamples
to be an int https://github.com/JoeyDeVries/LearnOpenGL/blob/master/src/6.pbr/2.1.2.ibl_irradiance/2.1.2.irradiance_convolution.fs#L40 ?I'm wondering why you would cast it there; and if it would make a difference to use int/float?