Any help would be appreciated

// Apply fog under the control of fog factor setting from polygon header
fragColor.rgb = mix(gl_Fog.color.rgb, fragColor.rgb, fsFogFactor );
// Apply fog under the control of fog factor setting from polygon header
//fragColor.rgb = mix(gl_Fog.color.rgb, fragColor.rgb, fsFogFactor );
Bart wrote:Download the source code, find Src\Graphics\Shaders\Fragment.glsl, copy it to the same directory as Supermodel.exe and rename it to something like NoFog.glsl. Open it with a text editor and near the bottom, comment out the fog calculation. Change:
- Code: Select all
// Apply fog under the control of fog factor setting from polygon header
fragColor.rgb = mix(gl_Fog.color.rgb, fragColor.rgb, fsFogFactor );
To:
- Code: Select all
// Apply fog under the control of fog factor setting from polygon header
//fragColor.rgb = mix(gl_Fog.color.rgb, fragColor.rgb, fsFogFactor );
Then run Supermodel with '-frag-shader=NoFog.glsl'. Voila. Careful, though, fog is also used for a lot of subtle lighting effects (such as the street light glare in the beginner night stage and in the Dolphin tunnel).
Users browsing this forum: No registered users and 1 guest