Vertex Shaders

Software: Away3D 4.x

pete shand, Newbie
Posted: 08 August 2012 10:38 AM   Total Posts: 21

Hi All

Has anyone played with custom vertex shaders since away3d 4 gold?
there seems to be lots of examples of fragment shaders, but not much in the way of vertex shaders.

I’m really just wanting to achieve something like a wave effect on a plane.
Any examples would be greatly appreciated!

Cheers

   

Richard Olsson, Administrator
Posted: 08 August 2012 11:38 AM   Total Posts: 1192   [ # 1 ]

There are basically two places in the engine where you can “inject” your own vertex shader generation logic. Those are the animation system and the material system. Either you create a new animator with an animator set, or you create your own (extension of the) default screen pass and a material to go with it.

Look in the classes VertexAnimationSet.getAGALVertexCode() and VertexAnimator, or the DefaultScreenPass.getVertexCode() and DefaultMaterial.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X