Remove Alpha Remove Render Remove Sprite
article thumbnail

Issue with masking a render Texture

Cocos

Hello all, I have a shader that takes the alpha value of one texture and applies to a sprite frame. I prefer to go this way so that I can have a gradient fade to transparency… the mask component uses the stencil buffer and isn’t set up to use alpha blending and therefore cannot utilize the gradient of alpha values.

Texture 40
article thumbnail

Issue with masking a render Texture

Cocos

Hello all, I have a shader that takes the alpha value of one texture and applies to a sprite frame. I prefer to go this way so that I can have a gradient fade to transparency… the mask component uses the stencil buffer and isn’t set up to use alpha blending and therefore cannot utilize the gradient of alpha values.

Texture 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

[Tutorial]Outer Stroke Effect for 2D Sprites

Cocos

Original: [link] Author: BitByBit Outer Stroke Effect for 2D Sprites Continuing from the previous article Inner Stroke Effect for 2D Sprites Introduction In the last article, we introduced the method of inner stroke and also discussed its pros and cons. aExtend is the expanded Alpha. Here, we take the opposite approach.

Sprite 52
article thumbnail

Shader Problem in IOS

Cocos

I created a game in which I added a shader; it works fine in web mobile and Android, but in iOS it gives an error during rendering. CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/renderer/gfx-metal/MTLCommandBuffer.mm: line 904 17:49:37 [ERROR]: Sampler binding cc_spriteTexture at set 2 binding 12 is not bounded.

Shaders 40
article thumbnail

D2 log 074 – New level format

Catnip Games

I export the rendered terrain from Blender as a RGBA image but with alpha value set to depth. The graphics backend rewrite took a while. However, the situation is now good. This gives me freedom in level design and saves work making tiles… tileable. Interactive elements will be placed using the in-game editor. So it’s RGBZ.

Terrain 52
article thumbnail

Shader on IOS error

Cocos

I created a game in which I added a shader; it works fine in web mobile and Android, but in iOS it gives an error during rendering. CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/renderer/gfx-metal/MTLCommandBuffer.mm: line 902 17:39:35 [ERROR]: Sampler binding at set 2 binding 2 is not bounded. t[i] += 1.0;

Shaders 40
article thumbnail

Dev snapshot: Godot 4.0 beta 11

Mircosoft Game Dev

This beta includes a few big changes which may interest a lot of users: Animated sprites, both 2D and 3D, now support options for more precise timing of individual frames ( GH-65609 ). The illustration picture for this article is from The Mirror , an upcoming all-in-one game and game development platform currently in Closed Alpha.

Beta 100