• Stars
    star
    145
  • Rank 254,144 (Top 6 %)
  • Language GDScript
  • License
    MIT License
  • Created about 5 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Godot God Rays Plugin

Donate

Screenshot

This is a plugin made for Godot 3.2. It contains a node to create a real-time volumetric effect for video games. This is a post-processing effect, so the performance hit depends on the size of the screen/viewport.

Installation

First you download it (duh :P). Then to get the plug-in into your Godot game project, just copy the addons/SIsilicon.vfx.godrays folder and paste it into your project's own addons folder. If you don't have such a folder, make one. Then open up your project, go into ProjectSettings -> Plugins tab. The plug-in should appear there. All that's left to do now is to just set its status to Active and you should be good to go. You need to set it to active in this demo project too.

Usage

The GodRays node creates a, you guessed it, god rays post-processing effect. It's made to be used with either a DirectionalLight or an OmniLight, but nothing's stopping you from using it on a SpotLight(It won't take the shape of its cone though). Just create a node as a child of your light and you're all set!

Properties

This node has minimal properties and is easy to customize.

  • Exposure: How bright the god rays are. Setting it to 0 will turn off the effect to save on performance.
  • Attenuation: The "shape" of the god rays. You'll have to play with this a bit to know what it does.
  • Light Size: The visual size of the light source. For DirectionalLights a value of 1 will lead to the light covering half the screen, while OmniLights multiply this by their range and are attenuated with distance.

Project Settings

There'll also be new parameters in the Project Settings under Rendering/Quality.

  • Sample Number: The number of samples used to render the god rays. More samples lead to a more accurate result, but also is more CPU heavy.
  • Dither Amount: The amount of noise to use on the effect. This can help counter aliasing artifacts caused by a low sample count.
  • Use PCF5: Whether to use more depth samples in the effect for filtering. This can make it look smoother. Disclaimer: it doesn't smooth noise from dithering.

Sky Shader

This plugin also works with Lexpartizan's Godot Sky Shader. All you have to do is add the GodRays node as a child of the Sky.tscn node. The clouds in the sky will then affect the god rays.

More Repositories

1

Godot-Volumetrics-Plugin

GDScript
325
star
2

WorldEdit-BE

A Minecraft Bedrock addon port of the famous WorldEdit mod for Minecraft: Java Edition.
TypeScript
276
star
3

Godot-3D-text-plugin

GDScript
86
star
4

Godot-Lens-Flare-Plugin

GDScript
63
star
5

Godot-Planar-Reflection-Plugin

GDScript
62
star
6

Tile-Breaker-Plugin

A plugin for Godot 3.2 that enhances textured materials.
GDScript
41
star
7

SM64-recreated-in-Godot

GDScript
37
star
8

Godot-Ocean-Demo

An ocean demo in Godot 3.0.
GDScript
35
star
9

SPHater-Godot-Demo

Particle based water simulation demo in Godot 3.0
GDScript
24
star
10

GDNative-Helper

A Godot plugin that'll make creating Native scripts easier (WIP)
GDScript
22
star
11

Goddard-ImportExport-Project

A blender addon to allow the editing of the mario goddard head in SM64 decompilation projects.
Python
19
star
12

WorldEdit-BE-Docs

Python
9
star
13

Godot-Anaglyph-Camera

A Godot plugin that adds an anaglyph camera effect to your project.
GDScript
9
star
14

Godot-MatCap-Plugin

A plugin for Godot 3.2 that adds the ability to use matcaps in the engine.
GDScript
8
star
15

Godot-Web-File-Manager

A user script for the web that allows you to view and edit files in the Godot Web Editor
JavaScript
7
star
16

Extended-Shader-Plugin

GDScript
7
star
17

Path-Vector-Field-Godot-Demo

GDScript
6
star
18

Godot-Portals-Plugin

Adds portals (like in the game Portals) to the Godot Game Engine.
GDScript
6
star
19

Godot-ScriptParticles-Plugin

GDScript
5
star
20

Godot-Wild-Jam-29

GDScript
4
star
21

Volume-Renderer

GDScript
3
star
22

tetris-example-Godot

A little example project of the famous 2D game Tetris in Godot 3.0
GDScript
2
star
23

SIsilicon.github.io

HTML
1
star
24

test_page

Ignore this repo.
HTML
1
star
25

CodeCube

GDScript
1
star