article thumbnail

Black screen on old devices cocos 2.4.11

Cocos

not file size large, but actual pixel size… if you have anything over 2k, I’d highly recommend making it smaller and testing. ) Also, take a look at the sprite data of the images that are showing up black… are any of them abnormally large?

Pixel 52
article thumbnail

Cocos Shader Tutorial 1.0 - about UV

Cocos

The vertical axes of textures and picture pixels is shown above, when sampling textures in shaders, that is from top to bottom, which is top-right corner. This is consistent with how most image file formats store pixel data, and with how most graphics APIs work (including DirectX, Vulkan, Metal, WebGPU, but not OpenGL).

Shaders 98
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

[Share] 2D Post-Processing & Lighting Framework

Cocos

const vec3 weight = vec3(0.2126, 0.7152, 0.0722); vec3 Grayscale(in vec3 o, float value){ float lumin = dot(o, weight); vec3 final = mix(o, vec3(lumin), value); return final; } vec4 frag() { vec4 pixel = texture(mainTexture, v_uv); pixel.rgb = Grayscale(pixel.rgb, intensity); return pixel; } 2. I tested it with an image.

Render 52
article thumbnail

Dev snapshot: Godot 3.2.4 beta 3

Mircosoft Game Dev

New option to snap 2D transforms to whole coordinates , helps prevent jitter on pixel art camera motions. Core: Disable decayment of freed Objects to null in debug builds ( GH-41866 ). GLES2: Fix glow on devices with only 8 texture slots ( GH-42446 ). GLES2: Use separate texture unit for light_texture ( GH-42538 ).

Beta 52
article thumbnail

Dev snapshot: Godot 3.2.4 beta 2

Mircosoft Game Dev

New option to snapping 2D transforms to whole coordinates , helps prevent jitter on pixel art camera motions (new in 3.2.4 Core: Disable decayment of freed Objects to null in debug builds ( GH-41866 ). GLES2: Fix glow on devices with only 8 texture slots ( GH-42446 ). C#: Official builds now use Mono 6.12.0.111.

Beta 52
article thumbnail

Maintenance release: Godot 3.2.2

Mircosoft Game Dev

Such pointer could be reported as valid even though the memory it points to was not, or worse, that memory could now hold a different object, leading to hard to debug situations. Thanks to the work of Pedro ( RandomShaper ), debug versions of Godot (e.g. Thanks to the work of Pedro ( RandomShaper ), debug versions of Godot (e.g.

Debug 52
article thumbnail

Dev snapshot: Godot 3.2.4 beta 5

Mircosoft Game Dev

New option to snap 2D transforms to whole coordinates , helps prevent jitter on pixel art camera motions. Core: Disable decayment of freed Objects to null in debug builds ( GH-41866 ). GLES2: Fix glow on devices with only 8 texture slots ( GH-42446 ). GLES2: Use separate texture unit for light_texture ( GH-42538 ).

Beta 52