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. If your previous development experience is based on OpenGL, you may find that the texture on your grid is vertically flipped. to make the color in bottom darker.

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

Godot 4.0 optimization progress report

Mircosoft Game Dev

Numbers are using debug (numbers on release are lower, but when I started optimizing, Godot had problems running on release, so it's difficult to compare). Re-written most shaders to reduce VGPR usage, thus improve occupancy. Optimized texture formats. For many algorithms, used smaller texture formats to reduce bandwidth.

Culling 52
article thumbnail

Release candidate: Godot 3.2.2 RC 2

Mircosoft Game Dev

While this is not a feature per se, it fixes a major annoyance that users have had with pointers to freed objects unexpectedly being re-assigned to new objects, causing hard-to-debug issues. this bug was fixed with a more comprehensive approach which prevents dangling Variant pointers in both release and debug builds. Other changes.

Beta 52
article thumbnail

Dev snapshot: Godot 4.0 beta 12

Mircosoft Game Dev

Export: Fix missing "debug"/"release" export presets feature tags ( GH-71274 ). Rendering: Fix multiple issues that make the normal roughness texture unusable ( GH-71130 ). Visual Shader: Add few improvements for VisualShaderNodeParticleRandomness ( GH-71123 ).

Beta 110
article thumbnail

Dev snapshot: Godot 3.4 beta 4

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 ). Editor: Fix logic for showing tilemap debug collision shapes ( GH-49075 ). Editor: Add custom debug shape thickness and color options to RayCast ( GH-49726 ).

Beta 52
article thumbnail

Release candidate: Godot 3.2.2 RC 3

Mircosoft Game Dev

While this is not a feature per se, it fixes a major annoyance that users have had with pointers to freed objects unexpectedly being re-assigned to new objects, causing hard-to-debug issues. 2D: Add MODULATE builtin to canvas item shaders ( GH-38432 ). C#: Allow debugging exported games ( GH-38115 ). The fix made in the 3.2

Beta 52