Coder Social home page Coder Social logo

modern-opengl's Introduction

modern-opengl

Modern OpenGL 4.5 rendering techniques

Demonstrates several OpenGL concepts using modern API: direct state access (DSA), frame buffer objects (FBO), shader storage buffer objects (SSBO), texture sampler objects (TSO), uniform buffer objects (UBO), geometry instancing, indirect drawing, bindless textures, multidrawelementsindirect, compute shaders, CPU/GPU synchronization with fences, approaching zero driver overhead (AZDO), etc.

The code was meant to be used as a hands-on training material. The teacher directory contains the full implementation, while the student directory has // TODO comments where new code must be inserted to complete each example scene.

Description

  • Scene 0: framebuffer and textures
  • Scene 1: vertex specification, vertex and fragment shaders, drawing commands
  • Scene 2: per-vertex lighting
  • Scene 3: per-fragment lighting
  • Scene 4: 2D texturing
  • Scene 5: individually draw many instances of same geometry
  • Scene 6: geometry instancing to improve performance when drawing many instances of same geometrry
  • Scene 6b: same as scene 6, but using a per-instance vertex attribute
  • Scene 7: individually draw many instances with texture
  • Scene 8: use bindless textures with geometry instances to improve performance
  • Scene 9: individually draw many instances of different geometries
  • Scene 10: multi draw indirect
  • Scene 11: multi draw indirect applied to a 3D CAD model
  • Scene 12: frustum culling on the CPU using explicit synchronization
  • Scene 13: frustum culling on the GPU using compute shaders

modern-opengl's People

Contributors

potato3d avatar

Stargazers

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

Watchers

 avatar

Forkers

chrischiao

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.