Remove Debug Remove Pixel Remove Shaders Remove Texture
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
article thumbnail

[Share] 2D Post-Processing & Lighting Framework

Cocos

You just need the following resources and code: A post-processing shader A material with the shader bound to it A post-processing extension TypeScript file for passing parameters to the material Let’s use an example of creating a screen grayscale effect: 1. You can also drag the material into the module’s material slot in the editor.

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

Cocos Creator 3.8 Post-Process Shader Writing (2/2) Advanced

Cocos

Preface In the last article , Kylin shared how to add your own post-effect Shader in the custom render pipeline in Cocos Creator 3.8. However, based on the BlitScreen solution, we can only write the simplest post-effect Shader. Today Kylin will use Gaussian blur to demonstrate how to write a multi-pass post-effect shader.

Shaders 98
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

It also adds a much-requested minimap to GraphEdit , and thus to the VisualScript and Visual Shader editors. 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 ). CSG: Various bug fixes.

Beta 52
article thumbnail

Godot 3.3 has arrived, with a focus on optimization and reliability

Mircosoft Game Dev

Raise errors when accessing deleted objects in debug. Web editor running the "Ninja Adventure" demo from the eponymous CC0 asset pack by Pixel-Boy and AAA. Raise errors when accessing deleted objects in debug. but going one step too far: in debug builds in 3.2.3, HTML5: Threads, GDNative, AudioWorklet.

article thumbnail

Dev snapshot: Godot 3.4 beta 6

Mircosoft Game Dev

Rendering: Fixes depth sorting of meshes with transparent textures ( GH-50721 ). Shaders: Add support for structs and fragment-to-light varyings ( GH-48075 ). Android: Implement per-pixel transparency ( GH-51935 ). Animation: Fix rendering centered odd-size texture for AnimatedSprite/AnimatedSprite3D ( GH-53052 ).

Beta 52