custom shader problem

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
smartaiguy
Brigadier General
Posts: 512
Joined: Tue Jul 08, 2003 2:52 pm

custom shader problem

Post by smartaiguy »

I have a custom shader, when I went to complie, it gave me this error:

MatchToken ( { ) at line 0 in scripts/custom.shader or something like that.

this is my shader

{/textures/myhouse/test.tga
{
qer_keyword rock
qer_keyword wall
surfaceparm sand
{
map /textures/custom/test.tga
depthWrite
rgbGen identity
}
{
map $lightmap
rgbGen identity
blendFunc GL_DST_COLOR GL_ZERO
depthFunc equal
}
}

the textures are in there right, but the textures aren't showing up in MOHradiant, since my map is called custom(it will be changed).
somebody help!
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

Remove the { and the / from the first line

{/textures/myhouse/test.tga

should be

textures/myhouse/test.tga
smartaiguy
Brigadier General
Posts: 512
Joined: Tue Jul 08, 2003 2:52 pm

Post by smartaiguy »

ok
Post Reply