You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Joshua Miller edited this page Nov 30, 2022
·
2 revisions
Lua scripts may be executed either with raw pixel coordinates, or normalized texel coordinates.
ProcessPixel
Processes each pixel in the image by providing the raw integer pixel coordinates.
functionprocessTexel(x, y)
returnvec(x/imageWidth, y/imageHeight, 1.0)
end
ProcessTexel
Processes each pixel in the image by providing the normalized floating-point texel coordinates. Note that these texel coordinates include a half-pixel offset pre-applied.
functionprocessTexel(x, y)
returnvec(x, y, 1.0)
end