{"type": "func", "start": 5369024272, "end": 5369024280, "name": "CCSpriteGrayscale::shaderBody", "pseudocode": "// \n// CCSpriteGrayscale::shaderBody from 0x14004cf10 to 0x14004cf18 (8 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14070bd00\n// > <???> @ 0x1409100e8\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:25:33 +0000\n// \n\nconst char *CCSpriteGrayscale::shaderBody()\n{\n  return \"\\n\"\n         \"    #ifdef GL_ES\\n\"\n         \"    precision mediump float;\\n\"\n         \"    #endif\\n\"\n         \"\\n\"\n         \"    varying vec4 v_fragmentColor;\\n\"\n         \"    varying vec2 v_texCoord;\\n\"\n         \"    uniform sampler2D u_texture;\\n\"\n         \"\\n\"\n         \"    uniform vec3 u_lum;\\n\"\n         \"\\n\"\n         \"    void main(void) {\\n\"\n         \"        vec4 color = texture2D(u_texture, v_texCoord);\\n\"\n         \"        float gray = dot(color.rgb * v_fragmentColor.rgb, u_lum);\\n\"\n         \"        float normalization = (v_fragmentColor.r + v_fragmentColor.g + v_fragmentColor.b) / 3.0;\\n\"\n         \"        gray /= normalization;  // Adjust for tint brightness\\n\"\n         \"        gl_FragColor = vec4(v_fragmentColor.rgb*vec3(gray), color.a * v_fragmentColor.a);\\n\"\n         \"    }\\n\"\n         \"    \";\n}", "assembly": "; \n; CCSpriteGrayscale::shaderBody from 0x14004cf10 to 0x14004cf18 (8 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14070bd00\n; > <???> @ 0x1409100e8\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:25:33 +0000\n; \nlea     rax, aIfdefGlEsPreci_0; \"\\n    #ifdef GL_ES\\n    precision mediu\"... ; +0x0, 0x14004cf10\nretn                                                                   ; +0x7, 0x14004cf17", "xrefs": ["<???> @ 0x14070bd00", "<???> @ 0x1409100e8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}