Jump to content

How to use a custom shader?


Alessandro
 Share

Recommended Posts

Hello,

 

I'm creating a game with cell-shading. So I found a couple of scripts in GLSL in internet to apply a cartoon-style effect.

Since I have a few experience in LE, I simply tried to copy vertex and fragment shader in shaders.pak, then I tried to apply them in the OILDRUM existing model:

 

shader="abstract::toon.vert","abstract::toon.frag"

 

I tried with two different shaders but as soon as I use the barrel, LE crash (in editor).

What is happening? is it possible that both the shaders are buggy?

 

Please give me some hints to follow the right way!

Thank you!

Link to comment
Share on other sites

if you want a decent toon shader look at the old forum regarding this post

 

I found that forum, but the link works no more.

But now I wish to know how I can use shaders in LE. I red that I could put VERT and FRAG ( I tried to put them in the main pack, then I putted them in MESH subfolder), but as soon as I assign those shaders to the mesh OILDRUM, LE editor crash when I put such mesh in the editor self (create an instance).

I don't think both shaders were wrong (buggy) so I cannot understand what's wrong. Can you explain me that?

Thank you

Link to comment
Share on other sites

  • 2 weeks later...

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.

 Share

×
×
  • Create New...