Giter VIP home page Giter VIP logo

glslcookbook.rs's Introduction

GLSLCookbook.rs

A Rust implementation of the book OpenGL 4 Shading Language Cookbook Third Editoin.

This repo uses glium as backend and is mainly written for learning GLSL.

Currently, except for chapter08 and chapter11, all examples have been tested on Windows and macOS.

How to run

# At project root directory
$ cargo run --example chapter01 # This will list the name of all available example in chapter01

$ cargo run --example chapter01 basic # This will run the example named basic in chapter01

If you find any programs fail to run on your platform or the incorrect image is rendered, welcome to create an issue.

glslcookbook.rs's People

Contributors

unknownue avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

sjinno

glslcookbook.rs's Issues

Strange behavior when calling "insert_debug_marker()" method

display.insert_debug_marker("Start debugging")
.or_else(|_| { eprintln!("Current backend does not support Debug Marker"); Err(()) }).ok();

When running the above code on my windows machine, insert_debug_marker return Err(()) and "Start debugging" does not output to the console. It should means the backend doesn't support this functionality as explain in glium docs, but the debug message can print to console and seem work well.

When running the above code on my mbp running macOS 10.14.5, insert_debug_marker return Ok(()) which means this feature should be supported. But actually there aren't any debug message output to the console.

Adopt to EventLoop 2.0

When this project started on, the version of glium was 0.24. Since version 0.26 has been released, EventLoop 2.0 is also introduced which is a breaking change of its usage.
This repo currently still uses the old EventsLoop.

Chapter08 shadow-map example render incorrect image

The shadow-map is basically implemented.
However some issues still haven't been dealt with:

  • the frustum in the rendering scene look at upper direction(it does not face to the object)
  • we still can't see the shadow.
  • polygon offset is not support, since this is the missing feature in glium.

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.