dlsl 0.1.5
glsl math library based on gl3n
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
DLSL
A variant of glsl for DLang, based on gl3n but tries to be closer to glsl
Differences to gl3n similar to glsl
- vector aliases follow glsl, e.g. ivec3 instead of vec3i
- vector swizzle operators on left- and right hand side of assignment
- swizzling is limited to four property letters
- swizzle sets {x,y,z,w}, {r,g,b,a} and {s,t,p,q} are distinct and cannot be combined (e.g. v.rx is not possible)
- matrices are row major, besides following glsl its easier to upload a struct of matrices into an UBO
- matrix is an array of vectors, access matrix column vector with index and field/swizzle properties (e.g. mat[2].zx)
Differences to glsl similar to gl3n
- matrix determinants and inversions
- creating and editing matrices with translate, rotate, scale
- creating orthographic and projection matrices (later case one param less than gl3n's)
- quaternions (soon to come)
- Registered by Peter Particle
- 0.1.5 released 3 years ago
- ParticlePeter/DLSL
- MIT
- Copyright (c) 2016 Tomasz Stachowiak, David Herberth, Peter Particle
- Authors:
- Dependencies:
- none
- Versions:
-
0.1.5 2021-Sep-07 0.1.4 2020-Dec-12 0.1.3 2019-Nov-17 0.1.2 2017-Jan-08 0.1.1 2017-Jan-01 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
707 downloads total
-
- Score:
- 1.3
- Short URL:
- dlsl.dub.pm