some shader things


(redfox) #1
textures/old_stone/bush1
{
	qer_editorimage textures/old_stone/bush1.tga
	cull disable
	nomipmaps
	nopicmip
	surfaceparm nomarks
	surfaceparm alphashadow
	surfaceparm nonsolid
	surfaceparm pointlight
	surfaceparm trans
	implicitMask textures/old_stone/bush1.tga
}

so that’s a shader for my alpha bush. the image is a power of 2… and i saved it .tga 32 bit, but

  1. in the radiant it doesn’t color the transparent part black, it goes to white

  2. in game the transparent part of some other alpha textures* stays black…

*i tried to use some foliage textures from 1944_beach to test…

help please


(Wezelkrozum) #2

Did you create the texture with photoshop?

If so, don’t tick the box “Use lower case extension” when you save your file as tga. else there is no alpha channel i think.


(stealth6) #3

are you sure you took the right texture from that map?
maybe check that it has an alpha channel, and check that the alpha channel is correct


(pazur) #4

Yea. I would also check the Alpha channel. Maybe it’s inverted or something.


(Avoc) #5

in the alpha channel:

White = What you want to be solid
Black = what you want to be transparent.