Alpha channel misc_gamemodels casting wrong shadows?


(Gerbil) #1

I’ve got some misc_gamemodels of trees in a map - they are the classic X trees because they are in the distance, but I have a low sun angle and want them to cast shadows based on the alpha channel of the texture.

The current shader is:

textures/testmap/trees-02
{
surfaceparm alphashadow
surfaceparm trans
cull disable

implicitblend -

}

The misc_gamemodels themselves have the key:

“_cs” “1”

They cast shadows, but only based on the entire polygons of the model, it’s not looking at the shader nor using the alphachannel of the texture of the shader.

Any ideas what I’m doing wrong?


(IndyJones) #2

misc_model gives normal shadow?


(stealth6) #3

why are you using game models for trees?