Remove Animation Remove Shaders Remove Sprite
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

Mask with sprite stencil and custom material?

Cocos

I’m attempting to make a UI mask with a sprite stencil. I have a shader that I’ve made that essentially takes the sprite and adds a glitchy effect to it… (like a static glitch on a hologram display) It works great with sprites and does exactly what I want it to do.

Sprite 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

Mask with sprite stencil and custom material?

Cocos

I’m attempting to make a UI mask with a sprite stencil. I have a shader that I’ve made that essentially takes the sprite and adds a glitchy effect to it… (like a static glitch on a hologram display) It works great with sprites and does exactly what I want it to do.

Sprite 40
article thumbnail

Sprite Outline Shader in Unity

Febucci

In this “Unity Sprite Outline” tutorial we’ll discover how to create both a “Sprite Innerline” and a “Outer Sprite Outline”. Simply, the Inner Sprite Outline shader is drawn “inside” the sprite, while “Outer” is the opposite. Inner Sprite Outline HLSL. Outer Sprite Outline HLSL. Amplify Shader.

Sprite 52
article thumbnail

Noob question about scripting animation

Cocos

Most of my time working in cocos has been devoted to shader work. Currently, my client engineer has 5 cards being dealt and each card sprite pulls from a random card image on an atlas. I would like to put the image of the card’s back as the default sprite frame. So, I am trying to create a card flip effect.

article thumbnail

Cocos 3.7.3 Using Material setProperty on Spine only take effect for the first time

Cocos

Hi, I am writing a simple shader for spine, and use ts code to animate that shader by setProperty function. The same logic work with sprite, but not Spine. How can I make setProperty work inside a tween? Here is my demo TestShaderSpine.zip (5.3

Shaders 40
article thumbnail

Cocos 3.7.3 Using Material setProperty on Spine only take effect for the first time

Cocos

Hi, I am writing a simple shader for spine, and use ts code to animate that shader by setProperty function. The same logic work with sprite, but not Spine. How can I make setProperty work inside a tween? Here is my demo TestShaderSpine.zip (5.3

Shaders 40