Item that waves?


(MytMowse) #1

I dunno how to word it, but I made a flag texture to add to my map and I was wondering how I can make it look like it has waves in it. Also is it possible to make it flip in the wind as well?


(Fluffy_gIMp) #2

You’ll need to write a shader to emulate the flapping effect, the line you’ll be wanting is something like:

deformVertexes wave 194 sin 0 3 0 .4

take a look in scripts/models_mapobjects.shader

and search for models/mapobjects/cmarker/cflag_allied

if you copy this shader, rename it and the texture path and stick it in your own shader file then you should have a flapping flag.

-Fluffy_gIMp


(MytMowse) #3

awesome I’ll give it a try :slight_smile:


(MytMowse) #4

it worked :slight_smile:


(Fluffy_gIMp) #5

great! :slight_smile:

-Fluffy_gIMp