Skip to content

Kextex/Godot_4_Visual_Shader_Utilities

Repository files navigation

Godot 4 Visual Shader Utilities

Godot Version Used: 4.3 stable

Directory structure:

Directory Description
addons Contains custom visual shader nodes.
environments Contains environment and camera attribute files.
levels Contains generic levels.
materials Contains common materials.
shaders Contains common shaders.
textures Contains common textures.

Contents:


  • Desaturate

    Preview:
    node

    Description:
    Make color into grayscale.

    Parameter:

    • Amount: Amount of desaturation. Default value is 0.0.

  • Deep Parallax

    Preview:
    node
    para

    Description:
    Deep Parallax Mapping, simulating texture displacement based on depth information.

    Parameter:

    • Heightmap Scale: Influence the intensity of texture displacement based on depth information.
    • Min Layers Min layers sets the minimum number of texture layers used in deep parallax mapping, determining the detail level.
    • Max Layers: Max layers sets the maximum number of layers, influencing the mapping's performance and visual quality.
    • Depth Flip: Adjust the view direction in relation to the surface's tangent, binormal, and normal vectors.
    • Flip Heightmap: The 'Flip Heightmap' option can be used to invert the orientation of the heightmap. In a heightmap, brighter grayscale values typically represent higher terrain elevations, while darker grayscale values indicate lower terrain elevations.

  • Flipbook

    Preview:
    YT Tutorial
    node
    para

    Description:
    Create flipbook animation.

    Parameter:

    • Speed: Controls the playback speed. (It has no effect when "Particle Anim" is enabled. The speed and offset for animation control are determined by the "Speed" and "Offset" parameters in the ParticleProcessMaterial's Animation section.)
    • Lerpframe Data: Data used for interpolating frames.
    • InvertX, InvertY: Inverts the X or Y axis of the UV.
    • Limit Frames: Toggle playback range limitation.
    • Max Frame: Specifies the maximum frame when "Limit Frames" is enabled.
    • Anim Loop: Determines whether to loop the animation when reaching the end of frames.
    • Particle Anim: Toggle the shader for particle animation. If the material does not receive data from ParticleProcessMaterial, the animation will appear frozen.
    • Number of Columns: Sets the number of columns based on the sprite.
    • Number of Rows: Sets the number of rows based on the sprite.

    Preview:
    node
    para

    Description:
    Interpolate frames of flipbook animation utilizing flow map.

    Parameter:

    • Lerpframe Data: Receiving lerpframe data from Flipbook output.
    • Albedo: Albedo texture.
    • Flow map: Flow map texture.
    • Albedo: Modify albedo color.
    • Enable Flowmap: Toggle frame interpolation.
    • Flow Strength: The intensity of the flow map's influence.

Demo Scenes:

para para

About

Utilities that assist in creating VFX in Godot Engine 4

Resources

License

Stars

Watchers

Forks