Remove Shaders Remove Sprite Remove Tile
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. Use UV in Shader Both 2D and 3D shaders in Cocos are obtained in the vertex shader (VS) and passed to the pixel shader (FS). x,waveFactor.y-uv0.y); x,waveFactor.y-uv0.y);

Shaders 98
article thumbnail

How to change the offset of a Tiled Sprite

Cocos

If I understand correctly, what you want is to do an offset of the content of the image, which you can achieve using a shader.

Tile 40
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

How to change the offset of a Tiled Sprite

Cocos

How can I animate the offset with a shader? I have no experience with that could you tell me some example?

Tile 40
article thumbnail

D2 log 074 – New level format

Catnip Games

This gives me freedom in level design and saves work making tiles… tileable. The custom terrain shader uses the z-channel to draw water in lower areas of the level. The graphics backend rewrite took a while. However, the situation is now good. Everything is just one big texture. So it’s RGBZ.

Terrain 52
article thumbnail

Weird Texture issue

Cocos

I have a 2d tiled game. But when you look closely, you realize that all tiles now point to the distortioned Monsters spriteframes. It happens on 1 gig+ memory devices Could it be unloaded memory, the texture itself, the shaders, triangles, material or what not? Ok so here is the deal. Here are some information.

Texture 40
article thumbnail

Maintenance release: Godot 3.4.1

Mircosoft Game Dev

Import: Fix texture atlas generation when source sprite is larger than generated atlas ( GH-55094 ). Particles: Fix for double use of seed in random shader variables ( GH-55607 ). Rendering: GLES3: Fix incompatible addition in auto exposure shader ( GH-55983 ). Tiles: Fix TileSet editor workspace breaking ( GH-55059 ).

Tile 52
article thumbnail

Godot Tactics RPG – 01. Intro & Setup

The Liquid Fire

We’re not really doing anything with shaders or post processing in the tutorial, so depending on where you want to take the tutorial later, its really up to you which you choose. The first thing to download will be the sprites and textures from the original tutorial. Download Icon.svg and replace the original file with it.