Where are Effects applied in the C2 runtime?

For developers using the Construct 2 Javascript SDK

Post » Fri Apr 10, 2015 7:15 am

Hey all, :)

Does anyone know where in the C2 runtime shader Effects are applied?

In particular I'm trying to find the code which sets up each effect's coordinate space, for an object with a list of applied effects.

That is, inside the GLSL code, the X and Y sample coords are different from layout or canvas coords.
I'm trying to find the code that does the canvas-to-GLSL coord space conversion.

Granted, it might be that the effects are just called on some kind of quad, and the coords are taken from the quad corners, I'm not sure how exactly GLSL coords work in C2.
Basically where ever the GLSL coord space is explicitly or implicitly determined is what I'm trying to find.
Posts: 351
Reputation: 6,758

Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests