Chroma Key Shader

An asset by yogendramanawat
The page banner background of a mountain and forest
Chroma Key Shader hero image

Quick Information

0 ratings
Chroma Key Shader icon image
yogendramanawat
Chroma Key Shader

This is a shader that implements a chroma key effect. Chroma keying is a technique used to remove a specific color (usually green or blue) from an image or video, making it transparent and allowing other content to show through.The shader provides RGB Comparison options for the chroma key effect.

Supported Engine Version
4.0
Version String
1.0
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

Chroma Key Shader

This is a shader script for Godot Engine that implements a chroma key effect. Chroma keying is a technique used to remove a specific color (usually green or blue) from an image or video, making it transparent and allowing other content to show through.

The shader provides RGB Comparison options for the chroma key effect. README Chrome_key_shader

Usage

  1. Create a Sprite node or a VideoStreamPlayer on which you want to apply the effect.
  2. Create a new ShaderMaterial from the material properties of the node.
  3. Attach the shader script control.gdshader to the ShaderMaterial.
  4. Adjust the shader's properties to control the chroma key effect:
    • transparent_color: The target color to be replaced with transparency (in RGB format).
    • pickup_range: The distance allowed from the chroma key color in RBG space (0.0 to 1.0).
    • fade_amount: The amount of fading effect applied to the color and nearest pixels (0.0 to 1.0).
  • The RGB Comparison option gives sharper results, but the code is more straightforward and shorter.
  • The HSL Comparison option provides smoother shading but involves a slightly larger code due to the custom HSL conversion function implemented in the shader.

Credits

The original video I used is provided by pexels (https://www.pexels.com/video/a-man-with-a-green-background-9488367/)

The original shader script was inspired by Reddit user's post.

This is a shader that implements a chroma key effect. Chroma keying is a technique used to remove a specific color (usually green or blue) from an image or video, making it transparent and allowing other content to show through.

The shader provides RGB Comparison options for the chroma key effect.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Chroma Key Shader icon image
yogendramanawat
Chroma Key Shader

This is a shader that implements a chroma key effect. Chroma keying is a technique used to remove a specific color (usually green or blue) from an image or video, making it transparent and allowing other content to show through.The shader provides RGB Comparison options for the chroma key effect.

Supported Engine Version
4.0
Version String
1.0
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers