Code Monkey home page Code Monkey logo

bookofshaders-godot's Introduction

The Book of Shaders - Godot

The Book of Shaders ported to Godot by J.R. Robinson

A learning resource for shader development.

Now featuring a 3D section for additional learning! Use middle mouse button click and drag to swing the camera around the mesh in 3d view.

Godot shading language

Migrate to Godot's Shading Language

paypal

Installation

Option A

Download from releases or at itch

Option B

git clone https://github.com/jayaarrgh/BookOfShaders-Godot.git
cd BookOfShaders-Godot

Open with Godot 3.4

Export the project on your platform and use the executable.

or

Run the Main.tscn. Use the file dialog to switch shaders.

Tips on Use

The hideable text editor swaps the shader code every 200 ms, and saves the file every 3000ms. It does this less often in the 3D section, as saving and swaping shaders in 3d takes a bit longs and causes slight pauses in the renderer.

The 3D section can load 2d canvas shaders with strange results. All 3D shaders should go inside the shader folder.

The reset button returns edited shaders to their default code.

To reset all shaders to the default shader code, delete the shaders folder in the user directory and reopen the application. Copy any of your changes you want to maintain first of course.

Create new folders and new shader code in the user directory.

WARNING: Automatic saving during runtime will overwrite external editor changes. If using an external text editor, this application should be closed first.

User Directory

Windows:
    %APPDATA%\Godot\app_userdata\Project Name

On GNU/Linux: 
    $HOME/.godot/app_userdata/Project Name
    OR
    $HOME/.local/share/godot/app_userdata/Project Name

ChangeLog

v2

  • Added 3d Mode
  • Used Godot 3.4 (from 3.2 in v1)
  • *.shader were renamed *.gdshader

bookofshaders-godot's People

Contributors

jayaarrgh avatar realkotob avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bookofshaders-godot's Issues

Remove 3d preview in web version

Due to this bug in web versions of Godot godotengine/godot#56670

This causes the whole computer to lockup for 30 seconds while 3D shaders are compiled.

As a reference tool this is not so user friendly, I would suggest that the 3D version is only used for downloaded instances of the software.

Recommendation: Add a Hide/Show Code Button

I added a button to your implementation that I could click that allowed me to hide or show the text area so that I could better analyze the entire screen area.

func _on_HideShowCode_pressed():
    get_node("TextEdit").visible = (get_node("TextEdit").visible < true)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.