Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

HLSL Shaders

Name: Anonymous 2007-08-30 11:56 ID:VUkDdlhQ

LOL shaders wtf.

I cant manipulate my texture coords properly.
float2 UV0 : TEXCOORD0;
float2 changedUV = (UV0.x - Scrollu,UV0.y - Scrollv);
Col = tex2D(g_DiffuseSampler, changedUV );                   
fairly strightforward, but not.
So..... basics time. what does TEXCOORD0 pass into 'UV0'

Name: Anonymous 2007-08-30 14:17 ID:rnKkGRm6

Hmm... Maybe


(define UV0 TEXCOORD0)
(define changedUV (list (- (prop UV0 x) Scrollu) (- (prop UV0 y) Scrollv)))
(set! Col (tex2D g_DiffuseSampler changedUV))


?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List