Jump to content

Home

textures


acewombat

Recommended Posts

Posted

Is it possible to control the amount of light a texture gives I have no lights in my level yet everything is well lit-but I wanted to darken it down a bit. Can I?

Posted

How exactly do I do access that and then what exactly do I do The only thing I have ever done with shaders is add one for my sky texture-oh and thanx.

Posted

um, hmm

 

im not sure about making new shaders, and i dunno if you wanna edit existing shaders;

 

but there should be a variable named q3map_surfacelight, with a number after it; it controls the amount of light the texture gives off

Posted

if you don't want to make new shaders, here's what i'd do, if you're only changing lighting:

 

first copy the shader folder to your desktop as a backup. open the shaders you used in notepad (the ones from the original shaders folder that's still in the base folder). you can lower the q3map_surfacelight numbers for each of the shaders you're using.

 

then save them. in the editor, go to textures --> flush and reload shaders. then recompile your map. experiment with different values.

 

since you only changed lighting, you won't have to include shader files with your map.

Posted

most screwup proof way to mess with shaders is to make your own shader file.

 

Additionally, extract the textures you want to emit light to a textures directory, and name it something personal so it's easy to identify.

 

Then in your custom shader file, cut and paste a shader entry into your file. Alternatively, just download this shader file and put that in your file. Two roads that get you to the same spot.

 

http://tru7h.org/lighting/files/shaders/xzzy.shader

 

Then modify the file to point to your texture you have reserved in your own texture folder. If you used the file I just linked to, there are 5 lines you have to change.. I'll leave it to you to figure out which ones.

Posted

But see, since all light rendering is predetermined, he wouldn't need to include any new shaders in the PK3, thus his suggestion.

 

Tho making new shaders would be much better. :D

Posted

jk2 won't "light" a texture if it's shader does not exist. All the generated light will appear like you expect but the texture itself won't be lit like you would see if the shader was present.

 

Texture tinting is apparently processed at runtime.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...