unknownue / glslcookbook.rs Goto Github PK
View Code? Open in Web Editor NEWA Rust implementation of the book OpenGL 4 Shading Language Cookbook Third Editoin
A Rust implementation of the book OpenGL 4 Shading Language Cookbook Third Editoin
There are some areas seem to be overexposure comparing to C++ implementation.
May be some rendering setting are wrong.
Since glium does not provide interface to set wrap function for texture sampler equivalent to GL_CLAMP_TO_BORDER
, this example renders an incorrect image.
The shadow-map is basically implemented.
However some issues still haven't been dealt with:
glium
.The rendering effect of Chapter05 Normal-Map example is not the same with C++ version.
It seems like the normal map is applied to the incorrect texture coordinate.
The rendered image is not identical to the C++ implementation.
Keep this issue open to track this problem.
Chapter11 introduce the usage of compute shader.
As said in glium/glium#1790, examples can't be implemented right now.
glium does not suppot read format UncompressedFloatFormat::F32F32F32F32
from texture2d.
Related issue: glium/glium#1502.
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
.
We can find some artifacts on texture rendering.
Examples in chapter05 including diff-ibl and render-to-tex share this issue.
The fps rate of this example is extremely slow and it fails to release the power of draw instanced.
GLSLCookbook.rs/src/scenerunner.rs
Lines 60 to 61 in 850e8e9
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.
When running chapter06 blur example, the rendering image looks darker. I found that the uniform array Weight
does not set to the value I transfer from CPU.
After set the Weight
as pre-calculate constants, the example finally renders the correct image.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.