michaldrobot / shaderfastlibs Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Pullrequest masked as an issue :)
This lib can be used from GLSL if adding the following:
The two _PC lines should not have a trailing semicolon.
#define asint(_x) *reinterpret_cast<int*>(&_x);
#define asfloat(_x) *reinterpret_cast<float*>(&_x);
#include <math.h>
Suggest you either fix that or don't say in docs it works from C, either way is cool with me.
Noticed this while listing it here: https://github.com/nothings/stb/blob/master/docs/other_libs.md (didn't actually try compiling it as C, just browsing the code to determine if it actually would work in C or C++ to include that information in the listing)
last compare should be "inX >= 0.0", x1 is always positive. :)
The defines listed below have identical names for the two variants (for [0,1] and [0,1000] respectively)
IEEE_INT_RCP_CONST_NR0_SNORM
IEEE_INT_SQRT_CONST_NR0_SNORM
IEEE_INT_RCP_SQRT_CONST_NR0_SNORM
As these are for users to input, it is straight-forward to just rename them.
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.