Jump to content

Home

Shaders


yangyan

Recommended Posts

Posted

Alright heres the code

 

textures/Mapname/File.Ext

{

qer_editorimage textures/mapname/dirt.tga

surfaceparm noimpact

surfaceparm nosteps

surfaceparm nodraw

q3map_nolightmap

}

 

Now i open it up with ShaderEd. But the image doesn't appear.

Posted

I think this is not a big problem, but tigris gave me an idea: you rfirst line is like this

 

textures/Mapname/File.Ext

 

You don't need to specify extension, just the name. As I said it could be that this is not a problem.

Posted

My example shader:

 

-------------------------------------

 

textures/your_texture_dir/shaders_name

{

qer_editorimage textures/your_texture_dir/texture_in_editor

{

map $lightmap

}

{

map textures/your_texture_dir/texture_in_game

blendFunc GL_DST_COLOR GL_ZERO

}

}

 

-------------------------------------

 

Problem was that you didn't define the texture "map tex..."

 

I hope that was helpful :D

Archived

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

×
×
  • Create New...