prefab shaders -1 reply

Please wait...

dvg94

GF makes me horny

50 XP

8th July 2009

0 Uploads

84 Posts

0 Threads

#1 8 years ago

hi,

I know how difficult it can be to shader if you don't have much experience with it (like me). I like to copy pasta shaders much, so i like to make a thread with the most common and easy shaders just to copypasta:

basic blend shader: textures/md_po/wall1

Spoiler: Show
{ q3map_material SolidMetal { map $lightmap } { map textures/md_po/wall1 blendFunc GL_DST_COLOR GL_ZERO } { map textures/md_po/blend blendFunc GL_SRC_ALPHA GL_ONE alphaGen const 0.15 tcGen environment } }

basic light shader

Spoiler: Show
textures/md_po/con1 { { map $lightmap } { map textures/md_po/con1 blendFunc GL_DST_COLOR GL_ZERO } { map textures/md_po/con1_glow blendFunc GL_ONE GL_ONE glow } }

so plx do comment on with shaders to make the list longer. really would like to see a simple alpha shader (the one to make the black go away in-game)




AshuraDX

WTF ?! BOOOOOOOM !

50 XP

10th May 2009

0 Uploads

1,462 Posts

0 Threads

#2 8 years ago

[COLOR=Red]//this is often used for glow maps ; black will be transparent [/COLOR]

textures/prefabs/transparentblack { { map $lightmap } { map textures/prefabs/transparentblack blendFunc GL_ONE GL_ONE [COLOR=Lime]//to use this as a glow shader replace this line with "[/COLOR]glow[COLOR=Lime]"[/COLOR] } } [COLOR=Red]//easy alpha mapping[/COLOR]

textures/prefabs/alphamapped { { map textures/prefabs/alphamapped blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA rgbGen lightingDiffuse } }

[COLOR=Red]//simple specularity shader [/COLOR]

textures/prefabs/texture { q3map_nolightmap cull disable { map textures/prefabs/texture blendFunc GL_ONE GL_ZERO rgbGen lightingDiffuse } { map textures/prefabs/texture_spec blendFunc GL_SRC_ALPHA GL_ONE detail alphaGen lightingSpecular } }

[COLOR=Red]//simple gloss shader [/COLOR]

textures/prefabs/texture { q3map_nolightmap cull disable { map textures/prefabs/texture blendFunc GL_ONE GL_ZERO rgbGen lightingDiffuse } { map textures/prefabs/gloss blendFunc GL_DST_COLOR GL_SRC_COLOR detail tcGen environment } } [COLOR=Red]//simple smetal/steel shader [/COLOR] textures/prefabs/texture { q3map_nolightmap cull disable { map textures/prefabs/texture blendFunc GL_ONE GL_ZERO rgbGen lightingDiffuse } { map textures/prefabs/texture_spec blendFunc GL_SRC_ALPHA GL_ONE detail alphaGen lightingSpecular } { map textures/prefabs/chrome blendFunc GL_DST_COLOR GL_SRC_COLOR detail tcGen environment } }




Inyri Forge VIP Member

[Insert User Title Here]

55 XP

15th March 2005

0 Uploads

25,940 Posts

0 Threads

#3 8 years ago

Q3A Shader Manual

Learn and enjoy.




Sato

I just changed my sig 0.0

50 XP

17th December 2008

0 Uploads

389 Posts

0 Threads

#4 8 years ago

PFt I could of used that a long time ago, Ty inyri




Inyri Forge VIP Member

[Insert User Title Here]

55 XP

15th March 2005

0 Uploads

25,940 Posts

0 Threads

#5 8 years ago

It's been in the tutorial and tool sticky since I wrote it, back in 2007...




Sato

I just changed my sig 0.0

50 XP

17th December 2008

0 Uploads

389 Posts

0 Threads

#6 8 years ago

:P I might of missed it xD




Pande

Sexeh like teh gizmo

50 XP

9th April 2008

0 Uploads

610 Posts

0 Threads

#7 8 years ago

Ashura I think you missed 'glow' in the first shader :D




AshuraDX

WTF ?! BOOOOOOOM !

50 XP

10th May 2009

0 Uploads

1,462 Posts

0 Threads

#8 8 years ago
Pande;5382251Ashura I think you missed 'glow' in the first shader :D

I said "it's OFTEN used for glow shaders"

not only ;)

I could add that though