» PlasticDX9multipass
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.


effect reflection fresnel point-light ambient-light directional-light


This example shows how to apply one-pass-per-light shading to a plastic surface. The shading is done in DX9 ps2 - pixel shaded.
In this example, there are two point sources, one without falloff and one with "real" quadratic falloff, an infinitely-distant source, ambient light, and a fresnel reflection.


22.06.10 [18:13 UTC] by dottore | 1094 downloads

mrboni 14/01/2011 - 14:25

What's up with the blend modes in this shader?

It seems like when you spread it they're always on a weird blend mode, or there's something up with the alpha.

Any ideas?

kalle 14/01/2011 - 17:20

sounds like some ATI/Nvidia incompatibility to me.

mrboni 18/01/2011 - 14:23


I'm using a GTX480.

Dottore, can you shed any light on this?

And thanks for your wicked shader sharing!

levi 16/02/2011 - 15:58

same here on a gtx46o

i see transparency when i spread or when using mesh with subsets.

anonymous user login


~22h ago

joreg: and also tomorrow, July 23rd: vvvv meetup in #berlin 11-berlin-vvvv-meetup-new-space creativecoding #visualprogramming

~6d ago

joreg: In case you missed: We're starting with free bi-weekly introductions to #vvvv next week in #berlin free-vvvv-intro-workshops-this-summer-in-berlin #creativecoding

~7d ago

guest: uno|https://platform.uno/

~14d ago

joreg: @beyon too bad. but from now on we have a fixed schedule: every 4th tuesday in the month! hope this helps to plan evvvveryones visits

~14d ago

beyon: joreg: ah, bad timing, I would be happy to attend but I doesn't look like it will work out

~14d ago

joreg: @beyon any chance you can add 2 days to stay? would be great to have you at the (not yet announced) #vvvv meetup on the 23rd!

~14d ago