Page 1 of 1
I need the syntax for a shader
Posted: Tue May 28, 2013 11:55 am
by gmadmin
Hello all,
New here

Mapped along time ago,picked it up again

Question i have is:
What is the correct syntax to fill a shader?
I have this, doesn't work:
Code: Select all
textures/lokaal
{
qer_keyword concrete
qer_keyword wall
surfaceparm stone
{
map textures/lokaal/blauw.jpg
rgbGen identity
depthWrite
}
{
map textures/lokaal/bord.jpg
rgbGen identity
depthWrite
}
{
map textures/lokaal/wittemuur.jpg
rgbGen identity
depthWrite
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
rgbGen identity
depthFunc equal
}
}
Basicially: how do i put two,or more,images in one pk3 file?
Kind regards,
CJ
Re: I need the syntax for a shader
Posted: Wed May 29, 2013 2:09 pm
by Phobia
Hiya!
This forum is not being used much anymore.. so you'd have a better chance of getting a reply over at modtheater.
Someone could suddenly still reply here though none the less
Do you still have any of your old maps if I may ask?
Kind Regards,
Brian
Re: I need the syntax for a shader
Posted: Thu May 30, 2013 6:42 am
by gmadmin
Good morning,
Thx for the reply. About my old map: i added a few screenshots I made back then. Hope you enjoy

- shot0013.klein.JPG (55.72 KiB) Viewed 700 times
and

- shot0010.klein.JPG (49.28 KiB) Viewed 700 times
Basically: I am a teacher. Me and my students are building our school with MOHradiant. Last day of school we have a LAN party
Gr,
Re: I need the syntax for a shader
Posted: Thu May 30, 2013 10:32 am
by Phobia
Oh that's pretty cool!

Any chance you could upload that one? Or are you still working on that specific one?
Btw, here's a link to modtheater:
http://www.modtheater.com/forums/allied-assault.55/
Kind Regards,
Brian
Re: I need the syntax for a shader
Posted: Fri May 31, 2013 7:21 pm
by BatteryAziz
you have to create a new .shader file for every new texture you add (just copy and paste your code and change the names and target .jpg). you can't call multiple textures under the same shader header.
right now you have "textures/lokaal" as the first line
in your case all you need to do is split them up in
textures/lokaal/blauw
textures/lokaal/bord
textures/lokaal/wittemuur
etc. as the first line
you can put all the shader files in the same pk3 as your map (i put them in the "scripts" dir)
Re: I need the syntax for a shader
Posted: Tue Jun 04, 2013 3:33 am
by neillomax
digital guns in school.................. gonna lose your job?........ as crazy as it sounds, they suspend and humiliate 5 year old's for lego guns and for a pop tart that looks like a gun..........
Re: I need the syntax for a shader
Posted: Tue Jun 04, 2013 8:01 pm
by BatteryAziz
neillomax wrote:digital guns in school.................. gonna lose your job?........ as crazy as it sounds, they suspend and humiliate 5 year old's for lego guns and for a pop tart that looks like a gun..........
i'm pretty sure he's dutch. we're not as uptight about those things as they are in the UK/US.
