Giter Club home page Giter Club logo

ofxshader's Introduction

ofxShader

This class extends from ofShader and helps on the process to write and mantain shaders. Handles for you:

  • Automatic reloading: it's based on ofxAutoReloading from Andreas Muller.

  • Include preprocess: resolve all #include dependencies.

  • Define keywords: easy to add/remove/toggle #define keywords.

  • GLSL version conversion: depending if it's using ES, Rendering pipeline or the legacy OpenGL 2.2 version will add/remove the proper #version defines and/or presicion defines.

  • automatically filled uniforms: following the conventions introduce on The Book of Shaders and followed by glslCanvas, glslEditor and glslViewer the following uniforms are automatically handled for you:

    • uniform float u_time;: shader playback time (in seconds)

    • uniform float u_delta;: delta time between frames (in seconds)

    • uniform vec4 u_date;: year, month, day and seconds

    • uniform vec2 u_resolution;: viewport resolution (in pixels)

    • uniform vec2 u_mouse;: mouse pixel coords

Note: they only get passed if they are present on the code.

ofxShaderFilter

This class set's a ofFbo and a ofxShader instance inside to Sandbox your shader project to do: simulations or postprocessing filters. It automatically generates multiple buffers following the same pattern propose by glslCanvas and glslViewer so all shaders should work on WebGL through glslCanvas, the on line editor (source code here) or nativelly on on your RaspberryPi, Ubuntu Desktops or MacOS through glslViewer. Check the example multiple_buffers example to see how that works.

ofxShaderMaterial

ofxshader's People

Contributors

patriciogonzalezvivo 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

Watchers

 avatar  avatar

ofxshader's Issues

Build failed

Hello,

I generated a new project and when hitting build on an empty project with no changes, I get this weird error:

image

I'm using Visual Studio 2019, Windows 10, and OpenFrameworks 0.11.0

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.