Page 1 of 1

Offset position of shader stage

Posted: Mon Apr 23, 2012 6:53 am
by Eraser
Is it possible to offset the x and y positions of a stage in a shader? I have a texture with an alpha channel and I want to project a rotating texture underneath it. However, the transparent area isn't centered on the texture, so the rotating texture needs to be offset as well so that the center of rotation is centered on the transparent area instead of the whole texture. Is this possible? I've looked through the shader manual and couldn't quickly find any solution for this.

Re: Offset position of shader stage

Posted: Mon Apr 23, 2012 8:27 am
by Theftbot
tcmod_translate