Page 1 of 1
common/adjustable_color texture
Posted: Tue Apr 08, 2003 10:33 am
by Bjarne BZR
Is the common/adjustable_color texture... I don't know... ADJUSTABLE by any chance?
If so: what about it is adjustable and how do I adjust it?
Key K
Posted: Tue Apr 08, 2003 12:04 pm
by tltrude
Highlight the surface and hit key K.
Posted: Tue Apr 08, 2003 1:10 pm
by Bjarne BZR
Nope, its still a stylish pink in the game...

shader
Posted: Tue Apr 08, 2003 1:24 pm
by tltrude
Well, I don't know how it works then, but here is the shader for it.
Code: Select all
textures/common/adjustable_color
{
qer_editorimage textures/common/white.tga
surfaceparm nolightmap
{
map $whiteimage
blendFunc GL_DST_COLOR GL_ZERO
rgbGen fromEntity
}
}
Maybe it has to be a script_object or some other entity targetnamed "whiteimage".
Posted: Tue Apr 08, 2003 1:31 pm
by Bjarne BZR
Yeah, that rgbGen fromEntity shure looks like it is ment to be adjustable... anyone else have an idea?
Posted: Tue Apr 08, 2003 2:36 pm
by jv_map
Ritualistic wrote:
5.12.2 rgbGen entity
Colors are grabbed from the entity’s modulate field. This is used for things like explosions.
I think it means the texture uses the entity lighting grid.
I couldn't find 'fromEntity'
http://www.ritualistic.com/games/fakk2/tooldocs.php3
In shaders a $ is not a targetname operator: $whiteimage is just a white texture. You could also use $lightmap instead.
Posted: Tue Apr 08, 2003 2:50 pm
by Bjarne BZR
There is a rgbGen entity in the fakk2 doc. It says: "Colors are grabbed from the entity?s modulate field. This is used for things like explosions."
Make any sense to anyone?