About how PCSX2 stores images in memory
#11
(11-01-2013, 05:33 AM)KrossX Wrote: Move pixels... hmm... nope, but you can sample from another position. For example:

vec2 pos; // current position
vec3 color; // color output

// pass through, no changes.
color = sampler(texture, pos);

So you cannot move pixels, but you can do something like this:

if(pos.x > section4) pos.x += 6.0;
else if(pos.x > section3) pos.x += 4.0;
else if(pos.x > section2) pos.x += 2.0;

// no longer pass through, as it will sample from a different position.
color = sampler(texture, pos);

I think if I'm reading that right, that's what I meant by "move pixels." Read it from one x,y, and write it to another. I will look into this later.
[Image: XTe1j6J.png]
Gaming Rig: Intel i7 6700k @ 4.8Ghz | GTX 1070 TI | 32GB RAM | 960GB(480GB+480GB RAID0) SSD | 2x 1TB HDD
Reply

Sponsored links





Users browsing this thread: 1 Guest(s)