Jump to content

Faux shaded particles


Flexman
 Share

Recommended Posts

I was having a quick play in particles.vert and particles.frag trying to tweak it so it graduate the diffuse intensity from top to bottom of an individual particle. The aim is to fudge some shaded smoke effects.

 

Any ideas to do this in particles.frag? Graduated shade from top to bottom? Sphere shaded particles as simple as this would work well...

 

6600 2.4G / GTX 460 280.26 / 4GB Windows 7

Author: GROME Terrain Modeling for Unity, UDK, Ogre3D from PackT

Tricubic Studios Ltd. ~ Combat Helo

Link to comment
Share on other sites

Hm that's a good idea, .. couldn't you use the 'v' from UVs directly to drive the intensity ? you would mix some gray color multiplied by the v coordinate to the texel lookup ? I used something like this for a post-process vignette effect, isn't that basically what you're looking for? I'll take a look at the shaders later and get back to you ..

Link to comment
Share on other sites

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