Matching effects to sprites

For questions about using Classic.

Post » Sun May 11, 2008 8:55 pm

Hi,

I like how construct is going, but I have a question - how would I match an effects (in and FX file) UV's so they match the box around the sprite. So I want to get the world coords from the corners of the box into the shader.

Mhmhm did I explain that bad?
B
1
G
4
Posts: 4
Reputation: 1,033

Post » Sun May 11, 2008 10:32 pm

I think you want the boxLeft/boxTop/boxRight/boxBottom float parameters, which are detailed here.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Mon May 12, 2008 5:25 pm

[quote="Ashley":137jtkg7]I think you want the boxLeft/boxTop/boxRight/boxBottom float parameters, which are detailed here.[/quote:137jtkg7]

I did try this, i noticed these in the source code. But I was getting strange results.
I'll post a .fx snippet

The idea I had was to generate a procedual replacement of a sprite.
You can easy make things like circles etc.
B
1
G
4
Posts: 4
Reputation: 1,033


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests