diff --git a/docs/classes/circle.html b/docs/classes/circle.html index 9fb10f3..03cd906 100644 --- a/docs/classes/circle.html +++ b/docs/classes/circle.html @@ -3,8 +3,8 @@ - Circle | SDF-2D - v0.3.2 - + Circle | SDF-2D - v0.3.3 + @@ -23,7 +23,7 @@
  • Preparing search index...
  • The search index is not available
  • - SDF-2D - v0.3.2 + SDF-2D - v0.3.3
    @@ -126,7 +126,7 @@
  • Parameters

    @@ -151,7 +151,7 @@
    center: vec2
    @@ -161,7 +161,7 @@
    radius: number
    @@ -179,7 +179,7 @@

    Parameters

    @@ -206,7 +206,7 @@

    Parameters

    @@ -230,7 +230,7 @@

    Parameters

    @@ -259,7 +259,7 @@
    @@ -268,7 +268,7 @@
    empty: Circle = new Circle(vec2.create(), 0)
    @@ -278,7 +278,7 @@
    shaderCombinationSteps: number[] = [0, 1, 2, 3, 8, 16]
    @@ -288,7 +288,7 @@
    uniformCountMacroName: string = "CIRCLE_COUNT"
    @@ -298,7 +298,7 @@
    propertyUniformMapping: object
    @@ -307,7 +307,7 @@
    center: string = "circleCenters"
    @@ -317,7 +317,7 @@
    radius: string = "circleRadii"
    @@ -328,7 +328,7 @@
    sdf: object
    @@ -337,7 +337,7 @@
    distanceFunctionName: string = "circleMinDistance"
    @@ -347,7 +347,7 @@
    shader: string = `uniform vec2 circleCenters[CIRCLE_COUNT];uniform float circleRadii[CIRCLE_COUNT];float circleMinDistance(vec2 target, out float colorIndex) {colorIndex = 2.0;float minDistance = 1000.0;for (int i = 0; i < CIRCLE_COUNT; i++) {float dist = distance(circleCenters[i], target) - circleRadii[i];minDistance = min(minDistance, dist);}return minDistance;}`
    diff --git a/docs/classes/circlelight.html b/docs/classes/circlelight.html index ee644b1..a2aa1eb 100644 --- a/docs/classes/circlelight.html +++ b/docs/classes/circlelight.html @@ -3,8 +3,8 @@ - CircleLight | SDF-2D - v0.3.2 - + CircleLight | SDF-2D - v0.3.3 + @@ -23,7 +23,7 @@
  • Preparing search index...
  • The search index is not available
  • - SDF-2D - v0.3.2 + SDF-2D - v0.3.3
    @@ -130,7 +130,7 @@

    Parameters

    @@ -159,7 +159,7 @@ @@ -170,7 +170,7 @@ @@ -181,7 +181,7 @@ @@ -192,7 +192,7 @@ @@ -211,7 +211,7 @@

    Inherited from LightDrawable.getObjectToSerialize

    Overrides Drawable.getObjectToSerialize

    Parameters

    @@ -239,7 +239,7 @@

    Inherited from Flashlight.minDistance

    Overrides Drawable.minDistance

    Parameters

    @@ -263,7 +263,7 @@

    Parameters

    @@ -293,7 +293,7 @@

    Parameters

    @@ -316,7 +316,7 @@
    @@ -325,7 +325,7 @@
    empty: CircleLight = new CircleLight(vec2.fromValues(0, 0), vec3.fromValues(0, 0, 0), 0)
    @@ -335,7 +335,7 @@
    shaderCombinationSteps: number[] = [0, 1, 2, 4, 8, 16]
    @@ -345,7 +345,7 @@
    uniformCountMacroName: string = "CIRCLE_LIGHT_COUNT"
    @@ -355,7 +355,7 @@
    propertyUniformMapping: object
    @@ -364,7 +364,7 @@
    center: string = "circleLightCenters"
    @@ -374,7 +374,7 @@
    color: string = "circleLightColors"
    @@ -384,7 +384,7 @@
    intensity: string = "circleLightIntensities"
    diff --git a/docs/classes/drawable.html b/docs/classes/drawable.html index 49f0d00..109aec8 100644 --- a/docs/classes/drawable.html +++ b/docs/classes/drawable.html @@ -3,8 +3,8 @@ - Drawable | SDF-2D - v0.3.2 - + Drawable | SDF-2D - v0.3.3 + @@ -23,7 +23,7 @@
  • Preparing search index...
  • The search index is not available
  • - SDF-2D - v0.3.2 + SDF-2D - v0.3.3
    @@ -125,7 +125,7 @@
    descriptor: DrawableDescriptor
    @@ -147,7 +147,7 @@
  • @@ -186,7 +186,7 @@
  • @@ -218,7 +218,7 @@
  • Parameters

    diff --git a/docs/classes/flashlight.html b/docs/classes/flashlight.html index c87af00..dc91b7b 100644 --- a/docs/classes/flashlight.html +++ b/docs/classes/flashlight.html @@ -3,8 +3,8 @@ - Flashlight | SDF-2D - v0.3.2 - + Flashlight | SDF-2D - v0.3.3 + @@ -23,7 +23,7 @@
  • Preparing search index...
  • The search index is not available
  • - SDF-2D - v0.3.2 + SDF-2D - v0.3.3
    @@ -131,7 +131,7 @@

    Parameters

    @@ -163,7 +163,7 @@ @@ -174,7 +174,7 @@ @@ -184,7 +184,7 @@
    direction: vec2
    @@ -195,7 +195,7 @@ @@ -206,7 +206,7 @@ @@ -224,7 +224,7 @@

    Parameters

    @@ -252,7 +252,7 @@

    Inherited from Flashlight.minDistance

    Overrides Drawable.minDistance

    Parameters

    @@ -276,7 +276,7 @@

    Parameters

    @@ -306,7 +306,7 @@

    Parameters

    @@ -329,7 +329,7 @@
    @@ -338,7 +338,7 @@
    empty: Flashlight = new Flashlight(vec2.fromValues(0, 0),vec3.fromValues(0, 0, 0),0,vec2.fromValues(0, 0))
    @@ -348,7 +348,7 @@
    shaderCombinationSteps: number[] = [0, 1, 2, 4]
    @@ -358,7 +358,7 @@
    uniformCountMacroName: string = "FLASHLIGHT_COUNT"
    @@ -368,7 +368,7 @@
    propertyUniformMapping: object
    @@ -377,7 +377,7 @@
    center: string = "flashlightCenters"
    @@ -387,7 +387,7 @@
    color: string = "flashlightColors"
    @@ -397,7 +397,7 @@
    direction: string = "flashlightDirections"
    @@ -407,7 +407,7 @@
    intensity: string = "flashlightIntensities"
    diff --git a/docs/classes/invertedtunnel.html b/docs/classes/invertedtunnel.html index a7e16cf..2938247 100644 --- a/docs/classes/invertedtunnel.html +++ b/docs/classes/invertedtunnel.html @@ -3,8 +3,8 @@ - InvertedTunnel | SDF-2D - v0.3.2 - + InvertedTunnel | SDF-2D - v0.3.3 + @@ -23,7 +23,7 @@
  • Preparing search index...
  • The search index is not available
  • - SDF-2D - v0.3.2 + SDF-2D - v0.3.3
    @@ -128,7 +128,7 @@
  • Parameters

    @@ -159,7 +159,7 @@
    from: vec2
    @@ -169,7 +169,7 @@
    fromRadius: number
    @@ -179,7 +179,7 @@
    to: vec2
    @@ -189,7 +189,7 @@
    toRadius: number
    @@ -207,7 +207,7 @@

    Parameters

    @@ -234,7 +234,7 @@

    Parameters

    @@ -258,7 +258,7 @@

    Parameters

    @@ -287,7 +287,7 @@
    @@ -296,7 +296,7 @@
    empty: InvertedTunnel = new InvertedTunnel(vec2.fromValues(0, 0), vec2.fromValues(0, 0), 0, 0)
    @@ -306,7 +306,7 @@
    shaderCombinationSteps: number[] = [0, 1, 4, 16, 32]
    @@ -316,7 +316,7 @@
    uniformCountMacroName: string = "INVERTED_TUNNEL_COUNT"
    @@ -326,7 +326,7 @@
    propertyUniformMapping: object
    @@ -335,7 +335,7 @@
    from: string = "froms"
    @@ -345,7 +345,7 @@
    fromRadius: string = "fromRadii"
    @@ -355,7 +355,7 @@
    toFromDelta: string = "toFromDeltas"
    @@ -365,7 +365,7 @@
    toRadius: string = "toRadii"
    @@ -376,7 +376,7 @@
    sdf: object
    @@ -385,7 +385,7 @@
    distanceFunctionName: string = "invertedTunnelMinDistance"
    @@ -395,7 +395,7 @@
    isInverted: true = true
    @@ -405,7 +405,7 @@
    shader: string = `uniform vec2 froms[INVERTED_TUNNEL_COUNT];uniform vec2 toFromDeltas[INVERTED_TUNNEL_COUNT];uniform float fromRadii[INVERTED_TUNNEL_COUNT];uniform float toRadii[INVERTED_TUNNEL_COUNT];float invertedTunnelMinDistance(vec2 target, out float colorIndex) {colorIndex = 3.0;float minDistance = 1000.0;for (int i = 0; i < INVERTED_TUNNEL_COUNT; i++) {vec2 targetFromDelta = target - froms[i];float h = clamp(dot(targetFromDelta, toFromDeltas[i])/ dot(toFromDeltas[i], toFromDeltas[i]),0.0, 1.0);float currentDistance = -mix(fromRadii[i], toRadii[i], h) + distance(targetFromDelta, toFromDeltas[i] * h);minDistance = min(minDistance, currentDistance);}return -minDistance;}`
    diff --git a/docs/classes/rotatedrectangle.html b/docs/classes/rotatedrectangle.html index 276190e..a162f60 100644 --- a/docs/classes/rotatedrectangle.html +++ b/docs/classes/rotatedrectangle.html @@ -3,8 +3,8 @@ - RotatedRectangle | SDF-2D - v0.3.2 - + RotatedRectangle | SDF-2D - v0.3.3 + @@ -23,7 +23,7 @@
  • Preparing search index...
  • The search index is not available
  • - SDF-2D - v0.3.2 + SDF-2D - v0.3.3
    @@ -127,7 +127,7 @@
  • Parameters

    @@ -155,7 +155,7 @@
    center: vec2
    @@ -165,7 +165,7 @@
    rotation: number
    @@ -175,7 +175,7 @@
    size: vec2
    @@ -193,7 +193,7 @@

    Parameters

    @@ -220,7 +220,7 @@
    @@ -251,7 +251,7 @@

    Parameters

    @@ -280,7 +280,7 @@
    @@ -289,7 +289,7 @@
    empty: RotatedRectangle = new RotatedRectangle(vec2.create(), vec2.create(), 0)
    @@ -299,7 +299,7 @@
    shaderCombinationSteps: number[] = [0, 1, 2, 3, 8, 16]
    @@ -309,7 +309,7 @@
    uniformCountMacroName: string = "ROTATED_RECTANGLE_COUNT"
    @@ -319,7 +319,7 @@
    propertyUniformMapping: object
    @@ -328,7 +328,7 @@
    bottomCenter: string = "rotatedRectangleBottomCenters"
    @@ -338,7 +338,7 @@
    topCenter: string = "rotatedRectangleTopCenters"
    @@ -348,7 +348,7 @@
    width: string = "rotatedRectangleWidths"
    @@ -359,7 +359,7 @@
    sdf: object
    @@ -368,7 +368,7 @@
    distanceFunctionName: string = "rotatedRectangleMinDistance"
    @@ -378,7 +378,7 @@
    shader: string = `uniform vec2 rotatedRectangleTopCenters[ROTATED_RECTANGLE_COUNT];uniform vec2 rotatedRectangleBottomCenters[ROTATED_RECTANGLE_COUNT];uniform float rotatedRectangleWidths[ROTATED_RECTANGLE_COUNT];float rotatedRectangleMinDistance(vec2 target, out float colorIndex) {colorIndex = 4.0;float minDistance = 1000.0;for (int i = 0; i < ROTATED_RECTANGLE_COUNT; i++) {vec2 top = rotatedRectangleTopCenters[i];vec2 bottom = rotatedRectangleBottomCenters[i];float height = length(bottom - top);vec2 d = (bottom - top) / height;vec2 q = (target - (top + bottom) * 0.5);q = mat2(d.x, -d.y, d.y, d.x) * q;q = abs(q) - vec2(height, rotatedRectangleWidths[i]) * 0.5;float dist = length(max(q, 0.0)) + min(max(q.x, q.y), 0.0);minDistance = min(minDistance, dist);}return minDistance;}`
    diff --git a/docs/classes/tunnel.html b/docs/classes/tunnel.html index ac963fd..c2cbfcc 100644 --- a/docs/classes/tunnel.html +++ b/docs/classes/tunnel.html @@ -3,8 +3,8 @@ - Tunnel | SDF-2D - v0.3.2 - + Tunnel | SDF-2D - v0.3.3 + @@ -23,7 +23,7 @@
  • Preparing search index...
  • The search index is not available
  • - SDF-2D - v0.3.2 + SDF-2D - v0.3.3
    @@ -128,7 +128,7 @@
  • Parameters

    @@ -159,7 +159,7 @@
    from: vec2
    @@ -169,7 +169,7 @@
    fromRadius: number
    @@ -179,7 +179,7 @@
    to: vec2
    @@ -189,7 +189,7 @@
    toRadius: number
    @@ -207,7 +207,7 @@

    Parameters

    @@ -234,7 +234,7 @@

    Parameters

    @@ -258,7 +258,7 @@

    Parameters

    @@ -287,7 +287,7 @@
    @@ -296,7 +296,7 @@
    empty: Tunnel = new Tunnel(vec2.fromValues(-100000, -100000),vec2.fromValues(-100000, -100000),0,0)
    @@ -306,7 +306,7 @@
    shaderCombinationSteps: number[] = [0, 1, 4, 16, 32]
    @@ -316,7 +316,7 @@
    uniformCountMacroName: string = "TUNNEL_COUNT"
    @@ -326,7 +326,7 @@
    propertyUniformMapping: object
    @@ -335,7 +335,7 @@
    from: string = "froms"
    @@ -345,7 +345,7 @@
    fromRadius: string = "fromRadii"
    @@ -355,7 +355,7 @@
    toFromDelta: string = "toFromDeltas"
    @@ -365,7 +365,7 @@
    toRadius: string = "toRadii"
    @@ -376,7 +376,7 @@
    sdf: object
    @@ -385,7 +385,7 @@
    distanceFunctionName: string = "tunnelMinDistance"
    @@ -395,7 +395,7 @@
    shader: string = `uniform vec2 froms[TUNNEL_COUNT];uniform vec2 toFromDeltas[TUNNEL_COUNT];uniform float fromRadii[TUNNEL_COUNT];uniform float toRadii[TUNNEL_COUNT];float tunnelMinDistance(vec2 target, out float colorIndex) {colorIndex = 1.0;float minDistance = 1000.0;for (int i = 0; i < TUNNEL_COUNT; i++) {vec2 targetFromDelta = target - froms[i];float h = clamp(dot(targetFromDelta, toFromDeltas[i])/ dot(toFromDeltas[i], toFromDeltas[i]),0.0, 1.0);float currentDistance = -mix(fromRadii[i], toRadii[i], h) + distance(targetFromDelta, toFromDeltas[i] * h);minDistance = min(minDistance, currentDistance);}return minDistance;}`
    diff --git a/docs/globals.html b/docs/globals.html index 0b35aaf..fac3d1c 100644 --- a/docs/globals.html +++ b/docs/globals.html @@ -3,8 +3,8 @@ - SDF-2D - v0.3.2 - + SDF-2D - v0.3.3 + @@ -23,7 +23,7 @@
  • Preparing search index...
  • The search index is not available
  • - SDF-2D - v0.3.2 + SDF-2D - v0.3.3
    @@ -53,7 +53,7 @@ Globals -

    SDF-2D - v0.3.2

    +

    SDF-2D - v0.3.3

    @@ -116,7 +116,7 @@
  • @@ -171,7 +171,7 @@
    defaultRuntimeSettings: object
    @@ -185,7 +185,7 @@
    ambientLight: vec3 = vec3.fromValues(0.25, 0.15, 0.25)
    @@ -195,7 +195,7 @@
    backgroundColor: vec4 = vec4.fromValues(1, 1, 1, 1)
    @@ -205,7 +205,7 @@
    colorPalette: never[] = []
    @@ -215,7 +215,7 @@
    enableHighDpiRendering: true = true
    @@ -225,7 +225,7 @@
    isWorldInverted: false = false
    @@ -235,7 +235,7 @@
    lightCutoffDistance: number = 400
    @@ -245,7 +245,7 @@
    tileMultiplier: number = 8
    @@ -256,7 +256,7 @@
    defaultStartupSettings: object
    @@ -270,7 +270,7 @@
    ignoreWebGL2: false = false
    @@ -280,7 +280,7 @@
    paletteSize: number = 256
    @@ -290,7 +290,7 @@
    shadowTraceCount: number = 16
    diff --git a/docs/index.html b/docs/index.html index ef2925d..ec63394 100644 --- a/docs/index.html +++ b/docs/index.html @@ -3,8 +3,8 @@ - SDF-2D - v0.3.2 - + SDF-2D - v0.3.3 + @@ -23,7 +23,7 @@
  • Preparing search index...
  • The search index is not available
  • - SDF-2D - v0.3.2 + SDF-2D - v0.3.3
    @@ -53,7 +53,7 @@ Globals -

    SDF-2D - v0.3.2

    +

    SDF-2D - v0.3.3

    diff --git a/docs/interfaces/drawabledescriptor.html b/docs/interfaces/drawabledescriptor.html index 623bcd3..ece43fe 100644 --- a/docs/interfaces/drawabledescriptor.html +++ b/docs/interfaces/drawabledescriptor.html @@ -3,8 +3,8 @@ - DrawableDescriptor | SDF-2D - v0.3.2 - + DrawableDescriptor | SDF-2D - v0.3.3 + @@ -23,7 +23,7 @@
  • Preparing search index...
  • The search index is not available
  • - SDF-2D - v0.3.2 + SDF-2D - v0.3.3
    @@ -107,7 +107,7 @@
    empty: Drawable
    @@ -123,7 +123,7 @@
    propertyUniformMapping: {}
    @@ -147,7 +147,7 @@
    sdf: undefined | { distanceFunctionName: string; isInverted?: undefined | false | true; shader: string }
    @@ -162,7 +162,7 @@
    shaderCombinationSteps: Array<number>
    @@ -179,7 +179,7 @@
    uniformCountMacroName: string
    diff --git a/docs/interfaces/renderer.html b/docs/interfaces/renderer.html index ec3689f..a18d1b7 100644 --- a/docs/interfaces/renderer.html +++ b/docs/interfaces/renderer.html @@ -3,8 +3,8 @@ - Renderer | SDF-2D - v0.3.2 - + Renderer | SDF-2D - v0.3.3 + @@ -23,7 +23,7 @@
  • Preparing search index...
  • The search index is not available
  • - SDF-2D - v0.3.2 + SDF-2D - v0.3.3
    @@ -113,7 +113,7 @@
    canvasSize: vec2
    @@ -128,7 +128,7 @@
    insights: any
    @@ -147,7 +147,7 @@
    viewAreaSize: vec2
    @@ -170,7 +170,7 @@
  • @@ -208,7 +208,7 @@
  • @@ -242,7 +242,7 @@
  • @@ -266,7 +266,7 @@
  • @@ -290,7 +290,7 @@
  • @@ -320,7 +320,7 @@
  • diff --git a/docs/interfaces/runtimesettings.html b/docs/interfaces/runtimesettings.html index 91dfc63..ce70060 100644 --- a/docs/interfaces/runtimesettings.html +++ b/docs/interfaces/runtimesettings.html @@ -3,8 +3,8 @@ - RuntimeSettings | SDF-2D - v0.3.2 - + RuntimeSettings | SDF-2D - v0.3.3 + @@ -23,7 +23,7 @@
  • Preparing search index...
  • The search index is not available
  • - SDF-2D - v0.3.2 + SDF-2D - v0.3.3
    @@ -107,7 +107,7 @@
    ambientLight: vec3
    @@ -122,7 +122,7 @@
    backgroundColor: vec3 | vec4
    @@ -137,7 +137,7 @@
    colorPalette: Array<vec3 | vec4>
    @@ -155,7 +155,7 @@
    enableHighDpiRendering: boolean
    @@ -170,7 +170,7 @@
    isWorldInverted: boolean
    @@ -187,7 +187,7 @@
    lightCutoffDistance: number
    @@ -203,7 +203,7 @@
    tileMultiplier: number
    diff --git a/docs/interfaces/startupsettings.html b/docs/interfaces/startupsettings.html index dcb86d8..2c9bcb8 100644 --- a/docs/interfaces/startupsettings.html +++ b/docs/interfaces/startupsettings.html @@ -3,8 +3,8 @@ - StartupSettings | SDF-2D - v0.3.2 - + StartupSettings | SDF-2D - v0.3.3 + @@ -23,7 +23,7 @@
  • Preparing search index...
  • The search index is not available
  • - SDF-2D - v0.3.2 + SDF-2D - v0.3.3
    @@ -103,7 +103,7 @@
    ignoreWebGL2: boolean
    @@ -120,7 +120,7 @@
    paletteSize: number
    @@ -138,7 +138,7 @@
    shadowTraceCount: number