alright alright, how do i turn the fog off!

Discuss Supermodel and your favorite Model 3 games. Show off your latest threads, this is the place to see and be seen.
Forum rules
Keep it classy!

  • No ROM requests or links.
  • Do not ask to be a play tester.
  • Do not ask about release dates.
  • No drama!

alright alright, how do i turn the fog off!

Postby SupremeTextures » Thu Sep 29, 2011 9:42 am

I like the mountain stages better in Sega Rally 2 and Scud Race without fog

Any help would be appreciated :D
SupremeTextures
 
Posts: 39
Joined: Thu Sep 29, 2011 8:53 am

Re: alright alright, how do i turn the fog off!

Postby Bart » Thu Sep 29, 2011 9:56 am

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).
User avatar
Bart
Site Admin
 
Posts: 2348
Joined: Thu Sep 01, 2011 2:13 pm
Location: Santa Clara, California

Re: alright alright, how do i turn the fog off!

Postby SupremeTextures » Thu Sep 29, 2011 10:02 am

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).



Thanx
SupremeTextures
 
Posts: 39
Joined: Thu Sep 29, 2011 8:53 am


Return to The Catwalk

Who is online

Users browsing this forum: Google [Bot] and 7 guests