1. basicer
  2. love-less-deps

Commits

vrld  committed 526db80

Fix issue #435: PixelEffects have flipped screen_coords.y.

  • Participants
  • Parent commits 20e4445
  • Branches default

Comments (0)

Files changed (2)

File src/scripts/graphics.lua

View file
  • Ignore whitespace
 		#define Image sampler2D
 		#define extern uniform
 		#define Texel texture2D
+		layout(origin_upper_left) in vec4 gl_FragCoord;
 		uniform sampler2D _tex0_;]]
 		local footer = [[void main() {
 			// fix weird crashing issue in OSX when _tex0_ is unused within effect()

File src/scripts/graphics.lua.h

View file
  • Ignore whitespace
 	0x6e, 0x69, 0x66, 0x6f, 0x72, 0x6d, 0x0a,
 	0x09, 0x09, 0x23, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x20, 0x54, 0x65, 0x78, 0x65, 0x6c, 0x20, 0x74, 0x65, 
 	0x78, 0x74, 0x75, 0x72, 0x65, 0x32, 0x44, 0x0a,
+	0x09, 0x09, 0x6c, 0x61, 0x79, 0x6f, 0x75, 0x74, 0x28, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x5f, 0x75, 0x70, 
+	0x70, 0x65, 0x72, 0x5f, 0x6c, 0x65, 0x66, 0x74, 0x29, 0x20, 0x69, 0x6e, 0x20, 0x76, 0x65, 0x63, 0x34, 0x20, 
+	0x67, 0x6c, 0x5f, 0x46, 0x72, 0x61, 0x67, 0x43, 0x6f, 0x6f, 0x72, 0x64, 0x3b, 0x0a,
 	0x09, 0x09, 0x75, 0x6e, 0x69, 0x66, 0x6f, 0x72, 0x6d, 0x20, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x32, 
 	0x44, 0x20, 0x5f, 0x74, 0x65, 0x78, 0x30, 0x5f, 0x3b, 0x5d, 0x5d, 0x0a,
 	0x09, 0x09, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x20, 0x66, 0x6f, 0x6f, 0x74, 0x65, 0x72, 0x20, 0x3d, 0x20, 0x5b,