1.1.0
patriciogonzalezvivo
released this
28 Nov 10:26
·
1175 commits
to main
since this release
What's Changed
- WARNING! BREAKING CHANGE! most sample functions MACROS inside
filter/
folder use to have only one argument (the texture coordinates). This was inconsistent to sample functions MACROS on thesample/
folder. Ultimately one single argument force the user to remember the internal name for the texture (tex
) while having to two arguments (the texture and the coordinates), makes it more intuitive and consistent. So they went from being SOMETHING_SAMPLE_FNC(UV) to SOMETHING_SAMPLE_FNC(TEX, UV) 1efaad2 - Removing automatic definition of glslViewer variables and choosing a more declarative approach. For example to use the
pbr()
function all this MACROS pointing to the right uniforms need to be satisfy (most have correct defaults, but other defaults can't product correct behaviors.
#define SURFACE_POSITION v_position
#define CAMERA_POSITION u_camera
#define IBL_LUMINANCE u_iblLuminance
#define LIGHT_DIRECTION u_light
#define LIGHT_COLOR u_lightColor
#define LIGHT_FALLOFF u_lightFalloff
#define LIGHT_INTENSITY u_lightIntensity
#define LIGHT_COORD v_lightCoord
- Default SURFACE_POSITION to vec3(0.0) by @gzozulin in #37
- Update pbr.glsl by @gzozulin in #36
- Adding
sample.glsl
used by all sampling functions to support the right version on GLSL
#if __VERSION__ >= 300
#define SAMPLER_FNC(TEX, UV) texture(TEX, UV)
#else
#define SAMPLER_FNC(TEX, UV) texture2D(TEX, UV)
#endif
- Adding morphological folder for erosion, dilation, alphaFill and poissonFill.
- adding sample functions to fake different filter modes like NEAREST, BICUBIC, SMOOTH (by Inigo Quiles)
- he have been adding sample functions to fake different wrap modes like REPEAT, CLAMP2EDGE, MIRROR and UNTILE (also by @iquilezles )
- Adding new
pbrGlass()
andpbrClearCoat()
models
- Adding spheremaps (or matcap) function
- Adding Iridescence functions
- New integrations to TouchDesigner implementation by @LeithBA in #28
- New integrations to React Template by @eduardfossas in #30
- New integrations to TouchDesigner (static) version references by @vectorsize in #33
- Corrected Leith's name and website url by @LeithBA in #35
New Contributors
- @LeithBA made their first contribution in #28
- @eduardfossas made their first contribution in #30
- @vectorsize made their first contribution in #33
- @gzozulin made their first contribution in #36
Full Changelog: 1.0.0...v1.1.0