04-04-2022, 07:23 AM
(This post was last modified: 04-04-2022, 08:55 AM by LegendGuard.)
I've a shader issue: the part of the shader of this sword (called "cyber ring") sits on top of the grip.
I'm trying to do this: ( V )
The issue: it's happening that and I'm trying to avoid it ( X ):
Here the shader of this weapon:
Anyone could help me, please?
I'm trying to do this: ( V )
The issue: it's happening that and I'm trying to avoid it ( X ):
Here the shader of this weapon:
Shader code Wrote:// grip
textures/zsaberblade
{
dpreflectcube cubemaps/default/sky
{
map textures/zsaberblade.tga
rgbgen lightingDiffuse
}
}
// edge
textures/zsaberbladeedge
{
surfaceparm trans
{
map textures/zsaberbladeedge.tga
blendfunc GL_SRC_ALPHA GL_ONE
}
}
// edge rays
textures/electric
{
surfaceparm trans
{
map textures/electric.tga
tcMod scale 1 1
tcMod scroll 0 0.4
blendfunc GL_SRC_ALPHA GL_ONE
}
}
// this thing that's on the grip, well, let's call it a "cyber ring"
textures/cyberring
{
surfaceparm trans
{
map textures/cyberring.tga
tcMod scale 1 1
tcMod scroll 0 0.4
blendfunc GL_SRC_ALPHA GL_ONE
}
}
Anyone could help me, please?