PulseGlow shader

An asset by fbcosentino
The page banner background of a mountain and forest
PulseGlow shader hero image

Quick Information

0 ratings
PulseGlow shader icon image
fbcosentino
PulseGlow shader

Pulsating light shader for round objects.This shader is based on the dot product between the face normal and the camera view vector, so it works best on smooth round surfaces with many triangles, ideally spheres.The shader has the following parameters:Albedo: base object color. Albedo's alpha channel works, but avoid using it for transparency. It is implemented to support alhpa in textures. For global transparency, use the Opacity parameter instead.Albedo Texture: texture for albedo. Alpha channel works.Saturation: higher values increase the flat color area in the center, with fast alpha slope on edges. Lower values cause blurred, softer gradients in the edges.Pulse Rate: how many times the light pulses per second.Pulse Intensity: how big the light becomes during pulses, relative to original object size. Pulses are created by moving the vertices along the triangles' normals during rendering. If applied to collideable objects, the collision shapes are unnafected.Opacity: alpha. Use this in animations to make objects fade in or out.May work with GLES2 but not tested.

Supported Engine Version
3.1
Version String
1.0.0
License Version
MIT
Support Level
community
Modified Date
5 years ago
Git URL
Issue URL

PulseGlow shader for Godot Engine

README

Pulsating light shader for Godot 3.0+ (using GLES3). Apply only to meshes with rounded corners!

Author: Fernando Cosentino

Usage:

This shader is based on the dot product between the face normal and the camera view vector, so it works best on smooth round surfaces with many triangles, ideally spheres.

In the example below the two spheres are geometrically identical. The one in the left has a SpatialMaterial with a diffuse white color (blue tone given by default sky). The one in the right has a ShaderMaterial with the PulseGlow shader.

README

Parameters:

The shader has the following parameters:

  • Albedo: base object color. Albedo's alpha channel works, but avoid using it for transparency. It is implemented to support alhpa in textures. For global transparency, use the Opacity parameter instead.

  • Albedo Texture: texture for albedo. Alpha channel works.

  • Saturation: higher values increase the flat color area in the center, with fast alpha slope on edges. Lower values cause blurred, softer gradients in the edges.

  • Pulse Rate: how many times the light pulses per second.

  • Pulse Intensity: how big the light becomes during pulses, relative to original object size. Pulses are created by moving the vertices along the triangles' normals during rendering. If applied to collideable objects, the collision shapes are unnafected.

  • Opacity: alpha. Use this in animations to make objects fade in or out.

May work with GLES2 but not tested.

License

MIT - See the LICENSE file in this repository.

Pulsating light shader for round objects.

This shader is based on the dot product between the face normal and the camera view vector, so it works best on smooth round surfaces with many triangles, ideally spheres.

The shader has the following parameters:

Albedo: base object color. Albedo's alpha channel works, but avoid using it for transparency. It is implemented to support alhpa in textures. For global transparency, use the Opacity parameter instead.

Albedo Texture: texture for albedo. Alpha channel works.

Saturation: higher values increase the flat color area in the center, with fast alpha slope on edges. Lower values cause blurred, softer gradients in the edges.

Pulse Rate: how many times the light pulses per second.

Pulse Intensity: how big the light becomes during pulses, relative to original object size. Pulses are created by moving the vertices along the triangles' normals during rendering. If applied to collideable objects, the collision shapes are unnafected.

Opacity: alpha. Use this in animations to make objects fade in or out.

May work with GLES2 but not tested.

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
PulseGlow shader icon image
fbcosentino
PulseGlow shader

Pulsating light shader for round objects.This shader is based on the dot product between the face normal and the camera view vector, so it works best on smooth round surfaces with many triangles, ideally spheres.The shader has the following parameters:Albedo: base object color. Albedo's alpha channel works, but avoid using it for transparency. It is implemented to support alhpa in textures. For global transparency, use the Opacity parameter instead.Albedo Texture: texture for albedo. Alpha channel works.Saturation: higher values increase the flat color area in the center, with fast alpha slope on edges. Lower values cause blurred, softer gradients in the edges.Pulse Rate: how many times the light pulses per second.Pulse Intensity: how big the light becomes during pulses, relative to original object size. Pulses are created by moving the vertices along the triangles' normals during rendering. If applied to collideable objects, the collision shapes are unnafected.Opacity: alpha. Use this in animations to make objects fade in or out.May work with GLES2 but not tested.

Supported Engine Version
3.1
Version String
1.0.0
License Version
MIT
Support Level
community
Modified Date
5 years 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