[Discussion] - List of C2 special variables in GLSL

Share your Construct 2 effect files

Post » Tue Aug 05, 2014 11:16 pm

Is there a list of the specialty variables that Construct 2 makes accessible in GLSL?

e.g. From looking through scripts I found "pixelHeight".

In Construct Classic, I recall the following variables being available:
boxWidth
boxHeight

boxLeft
boxRight
boxTop
boxBottom

pixelWidth
pixelHeight

hotspotX
hotspotY
B
26
S
17
G
8
Posts: 323
Reputation: 6,021

Post » Wed Aug 06, 2014 11:40 am

In C2 there is:

destStart
destEnd

seconds

pixelWidth
pixelHeight

layerScale
layerAngle

viewOrigin

I think that's it.
Scirra Founder
B
387
S
230
G
87
Posts: 24,249
Reputation: 192,240

Post » Thu Aug 07, 2014 11:05 pm

Awesome, thanks. :)

Do you know off hand if "viewOrigin" refers to the layout pixel coordinates of the center of the viewable area, or the top-left corner of the viewable area? (Also, if it's the top-left corner, what would it refer to if you rotated the layout (e.g. by 45 degrees)? Maybe the non-rotated bounding box?)

Just curious.
Thanks again, for taking the time to reply to all my questions, Ashley. :)
B
26
S
17
G
8
Posts: 323
Reputation: 6,021


Return to Effects

Who is online

Users browsing this forum: No registered users and 0 guests