Jump to content

Recommended Posts

Posted

In the frag:

 

find :

vec4 outcolor = ex_color;

after add :

outcolor.a=1.0;

 

find:

fragData2 = vec4(texture(texture5,ex_texcoords0).rgb,materialflags/255.0);

replace it with :

fragData2 = vec4(texture(texture5,ex_texcoords0).rgb*ex_color.a,materialflags/255.0);

 

Then in your app use :

self.entity:SetColor(1,1,1,glowamount) 

 

to set glow amount, and now you can make a blinking or fading glow in code.

  • Upvote 1

HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB

Posted

Hello,

 

thank You shadmar for the helpsmile.pngsmile.pngsmile.png

I did find the lines in the shader code.

 

But where do I set the third part, You listed?

 

Then in your app use :

self.entity:SetColor(1,1,1,glowamount)

 

Where do I find or edit this line?

 

C.U. R.E.Z.

Leadwerks Standart Edition RTS Creator

Posted

Hello,

 

I was digging for this line... but still could not find it.

Not in the FPSPlayer.lua nor in other scripts.

Where is this app file located?

Might someone have help for this question?

 

C.U. R.E.Z.

Leadwerks Standart Edition RTS Creator

Posted

You won't find that line anywhere. He's saying that's the line you have to put in your code somewhere to make this shader work. That's how you control the glow amount when you want to use it.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...