Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Removing blue glow around items?
Acies Offline
Posting Freak

Posts: 1,643
Threads: 60
Joined: Feb 2011
Reputation: 73
#3
RE: Removing blue glow around items?

A full conversion is required. I started snooping around in the graphics folder, but couldn't find anything there. I believe you need to edit the file located here:
Amnesia - The Dark Descent\redist\shaders\game_object_flash_frag.glsl

Opening it in notepad++ brings up this snippet of code:
Spoiler below!


////////////////////////////////////////////////////////
// Object flash - Fragment Shader
//
// Makes a nice flash effect around objects.
////////////////////////////////////////////////////////
#version 120
varying vec3 gvNormal;

uniform sampler2D aDiffuse;
@define sampler_aDiffuse 0

uniform float afColorMul;

void main()
{
float fRimLight = dot(gvNormal, vec3(0.0, 0.0, -1.0));
fRimLight = 1.0 - abs(fRimLight);

gl_FragColor = texture2D(aDiffuse, gl_TexCoord[0].xy) * vec4(0.5, 0.5, 1.0, 0.0) * fRimLight * afColorMul;
}


I am no "coder", but I'm guessing that setting:
gl_FragColor = texture2D(aDiffuse, gl_TexCoord[0].xy) * vec4(0.5, 0.5, 1.0, 0.0) * fRimLight * afColorMul;

"vec4(0.5, 0.5, 1.0, 0.0)" =
"vec4(0.0, 0.0, 0.0, 0.0)"

Would display black/"no color".

Good luck :>


[Image: mZiYnxe.png]


01-03-2012, 03:35 PM
Find


Messages In This Thread
Removing blue glow around items? - by Streetboat - 01-03-2012, 06:19 AM
RE: Removing blue glow around items? - by Apjjm - 01-03-2012, 03:31 PM
RE: Removing blue glow around items? - by Acies - 01-03-2012, 03:35 PM
RE: Removing blue glow around items? - by Statyk - 01-03-2012, 09:09 PM



Users browsing this thread: 1 Guest(s)