About Store Forum Documentation Contact



Post Reply 
Animating decals trough shaders.
Author Message
b1s Offline
Member

Post: #1
Animating decals trough shaders.
Not sure how this is done really but I'm not really able to
change the shader on decals at all. Is it possible to alter the decals with my own shader. For instance creating animated blood decals?
I have created a sort of animated blood that is spreading along the plane.. What I would like to do is to have this shader act like a decal or mesh overlay.
(This post was last modified: 10-30-2011 10:32 AM by b1s.)
10-30-2011 10:31 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Animating decals trough shaders.
you can try render mesh using default solid shader
and additional time using custom blend (blood) shader
just like in the custom shader tutorial / 12 - Flow Effect

maybe it would be better do call MeshPart::drawOverlay (instead of blend)
and specify custom shader for RM_OVERLAY
11-02-2011 04:27 PM
Find all posts by this user Quote this message in a reply
b1s Offline
Member

Post: #3
RE: Animating decals trough shaders.
That RM_OVERLAY custom shaders sounds pretty cool but I also use the default overlays.
11-03-2011 11:40 AM
Find all posts by this user Quote this message in a reply
Post Reply