Jump to content

Recommended Posts

Posted

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!

Posted

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

  • 2 weeks later...
Posted

Hi, the link on the last page of that forum works, extract the shaders.pak to a folder within the leadwerks SDK folder and then get rid of the shaders.pak file, you can then put your shaders in the shaders folder and assign them to models.

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...