Jump to content

Shader with shadows on the brush - but it is transparent too.


Recommended Posts

Posted

This might be hard to understand... i dont want to play with those options with the shaders. I just want a shader that is like normal texture but has only 80% opacity. How to achieve this?

Posted

It is possible to get something to be at around 50% opacity, but i've never met an option to adjust the scale of it. I have some ghost/hologram skins which use semi-transparency, but the scale of it seems uncontrollable. 

Posted (edited)

 

RWNzNOV.jpg

 

textures/abc/qwerty
{
    {
        map textures/abc/qwerty
        blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
        depthWrite
        alphaGen const 0.8
    }
}

I did something like that.

@Edit oh I get it. I don't think you can have shadows on transparent texture.

Edited by Grab
Posted

I get the effect that i think look decent enough (some texture work and shaders) but i will not paste here the shader because it is not a answer for this question. 
 

 

 

RWNzNOV.jpg

 

textures/abc/qwerty
{
    {
        map textures/abc/qwerty
        blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
        depthWrite
        alphaGen const 0.8
    }
}

I did something like that.

@Edit oh I get it. I don't think you can have shadows on transparent texture.

 

It is possible to get something to be at around 50% opacity, but i've never met an option to adjust the scale of it. I have some ghost/hologram skins which use semi-transparency, but the scale of it seems uncontrollable. 

 

Thanks for replies!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...