Home Technical Talk

A question about GLSL shaders

Hello all!

I'm trying to develop my 3D skills, particularly GLSL, but unfortunately I've gotten a bit stuck as I want to do something that I can't find any online documentation for. I've been a longtime reader of Polycount so I thought I'd sign up and see if I could get any assistance from the community :)

Within my shader program I'm trying to rotate a texture around an arbitrary point (specifically I want to use the centre point as the origin). While I can translate horizontally/vertically or warp my textures I have no idea how to rotate them. Could anyone please help me out? I'd really appreciate it!

(For those who have used the UDK/UE3 material editor, I am basically trying to recreate the 'rotator' node)
Sign In or Register to comment.