Ian wrote:Not sure this works either. Scud sets an ambient vp value of 0 so that can't work.
I wonder if we are missing something obvious like gamma correction. I know the hw can do it.
Ian wrote:One thing I did notice between lamachineguns and mag truck is the shininess bits are set
In LA machin, 1 bit is set, in mag truck both are set
Don't know if they are simply no-ops or if they actually effect fixed shading at all
Ian wrote:Harry, do you have a save state for this ?
Ian wrote:As far as I can work out, in this scene the correct formula should be
float shade = ((ix & 0xFF) / 255.f) + offset;
instead of
float shade = (((ix + 128) & 0xFF) / 255.f) + offset;
The latter treats the value as signed, and adds 128 to make it unsigned. The latter is already treated as unsigned ..
Either that or there is some offset added here. At least this seems to match what Harry has found. This looks totally broken for LA Machine guns though. The lighting is inverted with this.
Users browsing this forum: No registered users and 1 guest