Skip to content

1.1.0

Compare
Choose a tag to compare
@patriciogonzalezvivo 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 the sample/ 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.
    morphological_erosion
    morphological_dilation
    morphological_alphaFill
  • adding sample functions to fake different filter modes like NEAREST, BICUBIC, SMOOTH (by Inigo Quiles)
    sample_filter_bicubic
    sample_filter_nearest
    sample_filter_smooth
  • he have been adding sample functions to fake different wrap modes like REPEAT, CLAMP2EDGE, MIRROR and UNTILE (also by @iquilezles )
    sample_wrap
    sample_wrap_mirror
    sample_wrap_untile
  • Adding new pbrGlass() and pbrClearCoat() models
    lighting_pbrGlass_cubemap
    lighting_pbrClearCoat_cubemap
  • Adding spheremaps (or matcap) function
    lighting_sphereMap
  • Adding Iridescence functions
    color_iridescence_map
  • 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

Full Changelog: 1.0.0...v1.1.0