Remove Alpha Remove Shaders Remove Texture
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

Creating a See-Through | X-Ray Effect In Unity – Shader Tutorial

Awesome Tuts

What Is a Shader? Since the main premise of this effect is going to be a shader, we’ll start with explaining what a shader is. A shader is a script where you write code that determines how the colors will be rendered based on various scenarios like lighting and material configuration.

Shaders 90
article thumbnail

Practical Use of Render Textures

The Knights of Unity

And even before an era of SRPs (Scriptable Render Pipelines), there was a good amount of solid features like today’s topic: Render textures. In this post I’m going to explain to you how to use render textures in your game. For shaders, I used Amplify Shader Editor to add some visual effects on top of the render texture.

Texture 52
article thumbnail

Shader Help required (UV distortion with cc_time[0])

Cocos

Hello, so my issue is such, I have made a shader that causes a UV distortion in the fragment shader, to simulate “flame-like” effects at the edges. There are two variants of these shaders, one where the distortion is dependent on cc_time[0] i.e the time elapsed in seconds when a game is running. 1.0 - newUV.x), min(newUV.y,

Shaders 40
article thumbnail

Dev snapshot: Godot 4.0 alpha 4

Mircosoft Game Dev

We're continuing on our fortnightly release schedule for alpha snapshots of Godot 4.0 - this time with 4.0 See past alpha releases for details ( alpha 1 , alpha 2 , alpha 3 ). Be aware that during the alpha stage the engine is still not feature-complete or stable. alpha builds. Known issues.

Alpha 52
article thumbnail

Cocos creator (2.4.13) Effect Material is not centered at the Sprite Node

Cocos

intensity); } }% // In typescript this. . // Effect (Fragment Shader) CCProgram fs %{ precision highp float; #include <alpha-test> #include <texture> #include <cc-global> in vec4 v_color; #if USE_TEXTURE in vec2 v_uv0; uniform sampler2D texture; #endif uniform Constant{ vec2 iResolution; }; void main () { vec2 p = -.5

Sprite 52