Remove Debug Remove Pixel Remove Texture
article thumbnail

Shader Debugging Made Easy with NVIDIA Nsight Graphics

Nvidia

Shaders are specialized programs that run on the GPU that manipulate rays, pixels, vertices, and textures to achieve unique visual effects. Shaders are specialized programs that run on the GPU that manipulate rays, pixels, vertices, and textures to achieve unique visual effects. With shaders, you.

Debug 124
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

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 Creator 3.8 Post-Process Shader Writing (2/2) Advanced

Cocos

Simply put, Gaussian blur takes every pixel on an image and processes it with the following process. To put it bluntly, it’s a simple weighted sum: while sampling the target pixel, sample some of the surrounding pixels and give each pixel a weight (the sum of the weights is 1.0). version : meaningless, can be ignored.

Shaders 98
article thumbnail

GLES2 and GDNative, progress report #7

Mircosoft Game Dev

A DirectionalLight needs their own space, but using single textures for each other light would be pretty wasteful, so what is used as an optimization is a Shadow Atlas. As mentioned before, in order to know which pixels are "in a shadow" and which are lit, the scene has to be rendered from the viewpoint of the light.

Render 52
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

Cocos Creator 3.8.4 has been released, faster, more stable, and easier to use!

Cocos

LINEAR: Directly outputs pixels in LINEAR space, with weaker contrast than DEFAULT, retaining the original color of the image, suitable for situations where 1:1 presentation of art assets’ colors is desired. Enhanced Texture Compression Features Optimized texture compression task scheduling and display of build progress during compression.

Render 52