Okay, I'm reading in a data file and the parser only reads in a single float value for specular and diffuse. My instructor says that specular, diffuse, and ambient should sum to one, so the parser doesn't bother to read in a value for ambient.
Fine, but the data file has only ONE value for each? Each one requires an array with 4 float values, I know the first three on ambient is for an RGB color, but could anyone explain what each of the 4 numbers should be? My instructor said that I could easily find all 4 numbers from the single float.
This is really important to my project as some of my objects are getting EXTREME glare causing exaggerated gradients of light and dark. Thank in advance.




