kyma

Deform vertex along normal

Discussion created by kyma on Apr 21, 2011
Latest reply on Apr 21, 2011 by nou

In my vertex shader...

How can I take each position, move it x amount along it's normal and get a new position?

 

float4 position

float3 normal

float amount

 

Outcomes