Search found 2 matches

by LocoShaman
Thu Jan 02, 2014 10:40 pm
Forum: Support and Development
Topic: A little help with vertex shaders
Replies: 4
Views: 3004

Re: A little help with vertex shaders

Thanks for taking the time to look at it Germanunkol, your suggestion was actually quite helpful. Also like you said normalizing was normalization was key. Dividing the light position by the new length of the vector gave a result that seems to be what I was going for. Now I just need to see if doing...
by LocoShaman
Thu Jan 02, 2014 2:12 am
Forum: Support and Development
Topic: A little help with vertex shaders
Replies: 4
Views: 3004

A little help with vertex shaders

I'm pretty inexperienced with shaders, and especially vertex shaders, but I've been fooling around with them trying to distort geometry (meshes now) based on the position of a light or camera. The meshes aren't distorting the way I expected them to, I've used the same formulas that are in the shader...