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). to make the color in bottom darker.

Shaders 98
article thumbnail

D2 log 068 – Water shader

Catnip Games

Spent some time tinkering with shaders. It doesn’t tile properly but the seam is hard to notice so I’m fine with it. I also tried distortion for the bottom layer but UV wrapping is a problem because the tiles are in a texture atlas. Putting tiles in an array texture instead of an atlas would give me more options.

Shaders 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

Amy Hennig's new Marvel game leads off Epic's State of Unreal | GDC 2024

GamesIndustry.biz

Hennig was on hand to not only introduce the game, but also show off some new Unreal Engine effects featured in the game, like a Nanite adaptive tessellation feature that allows developers to later tile textures and use shader logic to create complex environment effects like foot prints or tire tracks in real-time with a minimum of geometry.

Tile 117
article thumbnail

Render tilemap cocos 3x

Cocos

How can I draw each tile in this tilemap using shader or material? I’m using Cocos creator version 3.6.0 and tilemap to draw an object.

Render 52
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
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. Everything is just one big texture. Interactive elements will be placed using the in-game editor. So it’s RGBZ.

Terrain 52