diff --git a/docs/ast/source/passes/bloom.js.json b/docs/ast/source/passes/bloom.js.json index ea9455b78..b450c4264 100644 --- a/docs/ast/source/passes/bloom.js.json +++ b/docs/ast/source/passes/bloom.js.json @@ -763,10 +763,10 @@ "trailingComments": [ { "type": "Block", - "value": "*\r\n\t\t * A blur pass.\r\n\t\t *\r\n\t\t * @type {BlurPass}\r\n\t\t * @private\r\n\t\t ", + "value": "*\r\n\t\t * This pass renders to the write buffer.\r\n\t\t ", "range": [ 1174, - 1247 + 1229 ], "loc": { "start": { @@ -774,7 +774,7 @@ "column": 2 }, "end": { - "line": 41, + "line": 38, "column": 5 } } @@ -792,16 +792,163 @@ "object": { "type": "ThisExpression", "range": [ - 1253, - 1257 + 1235, + 1239 ], "loc": { "start": { - "line": 43, + "line": 40, "column": 2 }, "end": { - "line": 43, + "line": 40, + "column": 6 + } + } + }, + "property": { + "type": "Identifier", + "name": "needsSwap", + "range": [ + 1240, + 1249 + ], + "loc": { + "start": { + "line": 40, + "column": 7 + }, + "end": { + "line": 40, + "column": 16 + } + } + }, + "range": [ + 1235, + 1249 + ], + "loc": { + "start": { + "line": 40, + "column": 2 + }, + "end": { + "line": 40, + "column": 16 + } + } + }, + "right": { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 1252, + 1256 + ], + "loc": { + "start": { + "line": 40, + "column": 19 + }, + "end": { + "line": 40, + "column": 23 + } + } + }, + "range": [ + 1235, + 1256 + ], + "loc": { + "start": { + "line": 40, + "column": 2 + }, + "end": { + "line": 40, + "column": 23 + } + } + }, + "range": [ + 1235, + 1257 + ], + "loc": { + "start": { + "line": 40, + "column": 2 + }, + "end": { + "line": 40, + "column": 24 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\r\n\t\t * This pass renders to the write buffer.\r\n\t\t ", + "range": [ + 1174, + 1229 + ], + "loc": { + "start": { + "line": 36, + "column": 2 + }, + "end": { + "line": 38, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\r\n\t\t * A blur pass.\r\n\t\t *\r\n\t\t * @type {BlurPass}\r\n\t\t * @private\r\n\t\t ", + "range": [ + 1263, + 1336 + ], + "loc": { + "start": { + "line": 42, + "column": 2 + }, + "end": { + "line": 47, + "column": 5 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 1342, + 1346 + ], + "loc": { + "start": { + "line": 49, + "column": 2 + }, + "end": { + "line": 49, "column": 6 } } @@ -810,31 +957,31 @@ "type": "Identifier", "name": "blurPass", "range": [ - 1258, - 1266 + 1347, + 1355 ], "loc": { "start": { - "line": 43, + "line": 49, "column": 7 }, "end": { - "line": 43, + "line": 49, "column": 15 } } }, "range": [ - 1253, - 1266 + 1342, + 1355 ], "loc": { "start": { - "line": 43, + "line": 49, "column": 2 }, "end": { - "line": 43, + "line": 49, "column": 15 } } @@ -845,16 +992,16 @@ "type": "Identifier", "name": "BlurPass", "range": [ - 1273, - 1281 + 1362, + 1370 ], "loc": { "start": { - "line": 43, + "line": 49, "column": 22 }, "end": { - "line": 43, + "line": 49, "column": 30 } } @@ -864,62 +1011,62 @@ "type": "Identifier", "name": "options", "range": [ - 1282, - 1289 + 1371, + 1378 ], "loc": { "start": { - "line": 43, + "line": 49, "column": 31 }, "end": { - "line": 43, + "line": 49, "column": 38 } } } ], "range": [ - 1269, - 1290 + 1358, + 1379 ], "loc": { "start": { - "line": 43, + "line": 49, "column": 18 }, "end": { - "line": 43, + "line": 49, "column": 39 } } }, "range": [ - 1253, - 1290 + 1342, + 1379 ], "loc": { "start": { - "line": 43, + "line": 49, "column": 2 }, "end": { - "line": 43, + "line": 49, "column": 39 } } }, "range": [ - 1253, - 1291 + 1342, + 1380 ], "loc": { "start": { - "line": 43, + "line": 49, "column": 2 }, "end": { - "line": 43, + "line": 49, "column": 40 } }, @@ -928,16 +1075,16 @@ "type": "Block", "value": "*\r\n\t\t * A blur pass.\r\n\t\t *\r\n\t\t * @type {BlurPass}\r\n\t\t * @private\r\n\t\t ", "range": [ - 1174, - 1247 + 1263, + 1336 ], "loc": { "start": { - "line": 36, + "line": 42, "column": 2 }, "end": { - "line": 41, + "line": 47, "column": 5 } } @@ -948,16 +1095,16 @@ "type": "Block", "value": "*\r\n\t\t * A render target.\r\n\t\t *\r\n\t\t * @type {WebGLRenderTarget}\r\n\t\t * @private\r\n\t\t ", "range": [ - 1297, - 1383 + 1386, + 1472 ], "loc": { "start": { - "line": 45, + "line": 51, "column": 2 }, "end": { - "line": 50, + "line": 56, "column": 5 } } @@ -975,16 +1122,16 @@ "object": { "type": "ThisExpression", "range": [ - 1389, - 1393 + 1478, + 1482 ], "loc": { "start": { - "line": 52, + "line": 58, "column": 2 }, "end": { - "line": 52, + "line": 58, "column": 6 } } @@ -993,31 +1140,31 @@ "type": "Identifier", "name": "renderTargetX", "range": [ - 1394, - 1407 + 1483, + 1496 ], "loc": { "start": { - "line": 52, + "line": 58, "column": 7 }, "end": { - "line": 52, + "line": 58, "column": 20 } } }, "range": [ - 1389, - 1407 + 1478, + 1496 ], "loc": { "start": { - "line": 52, + "line": 58, "column": 2 }, "end": { - "line": 52, + "line": 58, "column": 20 } } @@ -1036,16 +1183,16 @@ "object": { "type": "ThisExpression", "range": [ - 1410, - 1414 + 1499, + 1503 ], "loc": { "start": { - "line": 52, + "line": 58, "column": 23 }, "end": { - "line": 52, + "line": 58, "column": 27 } } @@ -1054,31 +1201,31 @@ "type": "Identifier", "name": "blurPass", "range": [ - 1415, - 1423 + 1504, + 1512 ], "loc": { "start": { - "line": 52, + "line": 58, "column": 28 }, "end": { - "line": 52, + "line": 58, "column": 36 } } }, "range": [ - 1410, - 1423 + 1499, + 1512 ], "loc": { "start": { - "line": 52, + "line": 58, "column": 23 }, "end": { - "line": 52, + "line": 58, "column": 36 } } @@ -1087,31 +1234,31 @@ "type": "Identifier", "name": "renderTargetX", "range": [ - 1424, - 1437 + 1513, + 1526 ], "loc": { "start": { - "line": 52, + "line": 58, "column": 37 }, "end": { - "line": 52, + "line": 58, "column": 50 } } }, "range": [ - 1410, - 1437 + 1499, + 1526 ], "loc": { "start": { - "line": 52, + "line": 58, "column": 23 }, "end": { - "line": 52, + "line": 58, "column": 50 } } @@ -1120,77 +1267,77 @@ "type": "Identifier", "name": "clone", "range": [ - 1438, - 1443 + 1527, + 1532 ], "loc": { "start": { - "line": 52, + "line": 58, "column": 51 }, "end": { - "line": 52, + "line": 58, "column": 56 } } }, "range": [ - 1410, - 1443 + 1499, + 1532 ], "loc": { "start": { - "line": 52, + "line": 58, "column": 23 }, "end": { - "line": 52, + "line": 58, "column": 56 } } }, "arguments": [], "range": [ - 1410, - 1445 + 1499, + 1534 ], "loc": { "start": { - "line": 52, + "line": 58, "column": 23 }, "end": { - "line": 52, + "line": 58, "column": 58 } } }, "range": [ - 1389, - 1445 + 1478, + 1534 ], "loc": { "start": { - "line": 52, + "line": 58, "column": 2 }, "end": { - "line": 52, + "line": 58, "column": 58 } } }, "range": [ - 1389, - 1446 + 1478, + 1535 ], "loc": { "start": { - "line": 52, + "line": 58, "column": 2 }, "end": { - "line": 52, + "line": 58, "column": 59 } }, @@ -1199,16 +1346,16 @@ "type": "Block", "value": "*\r\n\t\t * A render target.\r\n\t\t *\r\n\t\t * @type {WebGLRenderTarget}\r\n\t\t * @private\r\n\t\t ", "range": [ - 1297, - 1383 + 1386, + 1472 ], "loc": { "start": { - "line": 45, + "line": 51, "column": 2 }, "end": { - "line": 50, + "line": 56, "column": 5 } } @@ -1232,16 +1379,16 @@ "object": { "type": "ThisExpression", "range": [ - 1452, - 1456 + 1541, + 1545 ], "loc": { "start": { - "line": 54, + "line": 60, "column": 2 }, "end": { - "line": 54, + "line": 60, "column": 6 } } @@ -1250,31 +1397,31 @@ "type": "Identifier", "name": "renderTargetX", "range": [ - 1457, - 1470 + 1546, + 1559 ], "loc": { "start": { - "line": 54, + "line": 60, "column": 7 }, "end": { - "line": 54, + "line": 60, "column": 20 } } }, "range": [ - 1452, - 1470 + 1541, + 1559 ], "loc": { "start": { - "line": 54, + "line": 60, "column": 2 }, "end": { - "line": 54, + "line": 60, "column": 20 } } @@ -1283,31 +1430,31 @@ "type": "Identifier", "name": "texture", "range": [ - 1471, - 1478 + 1560, + 1567 ], "loc": { "start": { - "line": 54, + "line": 60, "column": 21 }, "end": { - "line": 54, + "line": 60, "column": 28 } } }, "range": [ - 1452, - 1478 + 1541, + 1567 ], "loc": { "start": { - "line": 54, + "line": 60, "column": 2 }, "end": { - "line": 54, + "line": 60, "column": 28 } } @@ -1316,31 +1463,31 @@ "type": "Identifier", "name": "name", "range": [ - 1479, - 1483 + 1568, + 1572 ], "loc": { "start": { - "line": 54, + "line": 60, "column": 29 }, "end": { - "line": 54, + "line": 60, "column": 33 } } }, "range": [ - 1452, - 1483 + 1541, + 1572 ], "loc": { "start": { - "line": 54, + "line": 60, "column": 2 }, "end": { - "line": 54, + "line": 60, "column": 33 } } @@ -1350,46 +1497,46 @@ "value": "Bloom.TargetX", "raw": "\"Bloom.TargetX\"", "range": [ - 1486, - 1501 + 1575, + 1590 ], "loc": { "start": { - "line": 54, + "line": 60, "column": 36 }, "end": { - "line": 54, + "line": 60, "column": 51 } } }, "range": [ - 1452, - 1501 + 1541, + 1590 ], "loc": { "start": { - "line": 54, + "line": 60, "column": 2 }, "end": { - "line": 54, + "line": 60, "column": 51 } } }, "range": [ - 1452, - 1502 + 1541, + 1591 ], "loc": { "start": { - "line": 54, + "line": 60, "column": 2 }, "end": { - "line": 54, + "line": 60, "column": 52 } }, @@ -1398,16 +1545,16 @@ "type": "Block", "value": "*\r\n\t\t * A second render target.\r\n\t\t *\r\n\t\t * @type {WebGLRenderTarget}\r\n\t\t * @private\r\n\t\t ", "range": [ - 1508, - 1601 + 1597, + 1690 ], "loc": { "start": { - "line": 56, + "line": 62, "column": 2 }, "end": { - "line": 61, + "line": 67, "column": 5 } } @@ -1425,16 +1572,16 @@ "object": { "type": "ThisExpression", "range": [ - 1607, - 1611 + 1696, + 1700 ], "loc": { "start": { - "line": 63, + "line": 69, "column": 2 }, "end": { - "line": 63, + "line": 69, "column": 6 } } @@ -1443,31 +1590,31 @@ "type": "Identifier", "name": "renderTargetY", "range": [ - 1612, - 1625 + 1701, + 1714 ], "loc": { "start": { - "line": 63, + "line": 69, "column": 7 }, "end": { - "line": 63, + "line": 69, "column": 20 } } }, "range": [ - 1607, - 1625 + 1696, + 1714 ], "loc": { "start": { - "line": 63, + "line": 69, "column": 2 }, "end": { - "line": 63, + "line": 69, "column": 20 } } @@ -1486,16 +1633,16 @@ "object": { "type": "ThisExpression", "range": [ - 1628, - 1632 + 1717, + 1721 ], "loc": { "start": { - "line": 63, + "line": 69, "column": 23 }, "end": { - "line": 63, + "line": 69, "column": 27 } } @@ -1504,31 +1651,31 @@ "type": "Identifier", "name": "blurPass", "range": [ - 1633, - 1641 + 1722, + 1730 ], "loc": { "start": { - "line": 63, + "line": 69, "column": 28 }, "end": { - "line": 63, + "line": 69, "column": 36 } } }, "range": [ - 1628, - 1641 + 1717, + 1730 ], "loc": { "start": { - "line": 63, + "line": 69, "column": 23 }, "end": { - "line": 63, + "line": 69, "column": 36 } } @@ -1537,31 +1684,31 @@ "type": "Identifier", "name": "renderTargetY", "range": [ - 1642, - 1655 + 1731, + 1744 ], "loc": { "start": { - "line": 63, + "line": 69, "column": 37 }, "end": { - "line": 63, + "line": 69, "column": 50 } } }, "range": [ - 1628, - 1655 + 1717, + 1744 ], "loc": { "start": { - "line": 63, + "line": 69, "column": 23 }, "end": { - "line": 63, + "line": 69, "column": 50 } } @@ -1570,77 +1717,77 @@ "type": "Identifier", "name": "clone", "range": [ - 1656, - 1661 + 1745, + 1750 ], "loc": { "start": { - "line": 63, + "line": 69, "column": 51 }, "end": { - "line": 63, + "line": 69, "column": 56 } } }, "range": [ - 1628, - 1661 + 1717, + 1750 ], "loc": { "start": { - "line": 63, + "line": 69, "column": 23 }, "end": { - "line": 63, + "line": 69, "column": 56 } } }, "arguments": [], "range": [ - 1628, - 1663 + 1717, + 1752 ], "loc": { "start": { - "line": 63, + "line": 69, "column": 23 }, "end": { - "line": 63, + "line": 69, "column": 58 } } }, "range": [ - 1607, - 1663 + 1696, + 1752 ], "loc": { "start": { - "line": 63, + "line": 69, "column": 2 }, "end": { - "line": 63, + "line": 69, "column": 58 } } }, "range": [ - 1607, - 1664 + 1696, + 1753 ], "loc": { "start": { - "line": 63, + "line": 69, "column": 2 }, "end": { - "line": 63, + "line": 69, "column": 59 } }, @@ -1649,16 +1796,16 @@ "type": "Block", "value": "*\r\n\t\t * A second render target.\r\n\t\t *\r\n\t\t * @type {WebGLRenderTarget}\r\n\t\t * @private\r\n\t\t ", "range": [ - 1508, - 1601 + 1597, + 1690 ], "loc": { "start": { - "line": 56, + "line": 62, "column": 2 }, "end": { - "line": 61, + "line": 67, "column": 5 } } @@ -1682,16 +1829,16 @@ "object": { "type": "ThisExpression", "range": [ - 1670, - 1674 + 1759, + 1763 ], "loc": { "start": { - "line": 65, + "line": 71, "column": 2 }, "end": { - "line": 65, + "line": 71, "column": 6 } } @@ -1700,31 +1847,31 @@ "type": "Identifier", "name": "renderTargetY", "range": [ - 1675, - 1688 + 1764, + 1777 ], "loc": { "start": { - "line": 65, + "line": 71, "column": 7 }, "end": { - "line": 65, + "line": 71, "column": 20 } } }, "range": [ - 1670, - 1688 + 1759, + 1777 ], "loc": { "start": { - "line": 65, + "line": 71, "column": 2 }, "end": { - "line": 65, + "line": 71, "column": 20 } } @@ -1733,31 +1880,31 @@ "type": "Identifier", "name": "texture", "range": [ - 1689, - 1696 + 1778, + 1785 ], "loc": { "start": { - "line": 65, + "line": 71, "column": 21 }, "end": { - "line": 65, + "line": 71, "column": 28 } } }, "range": [ - 1670, - 1696 + 1759, + 1785 ], "loc": { "start": { - "line": 65, + "line": 71, "column": 2 }, "end": { - "line": 65, + "line": 71, "column": 28 } } @@ -1766,31 +1913,31 @@ "type": "Identifier", "name": "name", "range": [ - 1697, - 1701 + 1786, + 1790 ], "loc": { "start": { - "line": 65, + "line": 71, "column": 29 }, "end": { - "line": 65, + "line": 71, "column": 33 } } }, "range": [ - 1670, - 1701 + 1759, + 1790 ], "loc": { "start": { - "line": 65, + "line": 71, "column": 2 }, "end": { - "line": 65, + "line": 71, "column": 33 } } @@ -1800,46 +1947,46 @@ "value": "Bloom.TargetY", "raw": "\"Bloom.TargetY\"", "range": [ - 1704, - 1719 + 1793, + 1808 ], "loc": { "start": { - "line": 65, + "line": 71, "column": 36 }, "end": { - "line": 65, + "line": 71, "column": 51 } } }, "range": [ - 1670, - 1719 + 1759, + 1808 ], "loc": { "start": { - "line": 65, + "line": 71, "column": 2 }, "end": { - "line": 65, + "line": 71, "column": 51 } } }, "range": [ - 1670, - 1720 + 1759, + 1809 ], "loc": { "start": { - "line": 65, + "line": 71, "column": 2 }, "end": { - "line": 65, + "line": 71, "column": 52 } }, @@ -1848,16 +1995,16 @@ "type": "Block", "value": "*\r\n\t\t * A combine shader material.\r\n\t\t *\r\n\t\t * @type {CombineMaterial}\r\n\t\t * @private\r\n\t\t ", "range": [ - 1726, - 1820 + 1815, + 1909 ], "loc": { "start": { - "line": 67, + "line": 73, "column": 2 }, "end": { - "line": 72, + "line": 78, "column": 5 } } @@ -1875,16 +2022,16 @@ "object": { "type": "ThisExpression", "range": [ - 1826, - 1830 + 1915, + 1919 ], "loc": { "start": { - "line": 74, + "line": 80, "column": 2 }, "end": { - "line": 74, + "line": 80, "column": 6 } } @@ -1893,31 +2040,31 @@ "type": "Identifier", "name": "combineMaterial", "range": [ - 1831, - 1846 + 1920, + 1935 ], "loc": { "start": { - "line": 74, + "line": 80, "column": 7 }, "end": { - "line": 74, + "line": 80, "column": 22 } } }, "range": [ - 1826, - 1846 + 1915, + 1935 ], "loc": { "start": { - "line": 74, + "line": 80, "column": 2 }, "end": { - "line": 74, + "line": 80, "column": 22 } } @@ -1928,16 +2075,16 @@ "type": "Identifier", "name": "CombineMaterial", "range": [ - 1853, - 1868 + 1942, + 1957 ], "loc": { "start": { - "line": 74, + "line": 80, "column": 29 }, "end": { - "line": 74, + "line": 80, "column": 44 } } @@ -1955,16 +2102,16 @@ "type": "Identifier", "name": "options", "range": [ - 1870, - 1877 + 1959, + 1966 ], "loc": { "start": { - "line": 74, + "line": 80, "column": 46 }, "end": { - "line": 74, + "line": 80, "column": 53 } } @@ -1973,31 +2120,31 @@ "type": "Identifier", "name": "screenMode", "range": [ - 1878, - 1888 + 1967, + 1977 ], "loc": { "start": { - "line": 74, + "line": 80, "column": 54 }, "end": { - "line": 74, + "line": 80, "column": 64 } } }, "range": [ - 1870, - 1888 + 1959, + 1977 ], "loc": { "start": { - "line": 74, + "line": 80, "column": 46 }, "end": { - "line": 74, + "line": 80, "column": 64 } } @@ -2006,31 +2153,31 @@ "type": "Identifier", "name": "undefined", "range": [ - 1893, - 1902 + 1982, + 1991 ], "loc": { "start": { - "line": 74, + "line": 80, "column": 69 }, "end": { - "line": 74, + "line": 80, "column": 78 } } }, "range": [ - 1870, - 1902 + 1959, + 1991 ], "loc": { "start": { - "line": 74, + "line": 80, "column": 46 }, "end": { - "line": 74, + "line": 80, "column": 78 } } @@ -2042,16 +2189,16 @@ "type": "Identifier", "name": "options", "range": [ - 1906, - 1913 + 1995, + 2002 ], "loc": { "start": { - "line": 74, + "line": 80, "column": 82 }, "end": { - "line": 74, + "line": 80, "column": 89 } } @@ -2060,31 +2207,31 @@ "type": "Identifier", "name": "screenMode", "range": [ - 1914, - 1924 + 2003, + 2013 ], "loc": { "start": { - "line": 74, + "line": 80, "column": 90 }, "end": { - "line": 74, + "line": 80, "column": 100 } } }, "range": [ - 1906, - 1924 + 1995, + 2013 ], "loc": { "start": { - "line": 74, + "line": 80, "column": 82 }, "end": { - "line": 74, + "line": 80, "column": 100 } } @@ -2094,77 +2241,77 @@ "value": true, "raw": "true", "range": [ - 1927, - 1931 + 2016, + 2020 ], "loc": { "start": { - "line": 74, + "line": 80, "column": 103 }, "end": { - "line": 74, + "line": 80, "column": 107 } } }, "range": [ - 1869, - 1931 + 1958, + 2020 ], "loc": { "start": { - "line": 74, + "line": 80, "column": 45 }, "end": { - "line": 74, + "line": 80, "column": 107 } } } ], "range": [ - 1849, - 1932 + 1938, + 2021 ], "loc": { "start": { - "line": 74, + "line": 80, "column": 25 }, "end": { - "line": 74, + "line": 80, "column": 108 } } }, "range": [ - 1826, - 1932 + 1915, + 2021 ], "loc": { "start": { - "line": 74, + "line": 80, "column": 2 }, "end": { - "line": 74, + "line": 80, "column": 108 } } }, "range": [ - 1826, - 1933 + 1915, + 2022 ], "loc": { "start": { - "line": 74, + "line": 80, "column": 2 }, "end": { - "line": 74, + "line": 80, "column": 109 } }, @@ -2173,16 +2320,16 @@ "type": "Block", "value": "*\r\n\t\t * A combine shader material.\r\n\t\t *\r\n\t\t * @type {CombineMaterial}\r\n\t\t * @private\r\n\t\t ", "range": [ - 1726, - 1820 + 1815, + 1909 ], "loc": { "start": { - "line": 67, + "line": 73, "column": 2 }, "end": { - "line": 72, + "line": 78, "column": 5 } } @@ -2200,16 +2347,16 @@ "object": { "type": "ThisExpression", "range": [ - 1939, - 1943 + 2028, + 2032 ], "loc": { "start": { - "line": 76, + "line": 82, "column": 2 }, "end": { - "line": 76, + "line": 82, "column": 6 } } @@ -2218,31 +2365,31 @@ "type": "Identifier", "name": "intensity", "range": [ - 1944, - 1953 + 2033, + 2042 ], "loc": { "start": { - "line": 76, + "line": 82, "column": 7 }, "end": { - "line": 76, + "line": 82, "column": 16 } } }, "range": [ - 1939, - 1953 + 2028, + 2042 ], "loc": { "start": { - "line": 76, + "line": 82, "column": 2 }, "end": { - "line": 76, + "line": 82, "column": 16 } } @@ -2254,16 +2401,16 @@ "type": "Identifier", "name": "options", "range": [ - 1956, - 1963 + 2045, + 2052 ], "loc": { "start": { - "line": 76, + "line": 82, "column": 19 }, "end": { - "line": 76, + "line": 82, "column": 26 } } @@ -2272,61 +2419,61 @@ "type": "Identifier", "name": "intensity", "range": [ - 1964, - 1973 + 2053, + 2062 ], "loc": { "start": { - "line": 76, + "line": 82, "column": 27 }, "end": { - "line": 76, + "line": 82, "column": 36 } } }, "range": [ - 1956, - 1973 + 2045, + 2062 ], "loc": { "start": { - "line": 76, + "line": 82, "column": 19 }, "end": { - "line": 76, + "line": 82, "column": 36 } } }, "range": [ - 1939, - 1973 + 2028, + 2062 ], "loc": { "start": { - "line": 76, + "line": 82, "column": 2 }, "end": { - "line": 76, + "line": 82, "column": 36 } } }, "range": [ - 1939, - 1974 + 2028, + 2063 ], "loc": { "start": { - "line": 76, + "line": 82, "column": 2 }, "end": { - "line": 76, + "line": 82, "column": 37 } }, @@ -2335,16 +2482,16 @@ "type": "Block", "value": "*\r\n\t\t * A luminosity shader material.\r\n\t\t *\r\n\t\t * @type {LuminosityMaterial}\r\n\t\t * @private\r\n\t\t ", "range": [ - 1980, - 2080 + 2069, + 2169 ], "loc": { "start": { - "line": 78, + "line": 84, "column": 2 }, "end": { - "line": 83, + "line": 89, "column": 5 } } @@ -2362,16 +2509,16 @@ "object": { "type": "ThisExpression", "range": [ - 2086, - 2090 + 2175, + 2179 ], "loc": { "start": { - "line": 85, + "line": 91, "column": 2 }, "end": { - "line": 85, + "line": 91, "column": 6 } } @@ -2380,31 +2527,31 @@ "type": "Identifier", "name": "luminosityMaterial", "range": [ - 2091, - 2109 + 2180, + 2198 ], "loc": { "start": { - "line": 85, + "line": 91, "column": 7 }, "end": { - "line": 85, + "line": 91, "column": 25 } } }, "range": [ - 2086, - 2109 + 2175, + 2198 ], "loc": { "start": { - "line": 85, + "line": 91, "column": 2 }, "end": { - "line": 85, + "line": 91, "column": 25 } } @@ -2415,16 +2562,16 @@ "type": "Identifier", "name": "LuminosityMaterial", "range": [ - 2116, - 2134 + 2205, + 2223 ], "loc": { "start": { - "line": 85, + "line": 91, "column": 32 }, "end": { - "line": 85, + "line": 91, "column": 50 } } @@ -2435,62 +2582,62 @@ "value": true, "raw": "true", "range": [ - 2135, - 2139 + 2224, + 2228 ], "loc": { "start": { - "line": 85, + "line": 91, "column": 51 }, "end": { - "line": 85, + "line": 91, "column": 55 } } } ], "range": [ - 2112, - 2140 + 2201, + 2229 ], "loc": { "start": { - "line": 85, + "line": 91, "column": 28 }, "end": { - "line": 85, + "line": 91, "column": 56 } } }, "range": [ - 2086, - 2140 + 2175, + 2229 ], "loc": { "start": { - "line": 85, + "line": 91, "column": 2 }, "end": { - "line": 85, + "line": 91, "column": 56 } } }, "range": [ - 2086, - 2141 + 2175, + 2230 ], "loc": { "start": { - "line": 85, + "line": 91, "column": 2 }, "end": { - "line": 85, + "line": 91, "column": 57 } }, @@ -2499,16 +2646,16 @@ "type": "Block", "value": "*\r\n\t\t * A luminosity shader material.\r\n\t\t *\r\n\t\t * @type {LuminosityMaterial}\r\n\t\t * @private\r\n\t\t ", "range": [ - 1980, - 2080 + 2069, + 2169 ], "loc": { "start": { - "line": 78, + "line": 84, "column": 2 }, "end": { - "line": 83, + "line": 89, "column": 5 } } @@ -2526,16 +2673,16 @@ "object": { "type": "ThisExpression", "range": [ - 2147, - 2151 + 2236, + 2240 ], "loc": { "start": { - "line": 87, + "line": 93, "column": 2 }, "end": { - "line": 87, + "line": 93, "column": 6 } } @@ -2544,31 +2691,31 @@ "type": "Identifier", "name": "distinction", "range": [ - 2152, - 2163 + 2241, + 2252 ], "loc": { "start": { - "line": 87, + "line": 93, "column": 7 }, "end": { - "line": 87, + "line": 93, "column": 18 } } }, "range": [ - 2147, - 2163 + 2236, + 2252 ], "loc": { "start": { - "line": 87, + "line": 93, "column": 2 }, "end": { - "line": 87, + "line": 93, "column": 18 } } @@ -2580,16 +2727,16 @@ "type": "Identifier", "name": "options", "range": [ - 2166, - 2173 + 2255, + 2262 ], "loc": { "start": { - "line": 87, + "line": 93, "column": 21 }, "end": { - "line": 87, + "line": 93, "column": 28 } } @@ -2598,61 +2745,61 @@ "type": "Identifier", "name": "distinction", "range": [ - 2174, - 2185 + 2263, + 2274 ], "loc": { "start": { - "line": 87, + "line": 93, "column": 29 }, "end": { - "line": 87, + "line": 93, "column": 40 } } }, "range": [ - 2166, - 2185 + 2255, + 2274 ], "loc": { "start": { - "line": 87, + "line": 93, "column": 21 }, "end": { - "line": 87, + "line": 93, "column": 40 } } }, "range": [ - 2147, - 2185 + 2236, + 2274 ], "loc": { "start": { - "line": 87, + "line": 93, "column": 2 }, "end": { - "line": 87, + "line": 93, "column": 40 } } }, "range": [ - 2147, - 2186 + 2236, + 2275 ], "loc": { "start": { - "line": 87, + "line": 93, "column": 2 }, "end": { - "line": 87, + "line": 93, "column": 41 } } @@ -2660,7 +2807,7 @@ ], "range": [ 1078, - 2192 + 2281 ], "loc": { "start": { @@ -2668,7 +2815,7 @@ "column": 27 }, "end": { - "line": 89, + "line": 95, "column": 2 } } @@ -2677,7 +2824,7 @@ "expression": false, "range": [ 1063, - 2192 + 2281 ], "loc": { "start": { @@ -2685,7 +2832,7 @@ "column": 12 }, "end": { - "line": 89, + "line": 95, "column": 2 } } @@ -2694,7 +2841,7 @@ "computed": false, "range": [ 1052, - 2192 + 2281 ], "loc": { "start": { @@ -2702,7 +2849,7 @@ "column": 1 }, "end": { - "line": 89, + "line": 95, "column": 2 } }, @@ -2731,16 +2878,16 @@ "type": "Block", "value": "*\r\n\t * The resolution scale.\r\n\t *\r\n\t * @type {Number}\r\n\t * @default 0.5\r\n\t ", "range": [ - 2197, - 2276 + 2286, + 2365 ], "loc": { "start": { - "line": 91, + "line": 97, "column": 1 }, "end": { - "line": 96, + "line": 102, "column": 4 } } @@ -2754,16 +2901,16 @@ "type": "Identifier", "name": "resolutionScale", "range": [ - 2285, - 2300 + 2374, + 2389 ], "loc": { "start": { - "line": 98, + "line": 104, "column": 5 }, "end": { - "line": 98, + "line": 104, "column": 20 } } @@ -2786,16 +2933,16 @@ "object": { "type": "ThisExpression", "range": [ - 2312, - 2316 + 2401, + 2405 ], "loc": { "start": { - "line": 98, + "line": 104, "column": 32 }, "end": { - "line": 98, + "line": 104, "column": 36 } } @@ -2804,31 +2951,31 @@ "type": "Identifier", "name": "blurPass", "range": [ - 2317, - 2325 + 2406, + 2414 ], "loc": { "start": { - "line": 98, + "line": 104, "column": 37 }, "end": { - "line": 98, + "line": 104, "column": 45 } } }, "range": [ - 2312, - 2325 + 2401, + 2414 ], "loc": { "start": { - "line": 98, + "line": 104, "column": 32 }, "end": { - "line": 98, + "line": 104, "column": 45 } } @@ -2837,62 +2984,62 @@ "type": "Identifier", "name": "resolutionScale", "range": [ - 2326, - 2341 + 2415, + 2430 ], "loc": { "start": { - "line": 98, + "line": 104, "column": 46 }, "end": { - "line": 98, + "line": 104, "column": 61 } } }, "range": [ - 2312, - 2341 + 2401, + 2430 ], "loc": { "start": { - "line": 98, + "line": 104, "column": 32 }, "end": { - "line": 98, + "line": 104, "column": 61 } } }, "range": [ - 2305, - 2342 + 2394, + 2431 ], "loc": { "start": { - "line": 98, + "line": 104, "column": 25 }, "end": { - "line": 98, + "line": 104, "column": 62 } } } ], "range": [ - 2303, - 2344 + 2392, + 2433 ], "loc": { "start": { - "line": 98, + "line": 104, "column": 23 }, "end": { - "line": 98, + "line": 104, "column": 64 } } @@ -2900,16 +3047,16 @@ "generator": false, "expression": false, "range": [ - 2300, - 2344 + 2389, + 2433 ], "loc": { "start": { - "line": 98, + "line": 104, "column": 20 }, "end": { - "line": 98, + "line": 104, "column": 64 } } @@ -2917,16 +3064,16 @@ "kind": "get", "computed": false, "range": [ - 2281, - 2344 + 2370, + 2433 ], "loc": { "start": { - "line": 98, + "line": 104, "column": 1 }, "end": { - "line": 98, + "line": 104, "column": 64 } }, @@ -2935,16 +3082,16 @@ "type": "Block", "value": "*\r\n\t * The resolution scale.\r\n\t *\r\n\t * @type {Number}\r\n\t * @default 0.5\r\n\t ", "range": [ - 2197, - 2276 + 2286, + 2365 ], "loc": { "start": { - "line": 91, + "line": 97, "column": 1 }, "end": { - "line": 96, + "line": 102, "column": 4 } } @@ -2955,16 +3102,16 @@ "type": "Block", "value": "*\r\n\t * You need to call {@link EffectComposer#setSize} after changing this value.\r\n\t *\r\n\t * @type {Number}\r\n\t ", "range": [ - 2349, - 2463 + 2438, + 2552 ], "loc": { "start": { - "line": 100, + "line": 106, "column": 1 }, "end": { - "line": 104, + "line": 110, "column": 4 } } @@ -2978,16 +3125,16 @@ "type": "Identifier", "name": "resolutionScale", "range": [ - 2472, - 2487 + 2561, + 2576 ], "loc": { "start": { - "line": 106, + "line": 112, "column": 5 }, "end": { - "line": 106, + "line": 112, "column": 20 } } @@ -3000,16 +3147,16 @@ "type": "Identifier", "name": "x", "range": [ - 2488, - 2489 + 2577, + 2578 ], "loc": { "start": { - "line": 106, + "line": 112, "column": 21 }, "end": { - "line": 106, + "line": 112, "column": 22 } } @@ -3032,16 +3179,16 @@ "object": { "type": "ThisExpression", "range": [ - 2498, - 2502 + 2587, + 2591 ], "loc": { "start": { - "line": 108, + "line": 114, "column": 2 }, "end": { - "line": 108, + "line": 114, "column": 6 } } @@ -3050,31 +3197,31 @@ "type": "Identifier", "name": "blurPass", "range": [ - 2503, - 2511 + 2592, + 2600 ], "loc": { "start": { - "line": 108, + "line": 114, "column": 7 }, "end": { - "line": 108, + "line": 114, "column": 15 } } }, "range": [ - 2498, - 2511 + 2587, + 2600 ], "loc": { "start": { - "line": 108, + "line": 114, "column": 2 }, "end": { - "line": 108, + "line": 114, "column": 15 } } @@ -3083,31 +3230,31 @@ "type": "Identifier", "name": "resolutionScale", "range": [ - 2512, - 2527 + 2601, + 2616 ], "loc": { "start": { - "line": 108, + "line": 114, "column": 16 }, "end": { - "line": 108, + "line": 114, "column": 31 } } }, "range": [ - 2498, - 2527 + 2587, + 2616 ], "loc": { "start": { - "line": 108, + "line": 114, "column": 2 }, "end": { - "line": 108, + "line": 114, "column": 31 } } @@ -3116,62 +3263,62 @@ "type": "Identifier", "name": "x", "range": [ - 2530, - 2531 + 2619, + 2620 ], "loc": { "start": { - "line": 108, + "line": 114, "column": 34 }, "end": { - "line": 108, + "line": 114, "column": 35 } } }, "range": [ - 2498, - 2531 + 2587, + 2620 ], "loc": { "start": { - "line": 108, + "line": 114, "column": 2 }, "end": { - "line": 108, + "line": 114, "column": 35 } } }, "range": [ - 2498, - 2532 + 2587, + 2621 ], "loc": { "start": { - "line": 108, + "line": 114, "column": 2 }, "end": { - "line": 108, + "line": 114, "column": 36 } } } ], "range": [ - 2491, - 2538 + 2580, + 2627 ], "loc": { "start": { - "line": 106, + "line": 112, "column": 24 }, "end": { - "line": 110, + "line": 116, "column": 2 } } @@ -3179,16 +3326,16 @@ "generator": false, "expression": false, "range": [ - 2487, - 2538 + 2576, + 2627 ], "loc": { "start": { - "line": 106, + "line": 112, "column": 20 }, "end": { - "line": 110, + "line": 116, "column": 2 } } @@ -3196,16 +3343,16 @@ "kind": "set", "computed": false, "range": [ - 2468, - 2538 + 2557, + 2627 ], "loc": { "start": { - "line": 106, + "line": 112, "column": 1 }, "end": { - "line": 110, + "line": 116, "column": 2 } }, @@ -3214,16 +3361,16 @@ "type": "Block", "value": "*\r\n\t * You need to call {@link EffectComposer#setSize} after changing this value.\r\n\t *\r\n\t * @type {Number}\r\n\t ", "range": [ - 2349, - 2463 + 2438, + 2552 ], "loc": { "start": { - "line": 100, + "line": 106, "column": 1 }, "end": { - "line": 104, + "line": 110, "column": 4 } } @@ -3234,16 +3381,16 @@ "type": "Block", "value": "*\r\n\t * The blur kernel size.\r\n\t *\r\n\t * @type {KernelSize}\r\n\t * @default KernelSize.LARGE\r\n\t ", "range": [ - 2543, - 2639 + 2632, + 2728 ], "loc": { "start": { - "line": 112, + "line": 118, "column": 1 }, "end": { - "line": 117, + "line": 123, "column": 4 } } @@ -3257,16 +3404,16 @@ "type": "Identifier", "name": "kernelSize", "range": [ - 2648, - 2658 + 2737, + 2747 ], "loc": { "start": { - "line": 119, + "line": 125, "column": 5 }, "end": { - "line": 119, + "line": 125, "column": 15 } } @@ -3289,16 +3436,16 @@ "object": { "type": "ThisExpression", "range": [ - 2670, - 2674 + 2759, + 2763 ], "loc": { "start": { - "line": 119, + "line": 125, "column": 27 }, "end": { - "line": 119, + "line": 125, "column": 31 } } @@ -3307,31 +3454,31 @@ "type": "Identifier", "name": "blurPass", "range": [ - 2675, - 2683 + 2764, + 2772 ], "loc": { "start": { - "line": 119, + "line": 125, "column": 32 }, "end": { - "line": 119, + "line": 125, "column": 40 } } }, "range": [ - 2670, - 2683 + 2759, + 2772 ], "loc": { "start": { - "line": 119, + "line": 125, "column": 27 }, "end": { - "line": 119, + "line": 125, "column": 40 } } @@ -3340,62 +3487,62 @@ "type": "Identifier", "name": "kernelSize", "range": [ - 2684, - 2694 + 2773, + 2783 ], "loc": { "start": { - "line": 119, + "line": 125, "column": 41 }, "end": { - "line": 119, + "line": 125, "column": 51 } } }, "range": [ - 2670, - 2694 + 2759, + 2783 ], "loc": { "start": { - "line": 119, + "line": 125, "column": 27 }, "end": { - "line": 119, + "line": 125, "column": 51 } } }, "range": [ - 2663, - 2695 + 2752, + 2784 ], "loc": { "start": { - "line": 119, + "line": 125, "column": 20 }, "end": { - "line": 119, + "line": 125, "column": 52 } } } ], "range": [ - 2661, - 2697 + 2750, + 2786 ], "loc": { "start": { - "line": 119, + "line": 125, "column": 18 }, "end": { - "line": 119, + "line": 125, "column": 54 } } @@ -3403,16 +3550,16 @@ "generator": false, "expression": false, "range": [ - 2658, - 2697 + 2747, + 2786 ], "loc": { "start": { - "line": 119, + "line": 125, "column": 15 }, "end": { - "line": 119, + "line": 125, "column": 54 } } @@ -3420,16 +3567,16 @@ "kind": "get", "computed": false, "range": [ - 2644, - 2697 + 2733, + 2786 ], "loc": { "start": { - "line": 119, + "line": 125, "column": 1 }, "end": { - "line": 119, + "line": 125, "column": 54 } }, @@ -3438,16 +3585,16 @@ "type": "Block", "value": "*\r\n\t * The blur kernel size.\r\n\t *\r\n\t * @type {KernelSize}\r\n\t * @default KernelSize.LARGE\r\n\t ", "range": [ - 2543, - 2639 + 2632, + 2728 ], "loc": { "start": { - "line": 112, + "line": 118, "column": 1 }, "end": { - "line": 117, + "line": 123, "column": 4 } } @@ -3458,16 +3605,16 @@ "type": "Block", "value": "*\r\n\t * @type {KernelSize}\r\n\t ", "range": [ - 2702, - 2735 + 2791, + 2824 ], "loc": { "start": { - "line": 121, + "line": 127, "column": 1 }, "end": { - "line": 123, + "line": 129, "column": 4 } } @@ -3481,16 +3628,16 @@ "type": "Identifier", "name": "kernelSize", "range": [ - 2744, - 2754 + 2833, + 2843 ], "loc": { "start": { - "line": 125, + "line": 131, "column": 5 }, "end": { - "line": 125, + "line": 131, "column": 15 } } @@ -3503,16 +3650,16 @@ "type": "Identifier", "name": "x", "range": [ - 2755, - 2756 + 2844, + 2845 ], "loc": { "start": { - "line": 125, + "line": 131, "column": 16 }, "end": { - "line": 125, + "line": 131, "column": 17 } } @@ -3535,16 +3682,16 @@ "object": { "type": "ThisExpression", "range": [ - 2765, - 2769 + 2854, + 2858 ], "loc": { "start": { - "line": 127, + "line": 133, "column": 2 }, "end": { - "line": 127, + "line": 133, "column": 6 } } @@ -3553,31 +3700,31 @@ "type": "Identifier", "name": "blurPass", "range": [ - 2770, - 2778 + 2859, + 2867 ], "loc": { "start": { - "line": 127, + "line": 133, "column": 7 }, "end": { - "line": 127, + "line": 133, "column": 15 } } }, "range": [ - 2765, - 2778 + 2854, + 2867 ], "loc": { "start": { - "line": 127, + "line": 133, "column": 2 }, "end": { - "line": 127, + "line": 133, "column": 15 } } @@ -3586,31 +3733,31 @@ "type": "Identifier", "name": "kernelSize", "range": [ - 2779, - 2789 + 2868, + 2878 ], "loc": { "start": { - "line": 127, + "line": 133, "column": 16 }, "end": { - "line": 127, + "line": 133, "column": 26 } } }, "range": [ - 2765, - 2789 + 2854, + 2878 ], "loc": { "start": { - "line": 127, + "line": 133, "column": 2 }, "end": { - "line": 127, + "line": 133, "column": 26 } } @@ -3619,62 +3766,62 @@ "type": "Identifier", "name": "x", "range": [ - 2792, - 2793 + 2881, + 2882 ], "loc": { "start": { - "line": 127, + "line": 133, "column": 29 }, "end": { - "line": 127, + "line": 133, "column": 30 } } }, "range": [ - 2765, - 2793 + 2854, + 2882 ], "loc": { "start": { - "line": 127, + "line": 133, "column": 2 }, "end": { - "line": 127, + "line": 133, "column": 30 } } }, "range": [ - 2765, - 2794 + 2854, + 2883 ], "loc": { "start": { - "line": 127, + "line": 133, "column": 2 }, "end": { - "line": 127, + "line": 133, "column": 31 } } } ], "range": [ - 2758, - 2800 + 2847, + 2889 ], "loc": { "start": { - "line": 125, + "line": 131, "column": 19 }, "end": { - "line": 129, + "line": 135, "column": 2 } } @@ -3682,16 +3829,16 @@ "generator": false, "expression": false, "range": [ - 2754, - 2800 + 2843, + 2889 ], "loc": { "start": { - "line": 125, + "line": 131, "column": 15 }, "end": { - "line": 129, + "line": 135, "column": 2 } } @@ -3699,16 +3846,16 @@ "kind": "set", "computed": false, "range": [ - 2740, - 2800 + 2829, + 2889 ], "loc": { "start": { - "line": 125, + "line": 131, "column": 1 }, "end": { - "line": 129, + "line": 135, "column": 2 } }, @@ -3717,16 +3864,16 @@ "type": "Block", "value": "*\r\n\t * @type {KernelSize}\r\n\t ", "range": [ - 2702, - 2735 + 2791, + 2824 ], "loc": { "start": { - "line": 121, + "line": 127, "column": 1 }, "end": { - "line": 123, + "line": 129, "column": 4 } } @@ -3737,16 +3884,16 @@ "type": "Block", "value": "*\r\n\t * The overall intensity of the effect.\r\n\t *\r\n\t * @type {Number}\r\n\t * @default 1.0\r\n\t ", "range": [ - 2805, - 2899 + 2894, + 2988 ], "loc": { "start": { - "line": 131, + "line": 137, "column": 1 }, "end": { - "line": 136, + "line": 142, "column": 4 } } @@ -3760,16 +3907,16 @@ "type": "Identifier", "name": "intensity", "range": [ - 2908, - 2917 + 2997, + 3006 ], "loc": { "start": { - "line": 138, + "line": 144, "column": 5 }, "end": { - "line": 138, + "line": 144, "column": 14 } } @@ -3798,16 +3945,16 @@ "object": { "type": "ThisExpression", "range": [ - 2929, - 2933 + 3018, + 3022 ], "loc": { "start": { - "line": 138, + "line": 144, "column": 26 }, "end": { - "line": 138, + "line": 144, "column": 30 } } @@ -3816,31 +3963,31 @@ "type": "Identifier", "name": "combineMaterial", "range": [ - 2934, - 2949 + 3023, + 3038 ], "loc": { "start": { - "line": 138, + "line": 144, "column": 31 }, "end": { - "line": 138, + "line": 144, "column": 46 } } }, "range": [ - 2929, - 2949 + 3018, + 3038 ], "loc": { "start": { - "line": 138, + "line": 144, "column": 26 }, "end": { - "line": 138, + "line": 144, "column": 46 } } @@ -3849,31 +3996,31 @@ "type": "Identifier", "name": "uniforms", "range": [ - 2950, - 2958 + 3039, + 3047 ], "loc": { "start": { - "line": 138, + "line": 144, "column": 47 }, "end": { - "line": 138, + "line": 144, "column": 55 } } }, "range": [ - 2929, - 2958 + 3018, + 3047 ], "loc": { "start": { - "line": 138, + "line": 144, "column": 26 }, "end": { - "line": 138, + "line": 144, "column": 55 } } @@ -3882,31 +4029,31 @@ "type": "Identifier", "name": "opacity2", "range": [ - 2959, - 2967 + 3048, + 3056 ], "loc": { "start": { - "line": 138, + "line": 144, "column": 56 }, "end": { - "line": 138, + "line": 144, "column": 64 } } }, "range": [ - 2929, - 2967 + 3018, + 3056 ], "loc": { "start": { - "line": 138, + "line": 144, "column": 26 }, "end": { - "line": 138, + "line": 144, "column": 64 } } @@ -3915,62 +4062,62 @@ "type": "Identifier", "name": "value", "range": [ - 2968, - 2973 + 3057, + 3062 ], "loc": { "start": { - "line": 138, + "line": 144, "column": 65 }, "end": { - "line": 138, + "line": 144, "column": 70 } } }, "range": [ - 2929, - 2973 + 3018, + 3062 ], "loc": { "start": { - "line": 138, + "line": 144, "column": 26 }, "end": { - "line": 138, + "line": 144, "column": 70 } } }, "range": [ - 2922, - 2974 + 3011, + 3063 ], "loc": { "start": { - "line": 138, + "line": 144, "column": 19 }, "end": { - "line": 138, + "line": 144, "column": 71 } } } ], "range": [ - 2920, - 2976 + 3009, + 3065 ], "loc": { "start": { - "line": 138, + "line": 144, "column": 17 }, "end": { - "line": 138, + "line": 144, "column": 73 } } @@ -3978,16 +4125,16 @@ "generator": false, "expression": false, "range": [ - 2917, - 2976 + 3006, + 3065 ], "loc": { "start": { - "line": 138, + "line": 144, "column": 14 }, "end": { - "line": 138, + "line": 144, "column": 73 } } @@ -3995,16 +4142,16 @@ "kind": "get", "computed": false, "range": [ - 2904, - 2976 + 2993, + 3065 ], "loc": { "start": { - "line": 138, + "line": 144, "column": 1 }, "end": { - "line": 138, + "line": 144, "column": 73 } }, @@ -4013,16 +4160,16 @@ "type": "Block", "value": "*\r\n\t * The overall intensity of the effect.\r\n\t *\r\n\t * @type {Number}\r\n\t * @default 1.0\r\n\t ", "range": [ - 2805, - 2899 + 2894, + 2988 ], "loc": { "start": { - "line": 131, + "line": 137, "column": 1 }, "end": { - "line": 136, + "line": 142, "column": 4 } } @@ -4033,16 +4180,16 @@ "type": "Block", "value": "*\r\n\t * @type {Number}\r\n\t ", "range": [ - 2981, - 3010 + 3070, + 3099 ], "loc": { "start": { - "line": 140, + "line": 146, "column": 1 }, "end": { - "line": 142, + "line": 148, "column": 4 } } @@ -4056,16 +4203,16 @@ "type": "Identifier", "name": "intensity", "range": [ - 3019, - 3028 + 3108, + 3117 ], "loc": { "start": { - "line": 144, + "line": 150, "column": 5 }, "end": { - "line": 144, + "line": 150, "column": 14 } } @@ -4078,16 +4225,16 @@ "type": "Identifier", "name": "x", "range": [ - 3029, - 3030 + 3118, + 3119 ], "loc": { "start": { - "line": 144, + "line": 150, "column": 15 }, "end": { - "line": 144, + "line": 150, "column": 16 } } @@ -4108,32 +4255,32 @@ "type": "Identifier", "name": "x", "range": [ - 3049, - 3050 + 3138, + 3139 ], "loc": { "start": { - "line": 146, + "line": 152, "column": 12 }, "end": { - "line": 146, + "line": 152, "column": 13 } } }, "prefix": true, "range": [ - 3042, - 3050 + 3131, + 3139 ], "loc": { "start": { - "line": 146, + "line": 152, "column": 5 }, "end": { - "line": 146, + "line": 152, "column": 13 } } @@ -4143,31 +4290,31 @@ "value": "number", "raw": "\"number\"", "range": [ - 3055, - 3063 + 3144, + 3152 ], "loc": { "start": { - "line": 146, + "line": 152, "column": 18 }, "end": { - "line": 146, + "line": 152, "column": 26 } } }, "range": [ - 3042, - 3063 + 3131, + 3152 ], "loc": { "start": { - "line": 146, + "line": 152, "column": 5 }, "end": { - "line": 146, + "line": 152, "column": 26 } } @@ -4195,16 +4342,16 @@ "object": { "type": "ThisExpression", "range": [ - 3073, - 3077 + 3162, + 3166 ], "loc": { "start": { - "line": 148, + "line": 154, "column": 3 }, "end": { - "line": 148, + "line": 154, "column": 7 } } @@ -4213,31 +4360,31 @@ "type": "Identifier", "name": "combineMaterial", "range": [ - 3078, - 3093 + 3167, + 3182 ], "loc": { "start": { - "line": 148, + "line": 154, "column": 8 }, "end": { - "line": 148, + "line": 154, "column": 23 } } }, "range": [ - 3073, - 3093 + 3162, + 3182 ], "loc": { "start": { - "line": 148, + "line": 154, "column": 3 }, "end": { - "line": 148, + "line": 154, "column": 23 } } @@ -4246,31 +4393,31 @@ "type": "Identifier", "name": "uniforms", "range": [ - 3094, - 3102 + 3183, + 3191 ], "loc": { "start": { - "line": 148, + "line": 154, "column": 24 }, "end": { - "line": 148, + "line": 154, "column": 32 } } }, "range": [ - 3073, - 3102 + 3162, + 3191 ], "loc": { "start": { - "line": 148, + "line": 154, "column": 3 }, "end": { - "line": 148, + "line": 154, "column": 32 } } @@ -4279,31 +4426,31 @@ "type": "Identifier", "name": "opacity2", "range": [ - 3103, - 3111 + 3192, + 3200 ], "loc": { "start": { - "line": 148, + "line": 154, "column": 33 }, "end": { - "line": 148, + "line": 154, "column": 41 } } }, "range": [ - 3073, - 3111 + 3162, + 3200 ], "loc": { "start": { - "line": 148, + "line": 154, "column": 3 }, "end": { - "line": 148, + "line": 154, "column": 41 } } @@ -4312,31 +4459,31 @@ "type": "Identifier", "name": "value", "range": [ - 3112, - 3117 + 3201, + 3206 ], "loc": { "start": { - "line": 148, + "line": 154, "column": 42 }, "end": { - "line": 148, + "line": 154, "column": 47 } } }, "range": [ - 3073, - 3117 + 3162, + 3206 ], "loc": { "start": { - "line": 148, + "line": 154, "column": 3 }, "end": { - "line": 148, + "line": 154, "column": 47 } } @@ -4345,94 +4492,94 @@ "type": "Identifier", "name": "x", "range": [ - 3120, - 3121 + 3209, + 3210 ], "loc": { "start": { - "line": 148, + "line": 154, "column": 50 }, "end": { - "line": 148, + "line": 154, "column": 51 } } }, "range": [ - 3073, - 3121 + 3162, + 3210 ], "loc": { "start": { - "line": 148, + "line": 154, "column": 3 }, "end": { - "line": 148, + "line": 154, "column": 51 } } }, "range": [ - 3073, - 3122 + 3162, + 3211 ], "loc": { "start": { - "line": 148, + "line": 154, "column": 3 }, "end": { - "line": 148, + "line": 154, "column": 52 } } } ], "range": [ - 3065, - 3129 + 3154, + 3218 ], "loc": { "start": { - "line": 146, + "line": 152, "column": 28 }, "end": { - "line": 150, + "line": 156, "column": 3 } } }, "alternate": null, "range": [ - 3039, - 3129 + 3128, + 3218 ], "loc": { "start": { - "line": 146, + "line": 152, "column": 2 }, "end": { - "line": 150, + "line": 156, "column": 3 } } } ], "range": [ - 3032, - 3135 + 3121, + 3224 ], "loc": { "start": { - "line": 144, + "line": 150, "column": 18 }, "end": { - "line": 152, + "line": 158, "column": 2 } } @@ -4440,16 +4587,16 @@ "generator": false, "expression": false, "range": [ - 3028, - 3135 + 3117, + 3224 ], "loc": { "start": { - "line": 144, + "line": 150, "column": 14 }, "end": { - "line": 152, + "line": 158, "column": 2 } } @@ -4457,16 +4604,16 @@ "kind": "set", "computed": false, "range": [ - 3015, - 3135 + 3104, + 3224 ], "loc": { "start": { - "line": 144, + "line": 150, "column": 1 }, "end": { - "line": 152, + "line": 158, "column": 2 } }, @@ -4475,16 +4622,16 @@ "type": "Block", "value": "*\r\n\t * @type {Number}\r\n\t ", "range": [ - 2981, - 3010 + 3070, + 3099 ], "loc": { "start": { - "line": 140, + "line": 146, "column": 1 }, "end": { - "line": 142, + "line": 148, "column": 4 } } @@ -4495,16 +4642,16 @@ "type": "Block", "value": "*\r\n\t * The luminance distinction factor.\r\n\t *\r\n\t * @type {Number}\r\n\t * @default 1.0\r\n\t ", "range": [ - 3140, - 3231 + 3229, + 3320 ], "loc": { "start": { - "line": 154, + "line": 160, "column": 1 }, "end": { - "line": 159, + "line": 165, "column": 4 } } @@ -4518,16 +4665,16 @@ "type": "Identifier", "name": "distinction", "range": [ - 3240, - 3251 + 3329, + 3340 ], "loc": { "start": { - "line": 161, + "line": 167, "column": 5 }, "end": { - "line": 161, + "line": 167, "column": 16 } } @@ -4556,16 +4703,16 @@ "object": { "type": "ThisExpression", "range": [ - 3263, - 3267 + 3352, + 3356 ], "loc": { "start": { - "line": 161, + "line": 167, "column": 28 }, "end": { - "line": 161, + "line": 167, "column": 32 } } @@ -4574,31 +4721,31 @@ "type": "Identifier", "name": "luminosityMaterial", "range": [ - 3268, - 3286 + 3357, + 3375 ], "loc": { "start": { - "line": 161, + "line": 167, "column": 33 }, "end": { - "line": 161, + "line": 167, "column": 51 } } }, "range": [ - 3263, - 3286 + 3352, + 3375 ], "loc": { "start": { - "line": 161, + "line": 167, "column": 28 }, "end": { - "line": 161, + "line": 167, "column": 51 } } @@ -4607,31 +4754,31 @@ "type": "Identifier", "name": "uniforms", "range": [ - 3287, - 3295 + 3376, + 3384 ], "loc": { "start": { - "line": 161, + "line": 167, "column": 52 }, "end": { - "line": 161, + "line": 167, "column": 60 } } }, "range": [ - 3263, - 3295 + 3352, + 3384 ], "loc": { "start": { - "line": 161, + "line": 167, "column": 28 }, "end": { - "line": 161, + "line": 167, "column": 60 } } @@ -4640,31 +4787,31 @@ "type": "Identifier", "name": "distinction", "range": [ - 3296, - 3307 + 3385, + 3396 ], "loc": { "start": { - "line": 161, + "line": 167, "column": 61 }, "end": { - "line": 161, + "line": 167, "column": 72 } } }, "range": [ - 3263, - 3307 + 3352, + 3396 ], "loc": { "start": { - "line": 161, + "line": 167, "column": 28 }, "end": { - "line": 161, + "line": 167, "column": 72 } } @@ -4673,62 +4820,62 @@ "type": "Identifier", "name": "value", "range": [ - 3308, - 3313 + 3397, + 3402 ], "loc": { "start": { - "line": 161, + "line": 167, "column": 73 }, "end": { - "line": 161, + "line": 167, "column": 78 } } }, "range": [ - 3263, - 3313 + 3352, + 3402 ], "loc": { "start": { - "line": 161, + "line": 167, "column": 28 }, "end": { - "line": 161, + "line": 167, "column": 78 } } }, "range": [ - 3256, - 3314 + 3345, + 3403 ], "loc": { "start": { - "line": 161, + "line": 167, "column": 21 }, "end": { - "line": 161, + "line": 167, "column": 79 } } } ], "range": [ - 3254, - 3316 + 3343, + 3405 ], "loc": { "start": { - "line": 161, + "line": 167, "column": 19 }, "end": { - "line": 161, + "line": 167, "column": 81 } } @@ -4736,16 +4883,16 @@ "generator": false, "expression": false, "range": [ - 3251, - 3316 + 3340, + 3405 ], "loc": { "start": { - "line": 161, + "line": 167, "column": 16 }, "end": { - "line": 161, + "line": 167, "column": 81 } } @@ -4753,16 +4900,16 @@ "kind": "get", "computed": false, "range": [ - 3236, - 3316 + 3325, + 3405 ], "loc": { "start": { - "line": 161, + "line": 167, "column": 1 }, "end": { - "line": 161, + "line": 167, "column": 81 } }, @@ -4771,16 +4918,16 @@ "type": "Block", "value": "*\r\n\t * The luminance distinction factor.\r\n\t *\r\n\t * @type {Number}\r\n\t * @default 1.0\r\n\t ", "range": [ - 3140, - 3231 + 3229, + 3320 ], "loc": { "start": { - "line": 154, + "line": 160, "column": 1 }, "end": { - "line": 159, + "line": 165, "column": 4 } } @@ -4791,16 +4938,16 @@ "type": "Block", "value": "*\r\n\t * @type {Number}\r\n\t ", "range": [ - 3321, - 3350 + 3410, + 3439 ], "loc": { "start": { - "line": 163, + "line": 169, "column": 1 }, "end": { - "line": 165, + "line": 171, "column": 4 } } @@ -4814,16 +4961,16 @@ "type": "Identifier", "name": "distinction", "range": [ - 3359, - 3370 + 3448, + 3459 ], "loc": { "start": { - "line": 167, + "line": 173, "column": 5 }, "end": { - "line": 167, + "line": 173, "column": 16 } } @@ -4836,16 +4983,16 @@ "type": "Identifier", "name": "x", "range": [ - 3371, - 3372 + 3460, + 3461 ], "loc": { "start": { - "line": 167, + "line": 173, "column": 17 }, "end": { - "line": 167, + "line": 173, "column": 18 } } @@ -4866,32 +5013,32 @@ "type": "Identifier", "name": "x", "range": [ - 3391, - 3392 + 3480, + 3481 ], "loc": { "start": { - "line": 169, + "line": 175, "column": 12 }, "end": { - "line": 169, + "line": 175, "column": 13 } } }, "prefix": true, "range": [ - 3384, - 3392 + 3473, + 3481 ], "loc": { "start": { - "line": 169, + "line": 175, "column": 5 }, "end": { - "line": 169, + "line": 175, "column": 13 } } @@ -4901,31 +5048,31 @@ "value": "number", "raw": "\"number\"", "range": [ - 3397, - 3405 + 3486, + 3494 ], "loc": { "start": { - "line": 169, + "line": 175, "column": 18 }, "end": { - "line": 169, + "line": 175, "column": 26 } } }, "range": [ - 3384, - 3405 + 3473, + 3494 ], "loc": { "start": { - "line": 169, + "line": 175, "column": 5 }, "end": { - "line": 169, + "line": 175, "column": 26 } } @@ -4953,16 +5100,16 @@ "object": { "type": "ThisExpression", "range": [ - 3415, - 3419 + 3504, + 3508 ], "loc": { "start": { - "line": 171, + "line": 177, "column": 3 }, "end": { - "line": 171, + "line": 177, "column": 7 } } @@ -4971,31 +5118,31 @@ "type": "Identifier", "name": "luminosityMaterial", "range": [ - 3420, - 3438 + 3509, + 3527 ], "loc": { "start": { - "line": 171, + "line": 177, "column": 8 }, "end": { - "line": 171, + "line": 177, "column": 26 } } }, "range": [ - 3415, - 3438 + 3504, + 3527 ], "loc": { "start": { - "line": 171, + "line": 177, "column": 3 }, "end": { - "line": 171, + "line": 177, "column": 26 } } @@ -5004,31 +5151,31 @@ "type": "Identifier", "name": "uniforms", "range": [ - 3439, - 3447 + 3528, + 3536 ], "loc": { "start": { - "line": 171, + "line": 177, "column": 27 }, "end": { - "line": 171, + "line": 177, "column": 35 } } }, "range": [ - 3415, - 3447 + 3504, + 3536 ], "loc": { "start": { - "line": 171, + "line": 177, "column": 3 }, "end": { - "line": 171, + "line": 177, "column": 35 } } @@ -5037,31 +5184,31 @@ "type": "Identifier", "name": "distinction", "range": [ - 3448, - 3459 + 3537, + 3548 ], "loc": { "start": { - "line": 171, + "line": 177, "column": 36 }, "end": { - "line": 171, + "line": 177, "column": 47 } } }, "range": [ - 3415, - 3459 + 3504, + 3548 ], "loc": { "start": { - "line": 171, + "line": 177, "column": 3 }, "end": { - "line": 171, + "line": 177, "column": 47 } } @@ -5070,31 +5217,31 @@ "type": "Identifier", "name": "value", "range": [ - 3460, - 3465 + 3549, + 3554 ], "loc": { "start": { - "line": 171, + "line": 177, "column": 48 }, "end": { - "line": 171, + "line": 177, "column": 53 } } }, "range": [ - 3415, - 3465 + 3504, + 3554 ], "loc": { "start": { - "line": 171, + "line": 177, "column": 3 }, "end": { - "line": 171, + "line": 177, "column": 53 } } @@ -5103,94 +5250,94 @@ "type": "Identifier", "name": "x", "range": [ - 3468, - 3469 + 3557, + 3558 ], "loc": { "start": { - "line": 171, + "line": 177, "column": 56 }, "end": { - "line": 171, + "line": 177, "column": 57 } } }, "range": [ - 3415, - 3469 + 3504, + 3558 ], "loc": { "start": { - "line": 171, + "line": 177, "column": 3 }, "end": { - "line": 171, + "line": 177, "column": 57 } } }, "range": [ - 3415, - 3470 + 3504, + 3559 ], "loc": { "start": { - "line": 171, + "line": 177, "column": 3 }, "end": { - "line": 171, + "line": 177, "column": 58 } } } ], "range": [ - 3407, - 3477 + 3496, + 3566 ], "loc": { "start": { - "line": 169, + "line": 175, "column": 28 }, "end": { - "line": 173, + "line": 179, "column": 3 } } }, "alternate": null, "range": [ - 3381, - 3477 + 3470, + 3566 ], "loc": { "start": { - "line": 169, + "line": 175, "column": 2 }, "end": { - "line": 173, + "line": 179, "column": 3 } } } ], "range": [ - 3374, - 3483 + 3463, + 3572 ], "loc": { "start": { - "line": 167, + "line": 173, "column": 20 }, "end": { - "line": 175, + "line": 181, "column": 2 } } @@ -5198,16 +5345,16 @@ "generator": false, "expression": false, "range": [ - 3370, - 3483 + 3459, + 3572 ], "loc": { "start": { - "line": 167, + "line": 173, "column": 16 }, "end": { - "line": 175, + "line": 181, "column": 2 } } @@ -5215,16 +5362,16 @@ "kind": "set", "computed": false, "range": [ - 3355, - 3483 + 3444, + 3572 ], "loc": { "start": { - "line": 167, + "line": 173, "column": 1 }, "end": { - "line": 175, + "line": 181, "column": 2 } }, @@ -5233,16 +5380,16 @@ "type": "Block", "value": "*\r\n\t * @type {Number}\r\n\t ", "range": [ - 3321, - 3350 + 3410, + 3439 ], "loc": { "start": { - "line": 163, + "line": 169, "column": 1 }, "end": { - "line": 165, + "line": 171, "column": 4 } } @@ -5253,16 +5400,16 @@ "type": "Block", "value": "*\r\n\t * Renders the effect.\r\n\t *\r\n\t * Extracts a luminance map from the read buffer, blurs it and combines it\r\n\t * with the read buffer.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {WebGLRenderTarget} readBuffer - The read buffer.\r\n\t * @param {WebGLRenderTarget} writeBuffer - The write buffer.\r\n\t ", "range": [ - 3488, - 3815 + 3577, + 3904 ], "loc": { "start": { - "line": 177, + "line": 183, "column": 1 }, "end": { - "line": 186, + "line": 192, "column": 4 } } @@ -5276,16 +5423,16 @@ "type": "Identifier", "name": "render", "range": [ - 3820, - 3826 + 3909, + 3915 ], "loc": { "start": { - "line": 188, + "line": 194, "column": 1 }, "end": { - "line": 188, + "line": 194, "column": 7 } } @@ -5298,16 +5445,16 @@ "type": "Identifier", "name": "renderer", "range": [ - 3827, - 3835 + 3916, + 3924 ], "loc": { "start": { - "line": 188, + "line": 194, "column": 8 }, "end": { - "line": 188, + "line": 194, "column": 16 } } @@ -5316,16 +5463,16 @@ "type": "Identifier", "name": "readBuffer", "range": [ - 3837, - 3847 + 3926, + 3936 ], "loc": { "start": { - "line": 188, + "line": 194, "column": 18 }, "end": { - "line": 188, + "line": 194, "column": 28 } } @@ -5334,16 +5481,16 @@ "type": "Identifier", "name": "writeBuffer", "range": [ - 3849, - 3860 + 3938, + 3949 ], "loc": { "start": { - "line": 188, + "line": 194, "column": 30 }, "end": { - "line": 188, + "line": 194, "column": 41 } } @@ -5361,16 +5508,16 @@ "type": "Identifier", "name": "quad", "range": [ - 3875, - 3879 + 3964, + 3968 ], "loc": { "start": { - "line": 190, + "line": 196, "column": 8 }, "end": { - "line": 190, + "line": 196, "column": 12 } } @@ -5381,16 +5528,16 @@ "object": { "type": "ThisExpression", "range": [ - 3882, - 3886 + 3971, + 3975 ], "loc": { "start": { - "line": 190, + "line": 196, "column": 15 }, "end": { - "line": 190, + "line": 196, "column": 19 } } @@ -5399,46 +5546,46 @@ "type": "Identifier", "name": "quad", "range": [ - 3887, - 3891 + 3976, + 3980 ], "loc": { "start": { - "line": 190, + "line": 196, "column": 20 }, "end": { - "line": 190, + "line": 196, "column": 24 } } }, "range": [ - 3882, - 3891 + 3971, + 3980 ], "loc": { "start": { - "line": 190, + "line": 196, "column": 15 }, "end": { - "line": 190, + "line": 196, "column": 24 } } }, "range": [ - 3875, - 3891 + 3964, + 3980 ], "loc": { "start": { - "line": 190, + "line": 196, "column": 8 }, "end": { - "line": 190, + "line": 196, "column": 24 } } @@ -5446,16 +5593,16 @@ ], "kind": "const", "range": [ - 3869, - 3892 + 3958, + 3981 ], "loc": { "start": { - "line": 190, + "line": 196, "column": 2 }, "end": { - "line": 190, + "line": 196, "column": 25 } } @@ -5469,16 +5616,16 @@ "type": "Identifier", "name": "scene", "range": [ - 3902, - 3907 + 3991, + 3996 ], "loc": { "start": { - "line": 191, + "line": 197, "column": 8 }, "end": { - "line": 191, + "line": 197, "column": 13 } } @@ -5489,16 +5636,16 @@ "object": { "type": "ThisExpression", "range": [ - 3910, - 3914 + 3999, + 4003 ], "loc": { "start": { - "line": 191, + "line": 197, "column": 16 }, "end": { - "line": 191, + "line": 197, "column": 20 } } @@ -5507,46 +5654,46 @@ "type": "Identifier", "name": "scene", "range": [ - 3915, - 3920 + 4004, + 4009 ], "loc": { "start": { - "line": 191, + "line": 197, "column": 21 }, "end": { - "line": 191, + "line": 197, "column": 26 } } }, "range": [ - 3910, - 3920 + 3999, + 4009 ], "loc": { "start": { - "line": 191, + "line": 197, "column": 16 }, "end": { - "line": 191, + "line": 197, "column": 26 } } }, "range": [ - 3902, - 3920 + 3991, + 4009 ], "loc": { "start": { - "line": 191, + "line": 197, "column": 8 }, "end": { - "line": 191, + "line": 197, "column": 26 } } @@ -5554,16 +5701,16 @@ ], "kind": "const", "range": [ - 3896, - 3921 + 3985, + 4010 ], "loc": { "start": { - "line": 191, + "line": 197, "column": 2 }, "end": { - "line": 191, + "line": 197, "column": 27 } } @@ -5577,16 +5724,16 @@ "type": "Identifier", "name": "camera", "range": [ - 3931, - 3937 + 4020, + 4026 ], "loc": { "start": { - "line": 192, + "line": 198, "column": 8 }, "end": { - "line": 192, + "line": 198, "column": 14 } } @@ -5597,16 +5744,16 @@ "object": { "type": "ThisExpression", "range": [ - 3940, - 3944 + 4029, + 4033 ], "loc": { "start": { - "line": 192, + "line": 198, "column": 17 }, "end": { - "line": 192, + "line": 198, "column": 21 } } @@ -5615,46 +5762,46 @@ "type": "Identifier", "name": "camera", "range": [ - 3945, - 3951 + 4034, + 4040 ], "loc": { "start": { - "line": 192, + "line": 198, "column": 22 }, "end": { - "line": 192, + "line": 198, "column": 28 } } }, "range": [ - 3940, - 3951 + 4029, + 4040 ], "loc": { "start": { - "line": 192, + "line": 198, "column": 17 }, "end": { - "line": 192, + "line": 198, "column": 28 } } }, "range": [ - 3931, - 3951 + 4020, + 4040 ], "loc": { "start": { - "line": 192, + "line": 198, "column": 8 }, "end": { - "line": 192, + "line": 198, "column": 28 } } @@ -5662,16 +5809,16 @@ ], "kind": "const", "range": [ - 3925, - 3952 + 4014, + 4041 ], "loc": { "start": { - "line": 192, + "line": 198, "column": 2 }, "end": { - "line": 192, + "line": 198, "column": 29 } } @@ -5685,16 +5832,16 @@ "type": "Identifier", "name": "blurPass", "range": [ - 3962, - 3970 + 4051, + 4059 ], "loc": { "start": { - "line": 193, + "line": 199, "column": 8 }, "end": { - "line": 193, + "line": 199, "column": 16 } } @@ -5705,16 +5852,16 @@ "object": { "type": "ThisExpression", "range": [ - 3973, - 3977 + 4062, + 4066 ], "loc": { "start": { - "line": 193, + "line": 199, "column": 19 }, "end": { - "line": 193, + "line": 199, "column": 23 } } @@ -5723,46 +5870,46 @@ "type": "Identifier", "name": "blurPass", "range": [ - 3978, - 3986 + 4067, + 4075 ], "loc": { "start": { - "line": 193, + "line": 199, "column": 24 }, "end": { - "line": 193, + "line": 199, "column": 32 } } }, "range": [ - 3973, - 3986 + 4062, + 4075 ], "loc": { "start": { - "line": 193, + "line": 199, "column": 19 }, "end": { - "line": 193, + "line": 199, "column": 32 } } }, "range": [ - 3962, - 3986 + 4051, + 4075 ], "loc": { "start": { - "line": 193, + "line": 199, "column": 8 }, "end": { - "line": 193, + "line": 199, "column": 32 } } @@ -5770,16 +5917,16 @@ ], "kind": "const", "range": [ - 3956, - 3987 + 4045, + 4076 ], "loc": { "start": { - "line": 193, + "line": 199, "column": 2 }, "end": { - "line": 193, + "line": 199, "column": 33 } } @@ -5793,16 +5940,16 @@ "type": "Identifier", "name": "luminosityMaterial", "range": [ - 3999, - 4017 + 4088, + 4106 ], "loc": { "start": { - "line": 195, + "line": 201, "column": 8 }, "end": { - "line": 195, + "line": 201, "column": 26 } } @@ -5813,16 +5960,16 @@ "object": { "type": "ThisExpression", "range": [ - 4020, - 4024 + 4109, + 4113 ], "loc": { "start": { - "line": 195, + "line": 201, "column": 29 }, "end": { - "line": 195, + "line": 201, "column": 33 } } @@ -5831,46 +5978,46 @@ "type": "Identifier", "name": "luminosityMaterial", "range": [ - 4025, - 4043 + 4114, + 4132 ], "loc": { "start": { - "line": 195, + "line": 201, "column": 34 }, "end": { - "line": 195, + "line": 201, "column": 52 } } }, "range": [ - 4020, - 4043 + 4109, + 4132 ], "loc": { "start": { - "line": 195, + "line": 201, "column": 29 }, "end": { - "line": 195, + "line": 201, "column": 52 } } }, "range": [ - 3999, - 4043 + 4088, + 4132 ], "loc": { "start": { - "line": 195, + "line": 201, "column": 8 }, "end": { - "line": 195, + "line": 201, "column": 52 } } @@ -5878,16 +6025,16 @@ ], "kind": "const", "range": [ - 3993, - 4044 + 4082, + 4133 ], "loc": { "start": { - "line": 195, + "line": 201, "column": 2 }, "end": { - "line": 195, + "line": 201, "column": 53 } } @@ -5901,16 +6048,16 @@ "type": "Identifier", "name": "combineMaterial", "range": [ - 4054, - 4069 + 4143, + 4158 ], "loc": { "start": { - "line": 196, + "line": 202, "column": 8 }, "end": { - "line": 196, + "line": 202, "column": 23 } } @@ -5921,16 +6068,16 @@ "object": { "type": "ThisExpression", "range": [ - 4072, - 4076 + 4161, + 4165 ], "loc": { "start": { - "line": 196, + "line": 202, "column": 26 }, "end": { - "line": 196, + "line": 202, "column": 30 } } @@ -5939,46 +6086,46 @@ "type": "Identifier", "name": "combineMaterial", "range": [ - 4077, - 4092 + 4166, + 4181 ], "loc": { "start": { - "line": 196, + "line": 202, "column": 31 }, "end": { - "line": 196, + "line": 202, "column": 46 } } }, "range": [ - 4072, - 4092 + 4161, + 4181 ], "loc": { "start": { - "line": 196, + "line": 202, "column": 26 }, "end": { - "line": 196, + "line": 202, "column": 46 } } }, "range": [ - 4054, - 4092 + 4143, + 4181 ], "loc": { "start": { - "line": 196, + "line": 202, "column": 8 }, "end": { - "line": 196, + "line": 202, "column": 46 } } @@ -5986,16 +6133,16 @@ ], "kind": "const", "range": [ - 4048, - 4093 + 4137, + 4182 ], "loc": { "start": { - "line": 196, + "line": 202, "column": 2 }, "end": { - "line": 196, + "line": 202, "column": 47 } } @@ -6009,16 +6156,16 @@ "type": "Identifier", "name": "renderTargetX", "range": [ - 4105, - 4118 + 4194, + 4207 ], "loc": { "start": { - "line": 198, + "line": 204, "column": 8 }, "end": { - "line": 198, + "line": 204, "column": 21 } } @@ -6029,16 +6176,16 @@ "object": { "type": "ThisExpression", "range": [ - 4121, - 4125 + 4210, + 4214 ], "loc": { "start": { - "line": 198, + "line": 204, "column": 24 }, "end": { - "line": 198, + "line": 204, "column": 28 } } @@ -6047,46 +6194,46 @@ "type": "Identifier", "name": "renderTargetX", "range": [ - 4126, - 4139 + 4215, + 4228 ], "loc": { "start": { - "line": 198, + "line": 204, "column": 29 }, "end": { - "line": 198, + "line": 204, "column": 42 } } }, "range": [ - 4121, - 4139 + 4210, + 4228 ], "loc": { "start": { - "line": 198, + "line": 204, "column": 24 }, "end": { - "line": 198, + "line": 204, "column": 42 } } }, "range": [ - 4105, - 4139 + 4194, + 4228 ], "loc": { "start": { - "line": 198, + "line": 204, "column": 8 }, "end": { - "line": 198, + "line": 204, "column": 42 } } @@ -6094,16 +6241,16 @@ ], "kind": "const", "range": [ - 4099, - 4140 + 4188, + 4229 ], "loc": { "start": { - "line": 198, + "line": 204, "column": 2 }, "end": { - "line": 198, + "line": 204, "column": 43 } } @@ -6117,16 +6264,16 @@ "type": "Identifier", "name": "renderTargetY", "range": [ - 4150, - 4163 + 4239, + 4252 ], "loc": { "start": { - "line": 199, + "line": 205, "column": 8 }, "end": { - "line": 199, + "line": 205, "column": 21 } } @@ -6137,16 +6284,16 @@ "object": { "type": "ThisExpression", "range": [ - 4166, - 4170 + 4255, + 4259 ], "loc": { "start": { - "line": 199, + "line": 205, "column": 24 }, "end": { - "line": 199, + "line": 205, "column": 28 } } @@ -6155,46 +6302,46 @@ "type": "Identifier", "name": "renderTargetY", "range": [ - 4171, - 4184 + 4260, + 4273 ], "loc": { "start": { - "line": 199, + "line": 205, "column": 29 }, "end": { - "line": 199, + "line": 205, "column": 42 } } }, "range": [ - 4166, - 4184 + 4255, + 4273 ], "loc": { "start": { - "line": 199, + "line": 205, "column": 24 }, "end": { - "line": 199, + "line": 205, "column": 42 } } }, "range": [ - 4150, - 4184 + 4239, + 4273 ], "loc": { "start": { - "line": 199, + "line": 205, "column": 8 }, "end": { - "line": 199, + "line": 205, "column": 42 } } @@ -6202,16 +6349,16 @@ ], "kind": "const", "range": [ - 4144, - 4185 + 4233, + 4274 ], "loc": { "start": { - "line": 199, + "line": 205, "column": 2 }, "end": { - "line": 199, + "line": 205, "column": 43 } }, @@ -6220,16 +6367,16 @@ "type": "Line", "value": " Luminance filter.", "range": [ - 4191, - 4211 + 4280, + 4300 ], "loc": { "start": { - "line": 201, + "line": 207, "column": 2 }, "end": { - "line": 201, + "line": 207, "column": 22 } } @@ -6248,16 +6395,16 @@ "type": "Identifier", "name": "quad", "range": [ - 4215, - 4219 + 4304, + 4308 ], "loc": { "start": { - "line": 202, + "line": 208, "column": 2 }, "end": { - "line": 202, + "line": 208, "column": 6 } } @@ -6266,31 +6413,31 @@ "type": "Identifier", "name": "material", "range": [ - 4220, - 4228 + 4309, + 4317 ], "loc": { "start": { - "line": 202, + "line": 208, "column": 7 }, "end": { - "line": 202, + "line": 208, "column": 15 } } }, "range": [ - 4215, - 4228 + 4304, + 4317 ], "loc": { "start": { - "line": 202, + "line": 208, "column": 2 }, "end": { - "line": 202, + "line": 208, "column": 15 } } @@ -6299,46 +6446,46 @@ "type": "Identifier", "name": "luminosityMaterial", "range": [ - 4231, - 4249 + 4320, + 4338 ], "loc": { "start": { - "line": 202, + "line": 208, "column": 18 }, "end": { - "line": 202, + "line": 208, "column": 36 } } }, "range": [ - 4215, - 4249 + 4304, + 4338 ], "loc": { "start": { - "line": 202, + "line": 208, "column": 2 }, "end": { - "line": 202, + "line": 208, "column": 36 } } }, "range": [ - 4215, - 4250 + 4304, + 4339 ], "loc": { "start": { - "line": 202, + "line": 208, "column": 2 }, "end": { - "line": 202, + "line": 208, "column": 37 } }, @@ -6347,16 +6494,16 @@ "type": "Line", "value": " Luminance filter.", "range": [ - 4191, - 4211 + 4280, + 4300 ], "loc": { "start": { - "line": 201, + "line": 207, "column": 2 }, "end": { - "line": 201, + "line": 207, "column": 22 } } @@ -6381,16 +6528,16 @@ "type": "Identifier", "name": "luminosityMaterial", "range": [ - 4254, - 4272 + 4343, + 4361 ], "loc": { "start": { - "line": 203, + "line": 209, "column": 2 }, "end": { - "line": 203, + "line": 209, "column": 20 } } @@ -6399,31 +6546,31 @@ "type": "Identifier", "name": "uniforms", "range": [ - 4273, - 4281 + 4362, + 4370 ], "loc": { "start": { - "line": 203, + "line": 209, "column": 21 }, "end": { - "line": 203, + "line": 209, "column": 29 } } }, "range": [ - 4254, - 4281 + 4343, + 4370 ], "loc": { "start": { - "line": 203, + "line": 209, "column": 2 }, "end": { - "line": 203, + "line": 209, "column": 29 } } @@ -6432,31 +6579,31 @@ "type": "Identifier", "name": "tDiffuse", "range": [ - 4282, - 4290 + 4371, + 4379 ], "loc": { "start": { - "line": 203, + "line": 209, "column": 30 }, "end": { - "line": 203, + "line": 209, "column": 38 } } }, "range": [ - 4254, - 4290 + 4343, + 4379 ], "loc": { "start": { - "line": 203, + "line": 209, "column": 2 }, "end": { - "line": 203, + "line": 209, "column": 38 } } @@ -6465,31 +6612,31 @@ "type": "Identifier", "name": "value", "range": [ - 4291, - 4296 + 4380, + 4385 ], "loc": { "start": { - "line": 203, + "line": 209, "column": 39 }, "end": { - "line": 203, + "line": 209, "column": 44 } } }, "range": [ - 4254, - 4296 + 4343, + 4385 ], "loc": { "start": { - "line": 203, + "line": 209, "column": 2 }, "end": { - "line": 203, + "line": 209, "column": 44 } } @@ -6501,16 +6648,16 @@ "type": "Identifier", "name": "readBuffer", "range": [ - 4299, - 4309 + 4388, + 4398 ], "loc": { "start": { - "line": 203, + "line": 209, "column": 47 }, "end": { - "line": 203, + "line": 209, "column": 57 } } @@ -6519,61 +6666,61 @@ "type": "Identifier", "name": "texture", "range": [ - 4310, - 4317 + 4399, + 4406 ], "loc": { "start": { - "line": 203, + "line": 209, "column": 58 }, "end": { - "line": 203, + "line": 209, "column": 65 } } }, "range": [ - 4299, - 4317 + 4388, + 4406 ], "loc": { "start": { - "line": 203, + "line": 209, "column": 47 }, "end": { - "line": 203, + "line": 209, "column": 65 } } }, "range": [ - 4254, - 4317 + 4343, + 4406 ], "loc": { "start": { - "line": 203, + "line": 209, "column": 2 }, "end": { - "line": 203, + "line": 209, "column": 65 } } }, "range": [ - 4254, - 4318 + 4343, + 4407 ], "loc": { "start": { - "line": 203, + "line": 209, "column": 2 }, "end": { - "line": 203, + "line": 209, "column": 66 } } @@ -6589,16 +6736,16 @@ "type": "Identifier", "name": "renderer", "range": [ - 4322, - 4330 + 4411, + 4419 ], "loc": { "start": { - "line": 204, + "line": 210, "column": 2 }, "end": { - "line": 204, + "line": 210, "column": 10 } } @@ -6607,31 +6754,31 @@ "type": "Identifier", "name": "render", "range": [ - 4331, - 4337 + 4420, + 4426 ], "loc": { "start": { - "line": 204, + "line": 210, "column": 11 }, "end": { - "line": 204, + "line": 210, "column": 17 } } }, "range": [ - 4322, - 4337 + 4411, + 4426 ], "loc": { "start": { - "line": 204, + "line": 210, "column": 2 }, "end": { - "line": 204, + "line": 210, "column": 17 } } @@ -6641,16 +6788,16 @@ "type": "Identifier", "name": "scene", "range": [ - 4338, - 4343 + 4427, + 4432 ], "loc": { "start": { - "line": 204, + "line": 210, "column": 18 }, "end": { - "line": 204, + "line": 210, "column": 23 } } @@ -6659,16 +6806,16 @@ "type": "Identifier", "name": "camera", "range": [ - 4345, - 4351 + 4434, + 4440 ], "loc": { "start": { - "line": 204, + "line": 210, "column": 25 }, "end": { - "line": 204, + "line": 210, "column": 31 } } @@ -6677,47 +6824,47 @@ "type": "Identifier", "name": "renderTargetX", "range": [ - 4353, - 4366 + 4442, + 4455 ], "loc": { "start": { - "line": 204, + "line": 210, "column": 33 }, "end": { - "line": 204, + "line": 210, "column": 46 } } } ], "range": [ - 4322, - 4367 + 4411, + 4456 ], "loc": { "start": { - "line": 204, + "line": 210, "column": 2 }, "end": { - "line": 204, + "line": 210, "column": 47 } } }, "range": [ - 4322, - 4368 + 4411, + 4457 ], "loc": { "start": { - "line": 204, + "line": 210, "column": 2 }, "end": { - "line": 204, + "line": 210, "column": 48 } }, @@ -6726,16 +6873,16 @@ "type": "Line", "value": " Convolution phase.", "range": [ - 4374, - 4395 + 4463, + 4484 ], "loc": { "start": { - "line": 206, + "line": 212, "column": 2 }, "end": { - "line": 206, + "line": 212, "column": 23 } } @@ -6753,16 +6900,16 @@ "type": "Identifier", "name": "blurPass", "range": [ - 4399, - 4407 + 4488, + 4496 ], "loc": { "start": { - "line": 207, + "line": 213, "column": 2 }, "end": { - "line": 207, + "line": 213, "column": 10 } } @@ -6771,31 +6918,31 @@ "type": "Identifier", "name": "render", "range": [ - 4408, - 4414 + 4497, + 4503 ], "loc": { "start": { - "line": 207, + "line": 213, "column": 11 }, "end": { - "line": 207, + "line": 213, "column": 17 } } }, "range": [ - 4399, - 4414 + 4488, + 4503 ], "loc": { "start": { - "line": 207, + "line": 213, "column": 2 }, "end": { - "line": 207, + "line": 213, "column": 17 } } @@ -6805,16 +6952,16 @@ "type": "Identifier", "name": "renderer", "range": [ - 4415, - 4423 + 4504, + 4512 ], "loc": { "start": { - "line": 207, + "line": 213, "column": 18 }, "end": { - "line": 207, + "line": 213, "column": 26 } } @@ -6823,16 +6970,16 @@ "type": "Identifier", "name": "renderTargetX", "range": [ - 4425, - 4438 + 4514, + 4527 ], "loc": { "start": { - "line": 207, + "line": 213, "column": 28 }, "end": { - "line": 207, + "line": 213, "column": 41 } } @@ -6841,47 +6988,47 @@ "type": "Identifier", "name": "renderTargetY", "range": [ - 4440, - 4453 + 4529, + 4542 ], "loc": { "start": { - "line": 207, + "line": 213, "column": 43 }, "end": { - "line": 207, + "line": 213, "column": 56 } } } ], "range": [ - 4399, - 4454 + 4488, + 4543 ], "loc": { "start": { - "line": 207, + "line": 213, "column": 2 }, "end": { - "line": 207, + "line": 213, "column": 57 } } }, "range": [ - 4399, - 4455 + 4488, + 4544 ], "loc": { "start": { - "line": 207, + "line": 213, "column": 2 }, "end": { - "line": 207, + "line": 213, "column": 58 } }, @@ -6890,16 +7037,16 @@ "type": "Line", "value": " Convolution phase.", "range": [ - 4374, - 4395 + 4463, + 4484 ], "loc": { "start": { - "line": 206, + "line": 212, "column": 2 }, "end": { - "line": 206, + "line": 212, "column": 23 } } @@ -6910,16 +7057,16 @@ "type": "Line", "value": " Render the original scene with superimposed blur.", "range": [ - 4461, - 4513 + 4550, + 4602 ], "loc": { "start": { - "line": 209, + "line": 215, "column": 2 }, "end": { - "line": 209, + "line": 215, "column": 54 } } @@ -6938,16 +7085,16 @@ "type": "Identifier", "name": "quad", "range": [ - 4517, - 4521 + 4606, + 4610 ], "loc": { "start": { - "line": 210, + "line": 216, "column": 2 }, "end": { - "line": 210, + "line": 216, "column": 6 } } @@ -6956,31 +7103,31 @@ "type": "Identifier", "name": "material", "range": [ - 4522, - 4530 + 4611, + 4619 ], "loc": { "start": { - "line": 210, + "line": 216, "column": 7 }, "end": { - "line": 210, + "line": 216, "column": 15 } } }, "range": [ - 4517, - 4530 + 4606, + 4619 ], "loc": { "start": { - "line": 210, + "line": 216, "column": 2 }, "end": { - "line": 210, + "line": 216, "column": 15 } } @@ -6989,46 +7136,46 @@ "type": "Identifier", "name": "combineMaterial", "range": [ - 4533, - 4548 + 4622, + 4637 ], "loc": { "start": { - "line": 210, + "line": 216, "column": 18 }, "end": { - "line": 210, + "line": 216, "column": 33 } } }, "range": [ - 4517, - 4548 + 4606, + 4637 ], "loc": { "start": { - "line": 210, + "line": 216, "column": 2 }, "end": { - "line": 210, + "line": 216, "column": 33 } } }, "range": [ - 4517, - 4549 + 4606, + 4638 ], "loc": { "start": { - "line": 210, + "line": 216, "column": 2 }, "end": { - "line": 210, + "line": 216, "column": 34 } }, @@ -7037,16 +7184,16 @@ "type": "Line", "value": " Render the original scene with superimposed blur.", "range": [ - 4461, - 4513 + 4550, + 4602 ], "loc": { "start": { - "line": 209, + "line": 215, "column": 2 }, "end": { - "line": 209, + "line": 215, "column": 54 } } @@ -7071,16 +7218,16 @@ "type": "Identifier", "name": "combineMaterial", "range": [ - 4553, - 4568 + 4642, + 4657 ], "loc": { "start": { - "line": 211, + "line": 217, "column": 2 }, "end": { - "line": 211, + "line": 217, "column": 17 } } @@ -7089,31 +7236,31 @@ "type": "Identifier", "name": "uniforms", "range": [ - 4569, - 4577 + 4658, + 4666 ], "loc": { "start": { - "line": 211, + "line": 217, "column": 18 }, "end": { - "line": 211, + "line": 217, "column": 26 } } }, "range": [ - 4553, - 4577 + 4642, + 4666 ], "loc": { "start": { - "line": 211, + "line": 217, "column": 2 }, "end": { - "line": 211, + "line": 217, "column": 26 } } @@ -7122,31 +7269,31 @@ "type": "Identifier", "name": "texture1", "range": [ - 4578, - 4586 + 4667, + 4675 ], "loc": { "start": { - "line": 211, + "line": 217, "column": 27 }, "end": { - "line": 211, + "line": 217, "column": 35 } } }, "range": [ - 4553, - 4586 + 4642, + 4675 ], "loc": { "start": { - "line": 211, + "line": 217, "column": 2 }, "end": { - "line": 211, + "line": 217, "column": 35 } } @@ -7155,31 +7302,31 @@ "type": "Identifier", "name": "value", "range": [ - 4587, - 4592 + 4676, + 4681 ], "loc": { "start": { - "line": 211, + "line": 217, "column": 36 }, "end": { - "line": 211, + "line": 217, "column": 41 } } }, "range": [ - 4553, - 4592 + 4642, + 4681 ], "loc": { "start": { - "line": 211, + "line": 217, "column": 2 }, "end": { - "line": 211, + "line": 217, "column": 41 } } @@ -7191,16 +7338,16 @@ "type": "Identifier", "name": "readBuffer", "range": [ - 4595, - 4605 + 4684, + 4694 ], "loc": { "start": { - "line": 211, + "line": 217, "column": 44 }, "end": { - "line": 211, + "line": 217, "column": 54 } } @@ -7209,61 +7356,61 @@ "type": "Identifier", "name": "texture", "range": [ - 4606, - 4613 + 4695, + 4702 ], "loc": { "start": { - "line": 211, + "line": 217, "column": 55 }, "end": { - "line": 211, + "line": 217, "column": 62 } } }, "range": [ - 4595, - 4613 + 4684, + 4702 ], "loc": { "start": { - "line": 211, + "line": 217, "column": 44 }, "end": { - "line": 211, + "line": 217, "column": 62 } } }, "range": [ - 4553, - 4613 + 4642, + 4702 ], "loc": { "start": { - "line": 211, + "line": 217, "column": 2 }, "end": { - "line": 211, + "line": 217, "column": 62 } } }, "range": [ - 4553, - 4614 + 4642, + 4703 ], "loc": { "start": { - "line": 211, + "line": 217, "column": 2 }, "end": { - "line": 211, + "line": 217, "column": 63 } } @@ -7286,16 +7433,16 @@ "type": "Identifier", "name": "combineMaterial", "range": [ - 4618, - 4633 + 4707, + 4722 ], "loc": { "start": { - "line": 212, + "line": 218, "column": 2 }, "end": { - "line": 212, + "line": 218, "column": 17 } } @@ -7304,31 +7451,31 @@ "type": "Identifier", "name": "uniforms", "range": [ - 4634, - 4642 + 4723, + 4731 ], "loc": { "start": { - "line": 212, + "line": 218, "column": 18 }, "end": { - "line": 212, + "line": 218, "column": 26 } } }, "range": [ - 4618, - 4642 + 4707, + 4731 ], "loc": { "start": { - "line": 212, + "line": 218, "column": 2 }, "end": { - "line": 212, + "line": 218, "column": 26 } } @@ -7337,31 +7484,31 @@ "type": "Identifier", "name": "texture2", "range": [ - 4643, - 4651 + 4732, + 4740 ], "loc": { "start": { - "line": 212, + "line": 218, "column": 27 }, "end": { - "line": 212, + "line": 218, "column": 35 } } }, "range": [ - 4618, - 4651 + 4707, + 4740 ], "loc": { "start": { - "line": 212, + "line": 218, "column": 2 }, "end": { - "line": 212, + "line": 218, "column": 35 } } @@ -7370,31 +7517,31 @@ "type": "Identifier", "name": "value", "range": [ - 4652, - 4657 + 4741, + 4746 ], "loc": { "start": { - "line": 212, + "line": 218, "column": 36 }, "end": { - "line": 212, + "line": 218, "column": 41 } } }, "range": [ - 4618, - 4657 + 4707, + 4746 ], "loc": { "start": { - "line": 212, + "line": 218, "column": 2 }, "end": { - "line": 212, + "line": 218, "column": 41 } } @@ -7406,16 +7553,16 @@ "type": "Identifier", "name": "renderTargetY", "range": [ - 4660, - 4673 + 4749, + 4762 ], "loc": { "start": { - "line": 212, + "line": 218, "column": 44 }, "end": { - "line": 212, + "line": 218, "column": 57 } } @@ -7424,61 +7571,61 @@ "type": "Identifier", "name": "texture", "range": [ - 4674, - 4681 + 4763, + 4770 ], "loc": { "start": { - "line": 212, + "line": 218, "column": 58 }, "end": { - "line": 212, + "line": 218, "column": 65 } } }, "range": [ - 4660, - 4681 + 4749, + 4770 ], "loc": { "start": { - "line": 212, + "line": 218, "column": 44 }, "end": { - "line": 212, + "line": 218, "column": 65 } } }, "range": [ - 4618, - 4681 + 4707, + 4770 ], "loc": { "start": { - "line": 212, + "line": 218, "column": 2 }, "end": { - "line": 212, + "line": 218, "column": 65 } } }, "range": [ - 4618, - 4682 + 4707, + 4771 ], "loc": { "start": { - "line": 212, + "line": 218, "column": 2 }, "end": { - "line": 212, + "line": 218, "column": 66 } } @@ -7494,16 +7641,16 @@ "type": "Identifier", "name": "renderer", "range": [ - 4688, - 4696 + 4777, + 4785 ], "loc": { "start": { - "line": 214, + "line": 220, "column": 2 }, "end": { - "line": 214, + "line": 220, "column": 10 } } @@ -7512,31 +7659,31 @@ "type": "Identifier", "name": "render", "range": [ - 4697, - 4703 + 4786, + 4792 ], "loc": { "start": { - "line": 214, + "line": 220, "column": 11 }, "end": { - "line": 214, + "line": 220, "column": 17 } } }, "range": [ - 4688, - 4703 + 4777, + 4792 ], "loc": { "start": { - "line": 214, + "line": 220, "column": 2 }, "end": { - "line": 214, + "line": 220, "column": 17 } } @@ -7546,16 +7693,16 @@ "type": "Identifier", "name": "scene", "range": [ - 4704, - 4709 + 4793, + 4798 ], "loc": { "start": { - "line": 214, + "line": 220, "column": 18 }, "end": { - "line": 214, + "line": 220, "column": 23 } } @@ -7564,16 +7711,16 @@ "type": "Identifier", "name": "camera", "range": [ - 4711, - 4717 + 4800, + 4806 ], "loc": { "start": { - "line": 214, + "line": 220, "column": 25 }, "end": { - "line": 214, + "line": 220, "column": 31 } } @@ -7586,16 +7733,16 @@ "object": { "type": "ThisExpression", "range": [ - 4719, - 4723 + 4808, + 4812 ], "loc": { "start": { - "line": 214, + "line": 220, "column": 33 }, "end": { - "line": 214, + "line": 220, "column": 37 } } @@ -7604,31 +7751,31 @@ "type": "Identifier", "name": "renderToScreen", "range": [ - 4724, - 4738 + 4813, + 4827 ], "loc": { "start": { - "line": 214, + "line": 220, "column": 38 }, "end": { - "line": 214, + "line": 220, "column": 52 } } }, "range": [ - 4719, - 4738 + 4808, + 4827 ], "loc": { "start": { - "line": 214, + "line": 220, "column": 33 }, "end": { - "line": 214, + "line": 220, "column": 52 } } @@ -7638,16 +7785,16 @@ "value": null, "raw": "null", "range": [ - 4741, - 4745 + 4830, + 4834 ], "loc": { "start": { - "line": 214, + "line": 220, "column": 55 }, "end": { - "line": 214, + "line": 220, "column": 59 } } @@ -7656,78 +7803,78 @@ "type": "Identifier", "name": "writeBuffer", "range": [ - 4748, - 4759 + 4837, + 4848 ], "loc": { "start": { - "line": 214, + "line": 220, "column": 62 }, "end": { - "line": 214, + "line": 220, "column": 73 } } }, "range": [ - 4719, - 4759 + 4808, + 4848 ], "loc": { "start": { - "line": 214, + "line": 220, "column": 33 }, "end": { - "line": 214, + "line": 220, "column": 73 } } } ], "range": [ - 4688, - 4760 + 4777, + 4849 ], "loc": { "start": { - "line": 214, + "line": 220, "column": 2 }, "end": { - "line": 214, + "line": 220, "column": 74 } } }, "range": [ - 4688, - 4761 + 4777, + 4850 ], "loc": { "start": { - "line": 214, + "line": 220, "column": 2 }, "end": { - "line": 214, + "line": 220, "column": 75 } } } ], "range": [ - 3862, - 4767 + 3951, + 4856 ], "loc": { "start": { - "line": 188, + "line": 194, "column": 43 }, "end": { - "line": 216, + "line": 222, "column": 2 } } @@ -7735,16 +7882,16 @@ "generator": false, "expression": false, "range": [ - 3826, - 4767 + 3915, + 4856 ], "loc": { "start": { - "line": 188, + "line": 194, "column": 7 }, "end": { - "line": 216, + "line": 222, "column": 2 } } @@ -7752,16 +7899,16 @@ "kind": "method", "computed": false, "range": [ - 3820, - 4767 + 3909, + 4856 ], "loc": { "start": { - "line": 188, + "line": 194, "column": 1 }, "end": { - "line": 216, + "line": 222, "column": 2 } }, @@ -7770,16 +7917,16 @@ "type": "Block", "value": "*\r\n\t * Renders the effect.\r\n\t *\r\n\t * Extracts a luminance map from the read buffer, blurs it and combines it\r\n\t * with the read buffer.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {WebGLRenderTarget} readBuffer - The read buffer.\r\n\t * @param {WebGLRenderTarget} writeBuffer - The write buffer.\r\n\t ", "range": [ - 3488, - 3815 + 3577, + 3904 ], "loc": { "start": { - "line": 177, + "line": 183, "column": 1 }, "end": { - "line": 186, + "line": 192, "column": 4 } } @@ -7790,16 +7937,16 @@ "type": "Block", "value": "*\r\n\t * Adjusts the format of the render targets.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {Boolean} alpha - Whether the renderer uses the alpha channel or not.\r\n\t ", "range": [ - 4772, - 4968 + 4861, + 5057 ], "loc": { "start": { - "line": 218, + "line": 224, "column": 1 }, "end": { - "line": 223, + "line": 229, "column": 4 } } @@ -7813,16 +7960,16 @@ "type": "Identifier", "name": "initialise", "range": [ - 4973, - 4983 + 5062, + 5072 ], "loc": { "start": { - "line": 225, + "line": 231, "column": 1 }, "end": { - "line": 225, + "line": 231, "column": 11 } } @@ -7835,16 +7982,16 @@ "type": "Identifier", "name": "renderer", "range": [ - 4984, - 4992 + 5073, + 5081 ], "loc": { "start": { - "line": 225, + "line": 231, "column": 12 }, "end": { - "line": 225, + "line": 231, "column": 20 } } @@ -7853,16 +8000,16 @@ "type": "Identifier", "name": "alpha", "range": [ - 4994, - 4999 + 5083, + 5088 ], "loc": { "start": { - "line": 225, + "line": 231, "column": 22 }, "end": { - "line": 225, + "line": 231, "column": 27 } } @@ -7884,16 +8031,16 @@ "object": { "type": "ThisExpression", "range": [ - 5008, - 5012 + 5097, + 5101 ], "loc": { "start": { - "line": 227, + "line": 233, "column": 2 }, "end": { - "line": 227, + "line": 233, "column": 6 } } @@ -7902,31 +8049,31 @@ "type": "Identifier", "name": "blurPass", "range": [ - 5013, - 5021 + 5102, + 5110 ], "loc": { "start": { - "line": 227, + "line": 233, "column": 7 }, "end": { - "line": 227, + "line": 233, "column": 15 } } }, "range": [ - 5008, - 5021 + 5097, + 5110 ], "loc": { "start": { - "line": 227, + "line": 233, "column": 2 }, "end": { - "line": 227, + "line": 233, "column": 15 } } @@ -7935,31 +8082,31 @@ "type": "Identifier", "name": "initialise", "range": [ - 5022, - 5032 + 5111, + 5121 ], "loc": { "start": { - "line": 227, + "line": 233, "column": 16 }, "end": { - "line": 227, + "line": 233, "column": 26 } } }, "range": [ - 5008, - 5032 + 5097, + 5121 ], "loc": { "start": { - "line": 227, + "line": 233, "column": 2 }, "end": { - "line": 227, + "line": 233, "column": 26 } } @@ -7969,16 +8116,16 @@ "type": "Identifier", "name": "renderer", "range": [ - 5033, - 5041 + 5122, + 5130 ], "loc": { "start": { - "line": 227, + "line": 233, "column": 27 }, "end": { - "line": 227, + "line": 233, "column": 35 } } @@ -7987,47 +8134,47 @@ "type": "Identifier", "name": "alpha", "range": [ - 5043, - 5048 + 5132, + 5137 ], "loc": { "start": { - "line": 227, + "line": 233, "column": 37 }, "end": { - "line": 227, + "line": 233, "column": 42 } } } ], "range": [ - 5008, - 5049 + 5097, + 5138 ], "loc": { "start": { - "line": 227, + "line": 233, "column": 2 }, "end": { - "line": 227, + "line": 233, "column": 43 } } }, "range": [ - 5008, - 5050 + 5097, + 5139 ], "loc": { "start": { - "line": 227, + "line": 233, "column": 2 }, "end": { - "line": 227, + "line": 233, "column": 44 } } @@ -8041,32 +8188,32 @@ "type": "Identifier", "name": "alpha", "range": [ - 5060, - 5065 + 5149, + 5154 ], "loc": { "start": { - "line": 229, + "line": 235, "column": 6 }, "end": { - "line": 229, + "line": 235, "column": 11 } } }, "prefix": true, "range": [ - 5059, - 5065 + 5148, + 5154 ], "loc": { "start": { - "line": 229, + "line": 235, "column": 5 }, "end": { - "line": 229, + "line": 235, "column": 11 } } @@ -8091,16 +8238,16 @@ "object": { "type": "ThisExpression", "range": [ - 5075, - 5079 + 5164, + 5168 ], "loc": { "start": { - "line": 231, + "line": 237, "column": 3 }, "end": { - "line": 231, + "line": 237, "column": 7 } } @@ -8109,31 +8256,31 @@ "type": "Identifier", "name": "renderTargetX", "range": [ - 5080, - 5093 + 5169, + 5182 ], "loc": { "start": { - "line": 231, + "line": 237, "column": 8 }, "end": { - "line": 231, + "line": 237, "column": 21 } } }, "range": [ - 5075, - 5093 + 5164, + 5182 ], "loc": { "start": { - "line": 231, + "line": 237, "column": 3 }, "end": { - "line": 231, + "line": 237, "column": 21 } } @@ -8142,31 +8289,31 @@ "type": "Identifier", "name": "texture", "range": [ - 5094, - 5101 + 5183, + 5190 ], "loc": { "start": { - "line": 231, + "line": 237, "column": 22 }, "end": { - "line": 231, + "line": 237, "column": 29 } } }, "range": [ - 5075, - 5101 + 5164, + 5190 ], "loc": { "start": { - "line": 231, + "line": 237, "column": 3 }, "end": { - "line": 231, + "line": 237, "column": 29 } } @@ -8175,31 +8322,31 @@ "type": "Identifier", "name": "format", "range": [ - 5102, - 5108 + 5191, + 5197 ], "loc": { "start": { - "line": 231, + "line": 237, "column": 30 }, "end": { - "line": 231, + "line": 237, "column": 36 } } }, "range": [ - 5075, - 5108 + 5164, + 5197 ], "loc": { "start": { - "line": 231, + "line": 237, "column": 3 }, "end": { - "line": 231, + "line": 237, "column": 36 } } @@ -8208,46 +8355,46 @@ "type": "Identifier", "name": "RGBFormat", "range": [ - 5111, - 5120 + 5200, + 5209 ], "loc": { "start": { - "line": 231, + "line": 237, "column": 39 }, "end": { - "line": 231, + "line": 237, "column": 48 } } }, "range": [ - 5075, - 5120 + 5164, + 5209 ], "loc": { "start": { - "line": 231, + "line": 237, "column": 3 }, "end": { - "line": 231, + "line": 237, "column": 48 } } }, "range": [ - 5075, - 5121 + 5164, + 5210 ], "loc": { "start": { - "line": 231, + "line": 237, "column": 3 }, "end": { - "line": 231, + "line": 237, "column": 49 } } @@ -8269,16 +8416,16 @@ "object": { "type": "ThisExpression", "range": [ - 5126, - 5130 + 5215, + 5219 ], "loc": { "start": { - "line": 232, + "line": 238, "column": 3 }, "end": { - "line": 232, + "line": 238, "column": 7 } } @@ -8287,31 +8434,31 @@ "type": "Identifier", "name": "renderTargetY", "range": [ - 5131, - 5144 + 5220, + 5233 ], "loc": { "start": { - "line": 232, + "line": 238, "column": 8 }, "end": { - "line": 232, + "line": 238, "column": 21 } } }, "range": [ - 5126, - 5144 + 5215, + 5233 ], "loc": { "start": { - "line": 232, + "line": 238, "column": 3 }, "end": { - "line": 232, + "line": 238, "column": 21 } } @@ -8320,31 +8467,31 @@ "type": "Identifier", "name": "texture", "range": [ - 5145, - 5152 + 5234, + 5241 ], "loc": { "start": { - "line": 232, + "line": 238, "column": 22 }, "end": { - "line": 232, + "line": 238, "column": 29 } } }, "range": [ - 5126, - 5152 + 5215, + 5241 ], "loc": { "start": { - "line": 232, + "line": 238, "column": 3 }, "end": { - "line": 232, + "line": 238, "column": 29 } } @@ -8353,31 +8500,31 @@ "type": "Identifier", "name": "format", "range": [ - 5153, - 5159 + 5242, + 5248 ], "loc": { "start": { - "line": 232, + "line": 238, "column": 30 }, "end": { - "line": 232, + "line": 238, "column": 36 } } }, "range": [ - 5126, - 5159 + 5215, + 5248 ], "loc": { "start": { - "line": 232, + "line": 238, "column": 3 }, "end": { - "line": 232, + "line": 238, "column": 36 } } @@ -8386,94 +8533,94 @@ "type": "Identifier", "name": "RGBFormat", "range": [ - 5162, - 5171 + 5251, + 5260 ], "loc": { "start": { - "line": 232, + "line": 238, "column": 39 }, "end": { - "line": 232, + "line": 238, "column": 48 } } }, "range": [ - 5126, - 5171 + 5215, + 5260 ], "loc": { "start": { - "line": 232, + "line": 238, "column": 3 }, "end": { - "line": 232, + "line": 238, "column": 48 } } }, "range": [ - 5126, - 5172 + 5215, + 5261 ], "loc": { "start": { - "line": 232, + "line": 238, "column": 3 }, "end": { - "line": 232, + "line": 238, "column": 49 } } } ], "range": [ - 5067, - 5179 + 5156, + 5268 ], "loc": { "start": { - "line": 229, + "line": 235, "column": 13 }, "end": { - "line": 234, + "line": 240, "column": 3 } } }, "alternate": null, "range": [ - 5056, - 5179 + 5145, + 5268 ], "loc": { "start": { - "line": 229, + "line": 235, "column": 2 }, "end": { - "line": 234, + "line": 240, "column": 3 } } } ], "range": [ - 5001, - 5185 + 5090, + 5274 ], "loc": { "start": { - "line": 225, + "line": 231, "column": 29 }, "end": { - "line": 236, + "line": 242, "column": 2 } } @@ -8481,16 +8628,16 @@ "generator": false, "expression": false, "range": [ - 4983, - 5185 + 5072, + 5274 ], "loc": { "start": { - "line": 225, + "line": 231, "column": 11 }, "end": { - "line": 236, + "line": 242, "column": 2 } } @@ -8498,16 +8645,16 @@ "kind": "method", "computed": false, "range": [ - 4973, - 5185 + 5062, + 5274 ], "loc": { "start": { - "line": 225, + "line": 231, "column": 1 }, "end": { - "line": 236, + "line": 242, "column": 2 } }, @@ -8516,16 +8663,16 @@ "type": "Block", "value": "*\r\n\t * Adjusts the format of the render targets.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {Boolean} alpha - Whether the renderer uses the alpha channel or not.\r\n\t ", "range": [ - 4772, - 4968 + 4861, + 5057 ], "loc": { "start": { - "line": 218, + "line": 224, "column": 1 }, "end": { - "line": 223, + "line": 229, "column": 4 } } @@ -8536,16 +8683,16 @@ "type": "Block", "value": "*\r\n\t * Updates this pass with the renderer's size.\r\n\t *\r\n\t * @param {Number} width - The width.\r\n\t * @param {Number} height - The height.\r\n\t ", "range": [ - 5190, - 5335 + 5279, + 5424 ], "loc": { "start": { - "line": 238, + "line": 244, "column": 1 }, "end": { - "line": 243, + "line": 249, "column": 4 } } @@ -8559,16 +8706,16 @@ "type": "Identifier", "name": "setSize", "range": [ - 5340, - 5347 + 5429, + 5436 ], "loc": { "start": { - "line": 245, + "line": 251, "column": 1 }, "end": { - "line": 245, + "line": 251, "column": 8 } } @@ -8581,16 +8728,16 @@ "type": "Identifier", "name": "width", "range": [ - 5348, - 5353 + 5437, + 5442 ], "loc": { "start": { - "line": 245, + "line": 251, "column": 9 }, "end": { - "line": 245, + "line": 251, "column": 14 } } @@ -8599,16 +8746,16 @@ "type": "Identifier", "name": "height", "range": [ - 5355, - 5361 + 5444, + 5450 ], "loc": { "start": { - "line": 245, + "line": 251, "column": 16 }, "end": { - "line": 245, + "line": 251, "column": 22 } } @@ -8630,16 +8777,16 @@ "object": { "type": "ThisExpression", "range": [ - 5370, - 5374 + 5459, + 5463 ], "loc": { "start": { - "line": 247, + "line": 253, "column": 2 }, "end": { - "line": 247, + "line": 253, "column": 6 } } @@ -8648,31 +8795,31 @@ "type": "Identifier", "name": "blurPass", "range": [ - 5375, - 5383 + 5464, + 5472 ], "loc": { "start": { - "line": 247, + "line": 253, "column": 7 }, "end": { - "line": 247, + "line": 253, "column": 15 } } }, "range": [ - 5370, - 5383 + 5459, + 5472 ], "loc": { "start": { - "line": 247, + "line": 253, "column": 2 }, "end": { - "line": 247, + "line": 253, "column": 15 } } @@ -8681,31 +8828,31 @@ "type": "Identifier", "name": "setSize", "range": [ - 5384, - 5391 + 5473, + 5480 ], "loc": { "start": { - "line": 247, + "line": 253, "column": 16 }, "end": { - "line": 247, + "line": 253, "column": 23 } } }, "range": [ - 5370, - 5391 + 5459, + 5480 ], "loc": { "start": { - "line": 247, + "line": 253, "column": 2 }, "end": { - "line": 247, + "line": 253, "column": 23 } } @@ -8715,16 +8862,16 @@ "type": "Identifier", "name": "width", "range": [ - 5392, - 5397 + 5481, + 5486 ], "loc": { "start": { - "line": 247, + "line": 253, "column": 24 }, "end": { - "line": 247, + "line": 253, "column": 29 } } @@ -8733,47 +8880,47 @@ "type": "Identifier", "name": "height", "range": [ - 5399, - 5405 + 5488, + 5494 ], "loc": { "start": { - "line": 247, + "line": 253, "column": 31 }, "end": { - "line": 247, + "line": 253, "column": 37 } } } ], "range": [ - 5370, - 5406 + 5459, + 5495 ], "loc": { "start": { - "line": 247, + "line": 253, "column": 2 }, "end": { - "line": 247, + "line": 253, "column": 38 } } }, "range": [ - 5370, - 5407 + 5459, + 5496 ], "loc": { "start": { - "line": 247, + "line": 253, "column": 2 }, "end": { - "line": 247, + "line": 253, "column": 39 } } @@ -8787,16 +8934,16 @@ "type": "Identifier", "name": "width", "range": [ - 5413, - 5418 + 5502, + 5507 ], "loc": { "start": { - "line": 249, + "line": 255, "column": 2 }, "end": { - "line": 249, + "line": 255, "column": 7 } } @@ -8813,16 +8960,16 @@ "object": { "type": "ThisExpression", "range": [ - 5421, - 5425 + 5510, + 5514 ], "loc": { "start": { - "line": 249, + "line": 255, "column": 10 }, "end": { - "line": 249, + "line": 255, "column": 14 } } @@ -8831,31 +8978,31 @@ "type": "Identifier", "name": "blurPass", "range": [ - 5426, - 5434 + 5515, + 5523 ], "loc": { "start": { - "line": 249, + "line": 255, "column": 15 }, "end": { - "line": 249, + "line": 255, "column": 23 } } }, "range": [ - 5421, - 5434 + 5510, + 5523 ], "loc": { "start": { - "line": 249, + "line": 255, "column": 10 }, "end": { - "line": 249, + "line": 255, "column": 23 } } @@ -8864,31 +9011,31 @@ "type": "Identifier", "name": "renderTargetX", "range": [ - 5435, - 5448 + 5524, + 5537 ], "loc": { "start": { - "line": 249, + "line": 255, "column": 24 }, "end": { - "line": 249, + "line": 255, "column": 37 } } }, "range": [ - 5421, - 5448 + 5510, + 5537 ], "loc": { "start": { - "line": 249, + "line": 255, "column": 10 }, "end": { - "line": 249, + "line": 255, "column": 37 } } @@ -8897,61 +9044,61 @@ "type": "Identifier", "name": "width", "range": [ - 5449, - 5454 + 5538, + 5543 ], "loc": { "start": { - "line": 249, + "line": 255, "column": 38 }, "end": { - "line": 249, + "line": 255, "column": 43 } } }, "range": [ - 5421, - 5454 + 5510, + 5543 ], "loc": { "start": { - "line": 249, + "line": 255, "column": 10 }, "end": { - "line": 249, + "line": 255, "column": 43 } } }, "range": [ - 5413, - 5454 + 5502, + 5543 ], "loc": { "start": { - "line": 249, + "line": 255, "column": 2 }, "end": { - "line": 249, + "line": 255, "column": 43 } } }, "range": [ - 5413, - 5455 + 5502, + 5544 ], "loc": { "start": { - "line": 249, + "line": 255, "column": 2 }, "end": { - "line": 249, + "line": 255, "column": 44 } } @@ -8965,16 +9112,16 @@ "type": "Identifier", "name": "height", "range": [ - 5459, - 5465 + 5548, + 5554 ], "loc": { "start": { - "line": 250, + "line": 256, "column": 2 }, "end": { - "line": 250, + "line": 256, "column": 8 } } @@ -8991,16 +9138,16 @@ "object": { "type": "ThisExpression", "range": [ - 5468, - 5472 + 5557, + 5561 ], "loc": { "start": { - "line": 250, + "line": 256, "column": 11 }, "end": { - "line": 250, + "line": 256, "column": 15 } } @@ -9009,31 +9156,31 @@ "type": "Identifier", "name": "blurPass", "range": [ - 5473, - 5481 + 5562, + 5570 ], "loc": { "start": { - "line": 250, + "line": 256, "column": 16 }, "end": { - "line": 250, + "line": 256, "column": 24 } } }, "range": [ - 5468, - 5481 + 5557, + 5570 ], "loc": { "start": { - "line": 250, + "line": 256, "column": 11 }, "end": { - "line": 250, + "line": 256, "column": 24 } } @@ -9042,31 +9189,31 @@ "type": "Identifier", "name": "renderTargetX", "range": [ - 5482, - 5495 + 5571, + 5584 ], "loc": { "start": { - "line": 250, + "line": 256, "column": 25 }, "end": { - "line": 250, + "line": 256, "column": 38 } } }, "range": [ - 5468, - 5495 + 5557, + 5584 ], "loc": { "start": { - "line": 250, + "line": 256, "column": 11 }, "end": { - "line": 250, + "line": 256, "column": 38 } } @@ -9075,61 +9222,61 @@ "type": "Identifier", "name": "height", "range": [ - 5496, - 5502 + 5585, + 5591 ], "loc": { "start": { - "line": 250, + "line": 256, "column": 39 }, "end": { - "line": 250, + "line": 256, "column": 45 } } }, "range": [ - 5468, - 5502 + 5557, + 5591 ], "loc": { "start": { - "line": 250, + "line": 256, "column": 11 }, "end": { - "line": 250, + "line": 256, "column": 45 } } }, "range": [ - 5459, - 5502 + 5548, + 5591 ], "loc": { "start": { - "line": 250, + "line": 256, "column": 2 }, "end": { - "line": 250, + "line": 256, "column": 45 } } }, "range": [ - 5459, - 5503 + 5548, + 5592 ], "loc": { "start": { - "line": 250, + "line": 256, "column": 2 }, "end": { - "line": 250, + "line": 256, "column": 46 } } @@ -9147,16 +9294,16 @@ "object": { "type": "ThisExpression", "range": [ - 5509, - 5513 + 5598, + 5602 ], "loc": { "start": { - "line": 252, + "line": 258, "column": 2 }, "end": { - "line": 252, + "line": 258, "column": 6 } } @@ -9165,31 +9312,31 @@ "type": "Identifier", "name": "renderTargetX", "range": [ - 5514, - 5527 + 5603, + 5616 ], "loc": { "start": { - "line": 252, + "line": 258, "column": 7 }, "end": { - "line": 252, + "line": 258, "column": 20 } } }, "range": [ - 5509, - 5527 + 5598, + 5616 ], "loc": { "start": { - "line": 252, + "line": 258, "column": 2 }, "end": { - "line": 252, + "line": 258, "column": 20 } } @@ -9198,31 +9345,31 @@ "type": "Identifier", "name": "setSize", "range": [ - 5528, - 5535 + 5617, + 5624 ], "loc": { "start": { - "line": 252, + "line": 258, "column": 21 }, "end": { - "line": 252, + "line": 258, "column": 28 } } }, "range": [ - 5509, - 5535 + 5598, + 5624 ], "loc": { "start": { - "line": 252, + "line": 258, "column": 2 }, "end": { - "line": 252, + "line": 258, "column": 28 } } @@ -9232,16 +9379,16 @@ "type": "Identifier", "name": "width", "range": [ - 5536, - 5541 + 5625, + 5630 ], "loc": { "start": { - "line": 252, + "line": 258, "column": 29 }, "end": { - "line": 252, + "line": 258, "column": 34 } } @@ -9250,47 +9397,47 @@ "type": "Identifier", "name": "height", "range": [ - 5543, - 5549 + 5632, + 5638 ], "loc": { "start": { - "line": 252, + "line": 258, "column": 36 }, "end": { - "line": 252, + "line": 258, "column": 42 } } } ], "range": [ - 5509, - 5550 + 5598, + 5639 ], "loc": { "start": { - "line": 252, + "line": 258, "column": 2 }, "end": { - "line": 252, + "line": 258, "column": 43 } } }, "range": [ - 5509, - 5551 + 5598, + 5640 ], "loc": { "start": { - "line": 252, + "line": 258, "column": 2 }, "end": { - "line": 252, + "line": 258, "column": 44 } } @@ -9308,16 +9455,16 @@ "object": { "type": "ThisExpression", "range": [ - 5555, - 5559 + 5644, + 5648 ], "loc": { "start": { - "line": 253, + "line": 259, "column": 2 }, "end": { - "line": 253, + "line": 259, "column": 6 } } @@ -9326,31 +9473,31 @@ "type": "Identifier", "name": "renderTargetY", "range": [ - 5560, - 5573 + 5649, + 5662 ], "loc": { "start": { - "line": 253, + "line": 259, "column": 7 }, "end": { - "line": 253, + "line": 259, "column": 20 } } }, "range": [ - 5555, - 5573 + 5644, + 5662 ], "loc": { "start": { - "line": 253, + "line": 259, "column": 2 }, "end": { - "line": 253, + "line": 259, "column": 20 } } @@ -9359,31 +9506,31 @@ "type": "Identifier", "name": "setSize", "range": [ - 5574, - 5581 + 5663, + 5670 ], "loc": { "start": { - "line": 253, + "line": 259, "column": 21 }, "end": { - "line": 253, + "line": 259, "column": 28 } } }, "range": [ - 5555, - 5581 + 5644, + 5670 ], "loc": { "start": { - "line": 253, + "line": 259, "column": 2 }, "end": { - "line": 253, + "line": 259, "column": 28 } } @@ -9393,16 +9540,16 @@ "type": "Identifier", "name": "width", "range": [ - 5582, - 5587 + 5671, + 5676 ], "loc": { "start": { - "line": 253, + "line": 259, "column": 29 }, "end": { - "line": 253, + "line": 259, "column": 34 } } @@ -9411,63 +9558,63 @@ "type": "Identifier", "name": "height", "range": [ - 5589, - 5595 + 5678, + 5684 ], "loc": { "start": { - "line": 253, + "line": 259, "column": 36 }, "end": { - "line": 253, + "line": 259, "column": 42 } } } ], "range": [ - 5555, - 5596 + 5644, + 5685 ], "loc": { "start": { - "line": 253, + "line": 259, "column": 2 }, "end": { - "line": 253, + "line": 259, "column": 43 } } }, "range": [ - 5555, - 5597 + 5644, + 5686 ], "loc": { "start": { - "line": 253, + "line": 259, "column": 2 }, "end": { - "line": 253, + "line": 259, "column": 44 } } } ], "range": [ - 5363, - 5603 + 5452, + 5692 ], "loc": { "start": { - "line": 245, + "line": 251, "column": 24 }, "end": { - "line": 255, + "line": 261, "column": 2 } } @@ -9475,16 +9622,16 @@ "generator": false, "expression": false, "range": [ - 5347, - 5603 + 5436, + 5692 ], "loc": { "start": { - "line": 245, + "line": 251, "column": 8 }, "end": { - "line": 255, + "line": 261, "column": 2 } } @@ -9492,16 +9639,16 @@ "kind": "method", "computed": false, "range": [ - 5340, - 5603 + 5429, + 5692 ], "loc": { "start": { - "line": 245, + "line": 251, "column": 1 }, "end": { - "line": 255, + "line": 261, "column": 2 } }, @@ -9510,16 +9657,16 @@ "type": "Block", "value": "*\r\n\t * Updates this pass with the renderer's size.\r\n\t *\r\n\t * @param {Number} width - The width.\r\n\t * @param {Number} height - The height.\r\n\t ", "range": [ - 5190, - 5335 + 5279, + 5424 ], "loc": { "start": { - "line": 238, + "line": 244, "column": 1 }, "end": { - "line": 243, + "line": 249, "column": 4 } } @@ -9530,7 +9677,7 @@ ], "range": [ 359, - 5608 + 5697 ], "loc": { "start": { @@ -9538,14 +9685,14 @@ "column": 36 }, "end": { - "line": 257, + "line": 263, "column": 1 } } }, "range": [ 330, - 5608 + 5697 ], "loc": { "start": { @@ -9553,7 +9700,7 @@ "column": 7 }, "end": { - "line": 257, + "line": 263, "column": 1 } }, @@ -9583,7 +9730,7 @@ "source": null, "range": [ 323, - 5608 + 5697 ], "loc": { "start": { @@ -9591,7 +9738,7 @@ "column": 0 }, "end": { - "line": 257, + "line": 263, "column": 1 } }, @@ -9620,7 +9767,7 @@ "sourceType": "module", "range": [ 0, - 5608 + 5697 ], "loc": { "start": { @@ -9628,7 +9775,7 @@ "column": 0 }, "end": { - "line": 257, + "line": 263, "column": 1 } }, @@ -9689,10 +9836,10 @@ }, { "type": "Block", - "value": "*\r\n\t\t * A blur pass.\r\n\t\t *\r\n\t\t * @type {BlurPass}\r\n\t\t * @private\r\n\t\t ", + "value": "*\r\n\t\t * This pass renders to the write buffer.\r\n\t\t ", "range": [ 1174, - 1247 + 1229 ], "loc": { "start": { @@ -9700,7 +9847,25 @@ "column": 2 }, "end": { - "line": 41, + "line": 38, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\r\n\t\t * A blur pass.\r\n\t\t *\r\n\t\t * @type {BlurPass}\r\n\t\t * @private\r\n\t\t ", + "range": [ + 1263, + 1336 + ], + "loc": { + "start": { + "line": 42, + "column": 2 + }, + "end": { + "line": 47, "column": 5 } } @@ -9709,16 +9874,16 @@ "type": "Block", "value": "*\r\n\t\t * A render target.\r\n\t\t *\r\n\t\t * @type {WebGLRenderTarget}\r\n\t\t * @private\r\n\t\t ", "range": [ - 1297, - 1383 + 1386, + 1472 ], "loc": { "start": { - "line": 45, + "line": 51, "column": 2 }, "end": { - "line": 50, + "line": 56, "column": 5 } } @@ -9727,16 +9892,16 @@ "type": "Block", "value": "*\r\n\t\t * A second render target.\r\n\t\t *\r\n\t\t * @type {WebGLRenderTarget}\r\n\t\t * @private\r\n\t\t ", "range": [ - 1508, - 1601 + 1597, + 1690 ], "loc": { "start": { - "line": 56, + "line": 62, "column": 2 }, "end": { - "line": 61, + "line": 67, "column": 5 } } @@ -9745,16 +9910,16 @@ "type": "Block", "value": "*\r\n\t\t * A combine shader material.\r\n\t\t *\r\n\t\t * @type {CombineMaterial}\r\n\t\t * @private\r\n\t\t ", "range": [ - 1726, - 1820 + 1815, + 1909 ], "loc": { "start": { - "line": 67, + "line": 73, "column": 2 }, "end": { - "line": 72, + "line": 78, "column": 5 } } @@ -9763,16 +9928,16 @@ "type": "Block", "value": "*\r\n\t\t * A luminosity shader material.\r\n\t\t *\r\n\t\t * @type {LuminosityMaterial}\r\n\t\t * @private\r\n\t\t ", "range": [ - 1980, - 2080 + 2069, + 2169 ], "loc": { "start": { - "line": 78, + "line": 84, "column": 2 }, "end": { - "line": 83, + "line": 89, "column": 5 } } @@ -9781,16 +9946,16 @@ "type": "Block", "value": "*\r\n\t * The resolution scale.\r\n\t *\r\n\t * @type {Number}\r\n\t * @default 0.5\r\n\t ", "range": [ - 2197, - 2276 + 2286, + 2365 ], "loc": { "start": { - "line": 91, + "line": 97, "column": 1 }, "end": { - "line": 96, + "line": 102, "column": 4 } } @@ -9799,16 +9964,16 @@ "type": "Block", "value": "*\r\n\t * You need to call {@link EffectComposer#setSize} after changing this value.\r\n\t *\r\n\t * @type {Number}\r\n\t ", "range": [ - 2349, - 2463 + 2438, + 2552 ], "loc": { "start": { - "line": 100, + "line": 106, "column": 1 }, "end": { - "line": 104, + "line": 110, "column": 4 } } @@ -9817,16 +9982,16 @@ "type": "Block", "value": "*\r\n\t * The blur kernel size.\r\n\t *\r\n\t * @type {KernelSize}\r\n\t * @default KernelSize.LARGE\r\n\t ", "range": [ - 2543, - 2639 + 2632, + 2728 ], "loc": { "start": { - "line": 112, + "line": 118, "column": 1 }, "end": { - "line": 117, + "line": 123, "column": 4 } } @@ -9835,16 +10000,16 @@ "type": "Block", "value": "*\r\n\t * @type {KernelSize}\r\n\t ", "range": [ - 2702, - 2735 + 2791, + 2824 ], "loc": { "start": { - "line": 121, + "line": 127, "column": 1 }, "end": { - "line": 123, + "line": 129, "column": 4 } } @@ -9853,16 +10018,16 @@ "type": "Block", "value": "*\r\n\t * The overall intensity of the effect.\r\n\t *\r\n\t * @type {Number}\r\n\t * @default 1.0\r\n\t ", "range": [ - 2805, - 2899 + 2894, + 2988 ], "loc": { "start": { - "line": 131, + "line": 137, "column": 1 }, "end": { - "line": 136, + "line": 142, "column": 4 } } @@ -9871,16 +10036,16 @@ "type": "Block", "value": "*\r\n\t * @type {Number}\r\n\t ", "range": [ - 2981, - 3010 + 3070, + 3099 ], "loc": { "start": { - "line": 140, + "line": 146, "column": 1 }, "end": { - "line": 142, + "line": 148, "column": 4 } } @@ -9889,16 +10054,16 @@ "type": "Block", "value": "*\r\n\t * The luminance distinction factor.\r\n\t *\r\n\t * @type {Number}\r\n\t * @default 1.0\r\n\t ", "range": [ - 3140, - 3231 + 3229, + 3320 ], "loc": { "start": { - "line": 154, + "line": 160, "column": 1 }, "end": { - "line": 159, + "line": 165, "column": 4 } } @@ -9907,16 +10072,16 @@ "type": "Block", "value": "*\r\n\t * @type {Number}\r\n\t ", "range": [ - 3321, - 3350 + 3410, + 3439 ], "loc": { "start": { - "line": 163, + "line": 169, "column": 1 }, "end": { - "line": 165, + "line": 171, "column": 4 } } @@ -9925,16 +10090,16 @@ "type": "Block", "value": "*\r\n\t * Renders the effect.\r\n\t *\r\n\t * Extracts a luminance map from the read buffer, blurs it and combines it\r\n\t * with the read buffer.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {WebGLRenderTarget} readBuffer - The read buffer.\r\n\t * @param {WebGLRenderTarget} writeBuffer - The write buffer.\r\n\t ", "range": [ - 3488, - 3815 + 3577, + 3904 ], "loc": { "start": { - "line": 177, + "line": 183, "column": 1 }, "end": { - "line": 186, + "line": 192, "column": 4 } } @@ -9943,16 +10108,16 @@ "type": "Line", "value": " Luminance filter.", "range": [ - 4191, - 4211 + 4280, + 4300 ], "loc": { "start": { - "line": 201, + "line": 207, "column": 2 }, "end": { - "line": 201, + "line": 207, "column": 22 } } @@ -9961,16 +10126,16 @@ "type": "Line", "value": " Convolution phase.", "range": [ - 4374, - 4395 + 4463, + 4484 ], "loc": { "start": { - "line": 206, + "line": 212, "column": 2 }, "end": { - "line": 206, + "line": 212, "column": 23 } } @@ -9979,16 +10144,16 @@ "type": "Line", "value": " Render the original scene with superimposed blur.", "range": [ - 4461, - 4513 + 4550, + 4602 ], "loc": { "start": { - "line": 209, + "line": 215, "column": 2 }, "end": { - "line": 209, + "line": 215, "column": 54 } } @@ -9997,16 +10162,16 @@ "type": "Block", "value": "*\r\n\t * Adjusts the format of the render targets.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {Boolean} alpha - Whether the renderer uses the alpha channel or not.\r\n\t ", "range": [ - 4772, - 4968 + 4861, + 5057 ], "loc": { "start": { - "line": 218, + "line": 224, "column": 1 }, "end": { - "line": 223, + "line": 229, "column": 4 } } @@ -10015,16 +10180,16 @@ "type": "Block", "value": "*\r\n\t * Updates this pass with the renderer's size.\r\n\t *\r\n\t * @param {Number} width - The width.\r\n\t * @param {Number} height - The height.\r\n\t ", "range": [ - 5190, - 5335 + 5279, + 5424 ], "loc": { "start": { - "line": 238, + "line": 244, "column": 1 }, "end": { - "line": 243, + "line": 249, "column": 4 } } diff --git a/docs/ast/source/passes/glitch.js.json b/docs/ast/source/passes/glitch.js.json index 29248b9e6..287759caa 100644 --- a/docs/ast/source/passes/glitch.js.json +++ b/docs/ast/source/passes/glitch.js.json @@ -4040,10 +4040,10 @@ "trailingComments": [ { "type": "Block", - "value": "*\r\n\t * Destroys the current perturbation map and creates a new one.\r\n\t *\r\n\t * @param {Number} [size=64] - The texture size.\r\n\t * @return {DataTexture} The perturbation texture.\r\n\t ", + "value": "*\r\n\t * Destroys the current perturbation map and replaces it with a new one.\r\n\t *\r\n\t * @param {Number} [size=64] - The texture size.\r\n\t * @return {DataTexture} The perturbation texture.\r\n\t ", "range": [ 2739, - 2923 + 2932 ], "loc": { "start": { @@ -4065,8 +4065,8 @@ "type": "Identifier", "name": "generatePerturbMap", "range": [ - 2928, - 2946 + 2937, + 2955 ], "loc": { "start": { @@ -4089,8 +4089,8 @@ "type": "Identifier", "name": "size", "range": [ - 2947, - 2951 + 2956, + 2960 ], "loc": { "start": { @@ -4108,8 +4108,8 @@ "value": 64, "raw": "64", "range": [ - 2954, - 2956 + 2963, + 2965 ], "loc": { "start": { @@ -4123,8 +4123,8 @@ } }, "range": [ - 2947, - 2956 + 2956, + 2965 ], "loc": { "start": { @@ -4150,8 +4150,8 @@ "type": "Identifier", "name": "pixels", "range": [ - 2971, - 2977 + 2980, + 2986 ], "loc": { "start": { @@ -4171,8 +4171,8 @@ "type": "Identifier", "name": "size", "range": [ - 2980, - 2984 + 2989, + 2993 ], "loc": { "start": { @@ -4189,8 +4189,8 @@ "type": "Identifier", "name": "size", "range": [ - 2987, - 2991 + 2996, + 3000 ], "loc": { "start": { @@ -4204,8 +4204,8 @@ } }, "range": [ - 2980, - 2991 + 2989, + 3000 ], "loc": { "start": { @@ -4219,8 +4219,8 @@ } }, "range": [ - 2971, - 2991 + 2980, + 3000 ], "loc": { "start": { @@ -4236,8 +4236,8 @@ ], "kind": "const", "range": [ - 2965, - 2992 + 2974, + 3001 ], "loc": { "start": { @@ -4259,8 +4259,8 @@ "type": "Identifier", "name": "data", "range": [ - 3002, - 3006 + 3011, + 3015 ], "loc": { "start": { @@ -4279,8 +4279,8 @@ "type": "Identifier", "name": "Float32Array", "range": [ - 3013, - 3025 + 3022, + 3034 ], "loc": { "start": { @@ -4301,8 +4301,8 @@ "type": "Identifier", "name": "pixels", "range": [ - 3026, - 3032 + 3035, + 3041 ], "loc": { "start": { @@ -4320,8 +4320,8 @@ "value": 3, "raw": "3", "range": [ - 3035, - 3036 + 3044, + 3045 ], "loc": { "start": { @@ -4335,8 +4335,8 @@ } }, "range": [ - 3026, - 3036 + 3035, + 3045 ], "loc": { "start": { @@ -4351,8 +4351,8 @@ } ], "range": [ - 3009, - 3037 + 3018, + 3046 ], "loc": { "start": { @@ -4366,8 +4366,8 @@ } }, "range": [ - 3002, - 3037 + 3011, + 3046 ], "loc": { "start": { @@ -4383,8 +4383,8 @@ ], "kind": "const", "range": [ - 2996, - 3038 + 3005, + 3047 ], "loc": { "start": { @@ -4406,8 +4406,8 @@ "type": "Identifier", "name": "dt", "range": [ - 3048, - 3050 + 3057, + 3059 ], "loc": { "start": { @@ -4426,8 +4426,8 @@ "object": { "type": "ThisExpression", "range": [ - 3053, - 3057 + 3062, + 3066 ], "loc": { "start": { @@ -4444,8 +4444,8 @@ "type": "Identifier", "name": "perturbMap", "range": [ - 3058, - 3068 + 3067, + 3077 ], "loc": { "start": { @@ -4459,8 +4459,8 @@ } }, "range": [ - 3053, - 3068 + 3062, + 3077 ], "loc": { "start": { @@ -4474,8 +4474,8 @@ } }, "range": [ - 3048, - 3068 + 3057, + 3077 ], "loc": { "start": { @@ -4491,8 +4491,8 @@ ], "kind": "let", "range": [ - 3044, - 3069 + 3053, + 3078 ], "loc": { "start": { @@ -4514,8 +4514,8 @@ "type": "Identifier", "name": "i", "range": [ - 3077, - 3078 + 3086, + 3087 ], "loc": { "start": { @@ -4530,8 +4530,8 @@ }, "init": null, "range": [ - 3077, - 3078 + 3086, + 3087 ], "loc": { "start": { @@ -4550,8 +4550,8 @@ "type": "Identifier", "name": "x", "range": [ - 3080, - 3081 + 3089, + 3090 ], "loc": { "start": { @@ -4566,8 +4566,8 @@ }, "init": null, "range": [ - 3080, - 3081 + 3089, + 3090 ], "loc": { "start": { @@ -4583,8 +4583,8 @@ ], "kind": "let", "range": [ - 3073, - 3082 + 3082, + 3091 ], "loc": { "start": { @@ -4606,8 +4606,8 @@ "type": "Identifier", "name": "i", "range": [ - 3092, - 3093 + 3101, + 3102 ], "loc": { "start": { @@ -4625,8 +4625,8 @@ "value": 0, "raw": "0", "range": [ - 3096, - 3097 + 3105, + 3106 ], "loc": { "start": { @@ -4640,8 +4640,8 @@ } }, "range": [ - 3092, - 3097 + 3101, + 3106 ], "loc": { "start": { @@ -4661,8 +4661,8 @@ "type": "Identifier", "name": "i", "range": [ - 3099, - 3100 + 3108, + 3109 ], "loc": { "start": { @@ -4679,8 +4679,8 @@ "type": "Identifier", "name": "pixels", "range": [ - 3103, - 3109 + 3112, + 3118 ], "loc": { "start": { @@ -4694,8 +4694,8 @@ } }, "range": [ - 3099, - 3109 + 3108, + 3118 ], "loc": { "start": { @@ -4715,8 +4715,8 @@ "type": "Identifier", "name": "i", "range": [ - 3113, - 3114 + 3122, + 3123 ], "loc": { "start": { @@ -4731,8 +4731,8 @@ }, "prefix": true, "range": [ - 3111, - 3114 + 3120, + 3123 ], "loc": { "start": { @@ -4757,8 +4757,8 @@ "type": "Identifier", "name": "x", "range": [ - 3124, - 3125 + 3133, + 3134 ], "loc": { "start": { @@ -4780,8 +4780,8 @@ "type": "Identifier", "name": "Math", "range": [ - 3128, - 3132 + 3137, + 3141 ], "loc": { "start": { @@ -4798,8 +4798,8 @@ "type": "Identifier", "name": "random", "range": [ - 3133, - 3139 + 3142, + 3148 ], "loc": { "start": { @@ -4813,8 +4813,8 @@ } }, "range": [ - 3128, - 3139 + 3137, + 3148 ], "loc": { "start": { @@ -4829,8 +4829,8 @@ }, "arguments": [], "range": [ - 3128, - 3141 + 3137, + 3150 ], "loc": { "start": { @@ -4844,8 +4844,8 @@ } }, "range": [ - 3124, - 3141 + 3133, + 3150 ], "loc": { "start": { @@ -4859,8 +4859,8 @@ } }, "range": [ - 3124, - 3142 + 3133, + 3151 ], "loc": { "start": { @@ -4885,8 +4885,8 @@ "type": "Identifier", "name": "data", "range": [ - 3149, - 3153 + 3158, + 3162 ], "loc": { "start": { @@ -4906,8 +4906,8 @@ "type": "Identifier", "name": "i", "range": [ - 3154, - 3155 + 3163, + 3164 ], "loc": { "start": { @@ -4925,8 +4925,8 @@ "value": 3, "raw": "3", "range": [ - 3158, - 3159 + 3167, + 3168 ], "loc": { "start": { @@ -4940,8 +4940,8 @@ } }, "range": [ - 3154, - 3159 + 3163, + 3168 ], "loc": { "start": { @@ -4955,8 +4955,8 @@ } }, "range": [ - 3149, - 3160 + 3158, + 3169 ], "loc": { "start": { @@ -4973,8 +4973,8 @@ "type": "Identifier", "name": "x", "range": [ - 3163, - 3164 + 3172, + 3173 ], "loc": { "start": { @@ -4988,8 +4988,8 @@ } }, "range": [ - 3149, - 3164 + 3158, + 3173 ], "loc": { "start": { @@ -5003,8 +5003,8 @@ } }, "range": [ - 3149, - 3165 + 3158, + 3174 ], "loc": { "start": { @@ -5029,8 +5029,8 @@ "type": "Identifier", "name": "data", "range": [ - 3170, - 3174 + 3179, + 3183 ], "loc": { "start": { @@ -5053,8 +5053,8 @@ "type": "Identifier", "name": "i", "range": [ - 3175, - 3176 + 3184, + 3185 ], "loc": { "start": { @@ -5072,8 +5072,8 @@ "value": 3, "raw": "3", "range": [ - 3179, - 3180 + 3188, + 3189 ], "loc": { "start": { @@ -5087,8 +5087,8 @@ } }, "range": [ - 3175, - 3180 + 3184, + 3189 ], "loc": { "start": { @@ -5106,8 +5106,8 @@ "value": 1, "raw": "1", "range": [ - 3183, - 3184 + 3192, + 3193 ], "loc": { "start": { @@ -5121,8 +5121,8 @@ } }, "range": [ - 3175, - 3184 + 3184, + 3193 ], "loc": { "start": { @@ -5136,8 +5136,8 @@ } }, "range": [ - 3170, - 3185 + 3179, + 3194 ], "loc": { "start": { @@ -5154,8 +5154,8 @@ "type": "Identifier", "name": "x", "range": [ - 3188, - 3189 + 3197, + 3198 ], "loc": { "start": { @@ -5169,8 +5169,8 @@ } }, "range": [ - 3170, - 3189 + 3179, + 3198 ], "loc": { "start": { @@ -5184,8 +5184,8 @@ } }, "range": [ - 3170, - 3190 + 3179, + 3199 ], "loc": { "start": { @@ -5210,8 +5210,8 @@ "type": "Identifier", "name": "data", "range": [ - 3195, - 3199 + 3204, + 3208 ], "loc": { "start": { @@ -5234,8 +5234,8 @@ "type": "Identifier", "name": "i", "range": [ - 3200, - 3201 + 3209, + 3210 ], "loc": { "start": { @@ -5253,8 +5253,8 @@ "value": 3, "raw": "3", "range": [ - 3204, - 3205 + 3213, + 3214 ], "loc": { "start": { @@ -5268,8 +5268,8 @@ } }, "range": [ - 3200, - 3205 + 3209, + 3214 ], "loc": { "start": { @@ -5287,8 +5287,8 @@ "value": 2, "raw": "2", "range": [ - 3208, - 3209 + 3217, + 3218 ], "loc": { "start": { @@ -5302,8 +5302,8 @@ } }, "range": [ - 3200, - 3209 + 3209, + 3218 ], "loc": { "start": { @@ -5317,8 +5317,8 @@ } }, "range": [ - 3195, - 3210 + 3204, + 3219 ], "loc": { "start": { @@ -5335,8 +5335,8 @@ "type": "Identifier", "name": "x", "range": [ - 3213, - 3214 + 3222, + 3223 ], "loc": { "start": { @@ -5350,8 +5350,8 @@ } }, "range": [ - 3195, - 3214 + 3204, + 3223 ], "loc": { "start": { @@ -5365,8 +5365,8 @@ } }, "range": [ - 3195, - 3215 + 3204, + 3224 ], "loc": { "start": { @@ -5381,8 +5381,8 @@ } ], "range": [ - 3116, - 3222 + 3125, + 3231 ], "loc": { "start": { @@ -5396,8 +5396,8 @@ } }, "range": [ - 3088, - 3222 + 3097, + 3231 ], "loc": { "start": { @@ -5419,8 +5419,8 @@ "type": "Identifier", "name": "dt", "range": [ - 3231, - 3233 + 3240, + 3242 ], "loc": { "start": { @@ -5438,8 +5438,8 @@ "value": null, "raw": "null", "range": [ - 3238, - 3242 + 3247, + 3251 ], "loc": { "start": { @@ -5453,8 +5453,8 @@ } }, "range": [ - 3231, - 3242 + 3240, + 3251 ], "loc": { "start": { @@ -5481,8 +5481,8 @@ "type": "Identifier", "name": "dt", "range": [ - 3252, - 3254 + 3261, + 3263 ], "loc": { "start": { @@ -5499,8 +5499,8 @@ "type": "Identifier", "name": "dispose", "range": [ - 3255, - 3262 + 3264, + 3271 ], "loc": { "start": { @@ -5514,8 +5514,8 @@ } }, "range": [ - 3252, - 3262 + 3261, + 3271 ], "loc": { "start": { @@ -5530,8 +5530,8 @@ }, "arguments": [], "range": [ - 3252, - 3264 + 3261, + 3273 ], "loc": { "start": { @@ -5545,8 +5545,8 @@ } }, "range": [ - 3252, - 3265 + 3261, + 3274 ], "loc": { "start": { @@ -5561,8 +5561,8 @@ } ], "range": [ - 3244, - 3272 + 3253, + 3281 ], "loc": { "start": { @@ -5577,8 +5577,8 @@ }, "alternate": null, "range": [ - 3228, - 3272 + 3237, + 3281 ], "loc": { "start": { @@ -5600,8 +5600,8 @@ "type": "Identifier", "name": "dt", "range": [ - 3278, - 3280 + 3287, + 3289 ], "loc": { "start": { @@ -5620,8 +5620,8 @@ "type": "Identifier", "name": "DataTexture", "range": [ - 3287, - 3298 + 3296, + 3307 ], "loc": { "start": { @@ -5639,8 +5639,8 @@ "type": "Identifier", "name": "data", "range": [ - 3299, - 3303 + 3308, + 3312 ], "loc": { "start": { @@ -5657,8 +5657,8 @@ "type": "Identifier", "name": "size", "range": [ - 3305, - 3309 + 3314, + 3318 ], "loc": { "start": { @@ -5675,8 +5675,8 @@ "type": "Identifier", "name": "size", "range": [ - 3311, - 3315 + 3320, + 3324 ], "loc": { "start": { @@ -5693,8 +5693,8 @@ "type": "Identifier", "name": "RGBFormat", "range": [ - 3317, - 3326 + 3326, + 3335 ], "loc": { "start": { @@ -5711,8 +5711,8 @@ "type": "Identifier", "name": "FloatType", "range": [ - 3328, - 3337 + 3337, + 3346 ], "loc": { "start": { @@ -5727,8 +5727,8 @@ } ], "range": [ - 3283, - 3338 + 3292, + 3347 ], "loc": { "start": { @@ -5742,8 +5742,8 @@ } }, "range": [ - 3278, - 3338 + 3287, + 3347 ], "loc": { "start": { @@ -5757,8 +5757,8 @@ } }, "range": [ - 3278, - 3339 + 3287, + 3348 ], "loc": { "start": { @@ -5783,8 +5783,8 @@ "type": "Identifier", "name": "dt", "range": [ - 3343, - 3345 + 3352, + 3354 ], "loc": { "start": { @@ -5801,8 +5801,8 @@ "type": "Identifier", "name": "needsUpdate", "range": [ - 3346, - 3357 + 3355, + 3366 ], "loc": { "start": { @@ -5816,8 +5816,8 @@ } }, "range": [ - 3343, - 3357 + 3352, + 3366 ], "loc": { "start": { @@ -5835,8 +5835,8 @@ "value": true, "raw": "true", "range": [ - 3360, - 3364 + 3369, + 3373 ], "loc": { "start": { @@ -5850,8 +5850,8 @@ } }, "range": [ - 3343, - 3364 + 3352, + 3373 ], "loc": { "start": { @@ -5865,8 +5865,8 @@ } }, "range": [ - 3343, - 3365 + 3352, + 3374 ], "loc": { "start": { @@ -5890,8 +5890,8 @@ "object": { "type": "ThisExpression", "range": [ - 3371, - 3375 + 3380, + 3384 ], "loc": { "start": { @@ -5908,8 +5908,8 @@ "type": "Identifier", "name": "perturbMap", "range": [ - 3376, - 3386 + 3385, + 3395 ], "loc": { "start": { @@ -5923,8 +5923,8 @@ } }, "range": [ - 3371, - 3386 + 3380, + 3395 ], "loc": { "start": { @@ -5941,8 +5941,8 @@ "type": "Identifier", "name": "dt", "range": [ - 3389, - 3391 + 3398, + 3400 ], "loc": { "start": { @@ -5956,8 +5956,8 @@ } }, "range": [ - 3371, - 3391 + 3380, + 3400 ], "loc": { "start": { @@ -5971,8 +5971,8 @@ } }, "range": [ - 3371, - 3392 + 3380, + 3401 ], "loc": { "start": { @@ -5991,8 +5991,8 @@ "type": "Identifier", "name": "dt", "range": [ - 3405, - 3407 + 3414, + 3416 ], "loc": { "start": { @@ -6006,8 +6006,8 @@ } }, "range": [ - 3398, - 3408 + 3407, + 3417 ], "loc": { "start": { @@ -6022,8 +6022,8 @@ } ], "range": [ - 2958, - 3414 + 2967, + 3423 ], "loc": { "start": { @@ -6039,8 +6039,8 @@ "generator": false, "expression": false, "range": [ - 2946, - 3414 + 2955, + 3423 ], "loc": { "start": { @@ -6056,8 +6056,8 @@ "kind": "method", "computed": false, "range": [ - 2928, - 3414 + 2937, + 3423 ], "loc": { "start": { @@ -6072,10 +6072,10 @@ "leadingComments": [ { "type": "Block", - "value": "*\r\n\t * Destroys the current perturbation map and creates a new one.\r\n\t *\r\n\t * @param {Number} [size=64] - The texture size.\r\n\t * @return {DataTexture} The perturbation texture.\r\n\t ", + "value": "*\r\n\t * Destroys the current perturbation map and replaces it with a new one.\r\n\t *\r\n\t * @param {Number} [size=64] - The texture size.\r\n\t * @return {DataTexture} The perturbation texture.\r\n\t ", "range": [ 2739, - 2923 + 2932 ], "loc": { "start": { @@ -6094,8 +6094,8 @@ "type": "Block", "value": "*\r\n\t * Renders the effect.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {WebGLRenderTarget} readBuffer - The read buffer.\r\n\t * @param {WebGLRenderTarget} writeBuffer - The write buffer.\r\n\t ", "range": [ - 3419, - 3637 + 3428, + 3646 ], "loc": { "start": { @@ -6117,8 +6117,8 @@ "type": "Identifier", "name": "render", "range": [ - 3642, - 3648 + 3651, + 3657 ], "loc": { "start": { @@ -6139,8 +6139,8 @@ "type": "Identifier", "name": "renderer", "range": [ - 3649, - 3657 + 3658, + 3666 ], "loc": { "start": { @@ -6157,8 +6157,8 @@ "type": "Identifier", "name": "readBuffer", "range": [ - 3659, - 3669 + 3668, + 3678 ], "loc": { "start": { @@ -6175,8 +6175,8 @@ "type": "Identifier", "name": "writeBuffer", "range": [ - 3671, - 3682 + 3680, + 3691 ], "loc": { "start": { @@ -6202,8 +6202,8 @@ "type": "Identifier", "name": "mode", "range": [ - 3697, - 3701 + 3706, + 3710 ], "loc": { "start": { @@ -6222,8 +6222,8 @@ "object": { "type": "ThisExpression", "range": [ - 3704, - 3708 + 3713, + 3717 ], "loc": { "start": { @@ -6240,8 +6240,8 @@ "type": "Identifier", "name": "mode", "range": [ - 3709, - 3713 + 3718, + 3722 ], "loc": { "start": { @@ -6255,8 +6255,8 @@ } }, "range": [ - 3704, - 3713 + 3713, + 3722 ], "loc": { "start": { @@ -6270,8 +6270,8 @@ } }, "range": [ - 3697, - 3713 + 3706, + 3722 ], "loc": { "start": { @@ -6287,8 +6287,8 @@ ], "kind": "const", "range": [ - 3691, - 3714 + 3700, + 3723 ], "loc": { "start": { @@ -6310,8 +6310,8 @@ "type": "Identifier", "name": "counter", "range": [ - 3724, - 3731 + 3733, + 3740 ], "loc": { "start": { @@ -6330,8 +6330,8 @@ "object": { "type": "ThisExpression", "range": [ - 3734, - 3738 + 3743, + 3747 ], "loc": { "start": { @@ -6348,8 +6348,8 @@ "type": "Identifier", "name": "counter", "range": [ - 3739, - 3746 + 3748, + 3755 ], "loc": { "start": { @@ -6363,8 +6363,8 @@ } }, "range": [ - 3734, - 3746 + 3743, + 3755 ], "loc": { "start": { @@ -6378,8 +6378,8 @@ } }, "range": [ - 3724, - 3746 + 3733, + 3755 ], "loc": { "start": { @@ -6395,8 +6395,8 @@ ], "kind": "const", "range": [ - 3718, - 3747 + 3727, + 3756 ], "loc": { "start": { @@ -6418,8 +6418,8 @@ "type": "Identifier", "name": "breakPoint", "range": [ - 3757, - 3767 + 3766, + 3776 ], "loc": { "start": { @@ -6438,8 +6438,8 @@ "object": { "type": "ThisExpression", "range": [ - 3770, - 3774 + 3779, + 3783 ], "loc": { "start": { @@ -6456,8 +6456,8 @@ "type": "Identifier", "name": "breakPoint", "range": [ - 3775, - 3785 + 3784, + 3794 ], "loc": { "start": { @@ -6471,8 +6471,8 @@ } }, "range": [ - 3770, - 3785 + 3779, + 3794 ], "loc": { "start": { @@ -6486,8 +6486,8 @@ } }, "range": [ - 3757, - 3785 + 3766, + 3794 ], "loc": { "start": { @@ -6503,8 +6503,8 @@ ], "kind": "const", "range": [ - 3751, - 3786 + 3760, + 3795 ], "loc": { "start": { @@ -6526,8 +6526,8 @@ "type": "Identifier", "name": "uniforms", "range": [ - 3796, - 3804 + 3805, + 3813 ], "loc": { "start": { @@ -6549,8 +6549,8 @@ "object": { "type": "ThisExpression", "range": [ - 3807, - 3811 + 3816, + 3820 ], "loc": { "start": { @@ -6567,8 +6567,8 @@ "type": "Identifier", "name": "material", "range": [ - 3812, - 3820 + 3821, + 3829 ], "loc": { "start": { @@ -6582,8 +6582,8 @@ } }, "range": [ - 3807, - 3820 + 3816, + 3829 ], "loc": { "start": { @@ -6600,8 +6600,8 @@ "type": "Identifier", "name": "uniforms", "range": [ - 3821, - 3829 + 3830, + 3838 ], "loc": { "start": { @@ -6615,8 +6615,8 @@ } }, "range": [ - 3807, - 3829 + 3816, + 3838 ], "loc": { "start": { @@ -6630,8 +6630,8 @@ } }, "range": [ - 3796, - 3829 + 3805, + 3838 ], "loc": { "start": { @@ -6647,8 +6647,8 @@ ], "kind": "const", "range": [ - 3790, - 3830 + 3799, + 3839 ], "loc": { "start": { @@ -6676,8 +6676,8 @@ "type": "Identifier", "name": "uniforms", "range": [ - 3836, - 3844 + 3845, + 3853 ], "loc": { "start": { @@ -6694,8 +6694,8 @@ "type": "Identifier", "name": "tDiffuse", "range": [ - 3845, - 3853 + 3854, + 3862 ], "loc": { "start": { @@ -6709,8 +6709,8 @@ } }, "range": [ - 3836, - 3853 + 3845, + 3862 ], "loc": { "start": { @@ -6727,8 +6727,8 @@ "type": "Identifier", "name": "value", "range": [ - 3854, - 3859 + 3863, + 3868 ], "loc": { "start": { @@ -6742,8 +6742,8 @@ } }, "range": [ - 3836, - 3859 + 3845, + 3868 ], "loc": { "start": { @@ -6763,8 +6763,8 @@ "type": "Identifier", "name": "readBuffer", "range": [ - 3862, - 3872 + 3871, + 3881 ], "loc": { "start": { @@ -6781,8 +6781,8 @@ "type": "Identifier", "name": "texture", "range": [ - 3873, - 3880 + 3882, + 3889 ], "loc": { "start": { @@ -6796,8 +6796,8 @@ } }, "range": [ - 3862, - 3880 + 3871, + 3889 ], "loc": { "start": { @@ -6811,8 +6811,8 @@ } }, "range": [ - 3836, - 3880 + 3845, + 3889 ], "loc": { "start": { @@ -6826,8 +6826,8 @@ } }, "range": [ - 3836, - 3881 + 3845, + 3890 ], "loc": { "start": { @@ -6855,8 +6855,8 @@ "type": "Identifier", "name": "uniforms", "range": [ - 3885, - 3893 + 3894, + 3902 ], "loc": { "start": { @@ -6873,8 +6873,8 @@ "type": "Identifier", "name": "seed", "range": [ - 3894, - 3898 + 3903, + 3907 ], "loc": { "start": { @@ -6888,8 +6888,8 @@ } }, "range": [ - 3885, - 3898 + 3894, + 3907 ], "loc": { "start": { @@ -6906,8 +6906,8 @@ "type": "Identifier", "name": "value", "range": [ - 3899, - 3904 + 3908, + 3913 ], "loc": { "start": { @@ -6921,8 +6921,8 @@ } }, "range": [ - 3885, - 3904 + 3894, + 3913 ], "loc": { "start": { @@ -6944,8 +6944,8 @@ "type": "Identifier", "name": "Math", "range": [ - 3907, - 3911 + 3916, + 3920 ], "loc": { "start": { @@ -6962,8 +6962,8 @@ "type": "Identifier", "name": "random", "range": [ - 3912, - 3918 + 3921, + 3927 ], "loc": { "start": { @@ -6977,8 +6977,8 @@ } }, "range": [ - 3907, - 3918 + 3916, + 3927 ], "loc": { "start": { @@ -6993,8 +6993,8 @@ }, "arguments": [], "range": [ - 3907, - 3920 + 3916, + 3929 ], "loc": { "start": { @@ -7008,8 +7008,8 @@ } }, "range": [ - 3885, - 3920 + 3894, + 3929 ], "loc": { "start": { @@ -7023,8 +7023,8 @@ } }, "range": [ - 3885, - 3921 + 3894, + 3930 ], "loc": { "start": { @@ -7052,8 +7052,8 @@ "type": "Identifier", "name": "uniforms", "range": [ - 3925, - 3933 + 3934, + 3942 ], "loc": { "start": { @@ -7070,8 +7070,8 @@ "type": "Identifier", "name": "active", "range": [ - 3934, - 3940 + 3943, + 3949 ], "loc": { "start": { @@ -7085,8 +7085,8 @@ } }, "range": [ - 3925, - 3940 + 3934, + 3949 ], "loc": { "start": { @@ -7103,8 +7103,8 @@ "type": "Identifier", "name": "value", "range": [ - 3941, - 3946 + 3950, + 3955 ], "loc": { "start": { @@ -7118,8 +7118,8 @@ } }, "range": [ - 3925, - 3946 + 3934, + 3955 ], "loc": { "start": { @@ -7137,8 +7137,8 @@ "value": true, "raw": "true", "range": [ - 3949, - 3953 + 3958, + 3962 ], "loc": { "start": { @@ -7152,8 +7152,8 @@ } }, "range": [ - 3925, - 3953 + 3934, + 3962 ], "loc": { "start": { @@ -7167,8 +7167,8 @@ } }, "range": [ - 3925, - 3954 + 3934, + 3963 ], "loc": { "start": { @@ -7196,8 +7196,8 @@ "type": "Identifier", "name": "counter", "range": [ - 3963, - 3970 + 3972, + 3979 ], "loc": { "start": { @@ -7214,8 +7214,8 @@ "type": "Identifier", "name": "breakPoint", "range": [ - 3973, - 3983 + 3982, + 3992 ], "loc": { "start": { @@ -7229,8 +7229,8 @@ } }, "range": [ - 3963, - 3983 + 3972, + 3992 ], "loc": { "start": { @@ -7248,8 +7248,8 @@ "value": 0, "raw": "0", "range": [ - 3988, - 3989 + 3997, + 3998 ], "loc": { "start": { @@ -7263,8 +7263,8 @@ } }, "range": [ - 3963, - 3989 + 3972, + 3998 ], "loc": { "start": { @@ -7284,8 +7284,8 @@ "type": "Identifier", "name": "mode", "range": [ - 3993, - 3997 + 4002, + 4006 ], "loc": { "start": { @@ -7305,8 +7305,8 @@ "type": "Identifier", "name": "GlitchMode", "range": [ - 4002, - 4012 + 4011, + 4021 ], "loc": { "start": { @@ -7323,8 +7323,8 @@ "type": "Identifier", "name": "CONSTANT_WILD", "range": [ - 4013, - 4026 + 4022, + 4035 ], "loc": { "start": { @@ -7338,8 +7338,8 @@ } }, "range": [ - 4002, - 4026 + 4011, + 4035 ], "loc": { "start": { @@ -7353,8 +7353,8 @@ } }, "range": [ - 3993, - 4026 + 4002, + 4035 ], "loc": { "start": { @@ -7368,8 +7368,8 @@ } }, "range": [ - 3963, - 4026 + 3972, + 4035 ], "loc": { "start": { @@ -7400,8 +7400,8 @@ "type": "Identifier", "name": "uniforms", "range": [ - 4036, - 4044 + 4045, + 4053 ], "loc": { "start": { @@ -7418,8 +7418,8 @@ "type": "Identifier", "name": "amount", "range": [ - 4045, - 4051 + 4054, + 4060 ], "loc": { "start": { @@ -7433,8 +7433,8 @@ } }, "range": [ - 4036, - 4051 + 4045, + 4060 ], "loc": { "start": { @@ -7451,8 +7451,8 @@ "type": "Identifier", "name": "value", "range": [ - 4052, - 4057 + 4061, + 4066 ], "loc": { "start": { @@ -7466,8 +7466,8 @@ } }, "range": [ - 4036, - 4057 + 4045, + 4066 ], "loc": { "start": { @@ -7492,8 +7492,8 @@ "type": "Identifier", "name": "Math", "range": [ - 4060, - 4064 + 4069, + 4073 ], "loc": { "start": { @@ -7510,8 +7510,8 @@ "type": "Identifier", "name": "random", "range": [ - 4065, - 4071 + 4074, + 4080 ], "loc": { "start": { @@ -7525,8 +7525,8 @@ } }, "range": [ - 4060, - 4071 + 4069, + 4080 ], "loc": { "start": { @@ -7541,8 +7541,8 @@ }, "arguments": [], "range": [ - 4060, - 4073 + 4069, + 4082 ], "loc": { "start": { @@ -7560,8 +7560,8 @@ "value": 30, "raw": "30.0", "range": [ - 4076, - 4080 + 4085, + 4089 ], "loc": { "start": { @@ -7575,8 +7575,8 @@ } }, "range": [ - 4060, - 4080 + 4069, + 4089 ], "loc": { "start": { @@ -7590,8 +7590,8 @@ } }, "range": [ - 4036, - 4080 + 4045, + 4089 ], "loc": { "start": { @@ -7605,8 +7605,8 @@ } }, "range": [ - 4036, - 4081 + 4045, + 4090 ], "loc": { "start": { @@ -7634,8 +7634,8 @@ "type": "Identifier", "name": "uniforms", "range": [ - 4086, - 4094 + 4095, + 4103 ], "loc": { "start": { @@ -7652,8 +7652,8 @@ "type": "Identifier", "name": "angle", "range": [ - 4095, - 4100 + 4104, + 4109 ], "loc": { "start": { @@ -7667,8 +7667,8 @@ } }, "range": [ - 4086, - 4100 + 4095, + 4109 ], "loc": { "start": { @@ -7685,8 +7685,8 @@ "type": "Identifier", "name": "value", "range": [ - 4101, - 4106 + 4110, + 4115 ], "loc": { "start": { @@ -7700,8 +7700,8 @@ } }, "range": [ - 4086, - 4106 + 4095, + 4115 ], "loc": { "start": { @@ -7720,8 +7720,8 @@ "type": "Identifier", "name": "randomFloat", "range": [ - 4109, - 4120 + 4118, + 4129 ], "loc": { "start": { @@ -7745,8 +7745,8 @@ "type": "Identifier", "name": "Math", "range": [ - 4122, - 4126 + 4131, + 4135 ], "loc": { "start": { @@ -7763,8 +7763,8 @@ "type": "Identifier", "name": "PI", "range": [ - 4127, - 4129 + 4136, + 4138 ], "loc": { "start": { @@ -7778,8 +7778,8 @@ } }, "range": [ - 4122, - 4129 + 4131, + 4138 ], "loc": { "start": { @@ -7794,8 +7794,8 @@ }, "prefix": true, "range": [ - 4121, - 4129 + 4130, + 4138 ], "loc": { "start": { @@ -7815,8 +7815,8 @@ "type": "Identifier", "name": "Math", "range": [ - 4131, - 4135 + 4140, + 4144 ], "loc": { "start": { @@ -7833,8 +7833,8 @@ "type": "Identifier", "name": "PI", "range": [ - 4136, - 4138 + 4145, + 4147 ], "loc": { "start": { @@ -7848,8 +7848,8 @@ } }, "range": [ - 4131, - 4138 + 4140, + 4147 ], "loc": { "start": { @@ -7864,8 +7864,8 @@ } ], "range": [ - 4109, - 4139 + 4118, + 4148 ], "loc": { "start": { @@ -7879,8 +7879,8 @@ } }, "range": [ - 4086, - 4139 + 4095, + 4148 ], "loc": { "start": { @@ -7894,8 +7894,8 @@ } }, "range": [ - 4086, - 4140 + 4095, + 4149 ], "loc": { "start": { @@ -7923,8 +7923,8 @@ "type": "Identifier", "name": "uniforms", "range": [ - 4145, - 4153 + 4154, + 4162 ], "loc": { "start": { @@ -7941,8 +7941,8 @@ "type": "Identifier", "name": "seedX", "range": [ - 4154, - 4159 + 4163, + 4168 ], "loc": { "start": { @@ -7956,8 +7956,8 @@ } }, "range": [ - 4145, - 4159 + 4154, + 4168 ], "loc": { "start": { @@ -7974,8 +7974,8 @@ "type": "Identifier", "name": "value", "range": [ - 4160, - 4165 + 4169, + 4174 ], "loc": { "start": { @@ -7989,8 +7989,8 @@ } }, "range": [ - 4145, - 4165 + 4154, + 4174 ], "loc": { "start": { @@ -8009,8 +8009,8 @@ "type": "Identifier", "name": "randomFloat", "range": [ - 4168, - 4179 + 4177, + 4188 ], "loc": { "start": { @@ -8032,8 +8032,8 @@ "value": 1, "raw": "1.0", "range": [ - 4181, - 4184 + 4190, + 4193 ], "loc": { "start": { @@ -8048,8 +8048,8 @@ }, "prefix": true, "range": [ - 4180, - 4184 + 4189, + 4193 ], "loc": { "start": { @@ -8067,8 +8067,8 @@ "value": 1, "raw": "1.0", "range": [ - 4186, - 4189 + 4195, + 4198 ], "loc": { "start": { @@ -8083,8 +8083,8 @@ } ], "range": [ - 4168, - 4190 + 4177, + 4199 ], "loc": { "start": { @@ -8098,8 +8098,8 @@ } }, "range": [ - 4145, - 4190 + 4154, + 4199 ], "loc": { "start": { @@ -8113,8 +8113,8 @@ } }, "range": [ - 4145, - 4191 + 4154, + 4200 ], "loc": { "start": { @@ -8142,8 +8142,8 @@ "type": "Identifier", "name": "uniforms", "range": [ - 4196, - 4204 + 4205, + 4213 ], "loc": { "start": { @@ -8160,8 +8160,8 @@ "type": "Identifier", "name": "seedY", "range": [ - 4205, - 4210 + 4214, + 4219 ], "loc": { "start": { @@ -8175,8 +8175,8 @@ } }, "range": [ - 4196, - 4210 + 4205, + 4219 ], "loc": { "start": { @@ -8193,8 +8193,8 @@ "type": "Identifier", "name": "value", "range": [ - 4211, - 4216 + 4220, + 4225 ], "loc": { "start": { @@ -8208,8 +8208,8 @@ } }, "range": [ - 4196, - 4216 + 4205, + 4225 ], "loc": { "start": { @@ -8228,8 +8228,8 @@ "type": "Identifier", "name": "randomFloat", "range": [ - 4219, - 4230 + 4228, + 4239 ], "loc": { "start": { @@ -8251,8 +8251,8 @@ "value": 1, "raw": "1.0", "range": [ - 4232, - 4235 + 4241, + 4244 ], "loc": { "start": { @@ -8267,8 +8267,8 @@ }, "prefix": true, "range": [ - 4231, - 4235 + 4240, + 4244 ], "loc": { "start": { @@ -8286,8 +8286,8 @@ "value": 1, "raw": "1.0", "range": [ - 4237, - 4240 + 4246, + 4249 ], "loc": { "start": { @@ -8302,8 +8302,8 @@ } ], "range": [ - 4219, - 4241 + 4228, + 4250 ], "loc": { "start": { @@ -8317,8 +8317,8 @@ } }, "range": [ - 4196, - 4241 + 4205, + 4250 ], "loc": { "start": { @@ -8332,8 +8332,8 @@ } }, "range": [ - 4196, - 4242 + 4205, + 4251 ], "loc": { "start": { @@ -8361,8 +8361,8 @@ "type": "Identifier", "name": "uniforms", "range": [ - 4247, - 4255 + 4256, + 4264 ], "loc": { "start": { @@ -8379,8 +8379,8 @@ "type": "Identifier", "name": "distortionX", "range": [ - 4256, - 4267 + 4265, + 4276 ], "loc": { "start": { @@ -8394,8 +8394,8 @@ } }, "range": [ - 4247, - 4267 + 4256, + 4276 ], "loc": { "start": { @@ -8412,8 +8412,8 @@ "type": "Identifier", "name": "value", "range": [ - 4268, - 4273 + 4277, + 4282 ], "loc": { "start": { @@ -8427,8 +8427,8 @@ } }, "range": [ - 4247, - 4273 + 4256, + 4282 ], "loc": { "start": { @@ -8447,8 +8447,8 @@ "type": "Identifier", "name": "randomFloat", "range": [ - 4276, - 4287 + 4285, + 4296 ], "loc": { "start": { @@ -8467,8 +8467,8 @@ "value": 0, "raw": "0.0", "range": [ - 4288, - 4291 + 4297, + 4300 ], "loc": { "start": { @@ -8486,8 +8486,8 @@ "value": 1, "raw": "1.0", "range": [ - 4293, - 4296 + 4302, + 4305 ], "loc": { "start": { @@ -8502,8 +8502,8 @@ } ], "range": [ - 4276, - 4297 + 4285, + 4306 ], "loc": { "start": { @@ -8517,8 +8517,8 @@ } }, "range": [ - 4247, - 4297 + 4256, + 4306 ], "loc": { "start": { @@ -8532,8 +8532,8 @@ } }, "range": [ - 4247, - 4298 + 4256, + 4307 ], "loc": { "start": { @@ -8561,8 +8561,8 @@ "type": "Identifier", "name": "uniforms", "range": [ - 4303, - 4311 + 4312, + 4320 ], "loc": { "start": { @@ -8579,8 +8579,8 @@ "type": "Identifier", "name": "distortionY", "range": [ - 4312, - 4323 + 4321, + 4332 ], "loc": { "start": { @@ -8594,8 +8594,8 @@ } }, "range": [ - 4303, - 4323 + 4312, + 4332 ], "loc": { "start": { @@ -8612,8 +8612,8 @@ "type": "Identifier", "name": "value", "range": [ - 4324, - 4329 + 4333, + 4338 ], "loc": { "start": { @@ -8627,8 +8627,8 @@ } }, "range": [ - 4303, - 4329 + 4312, + 4338 ], "loc": { "start": { @@ -8647,8 +8647,8 @@ "type": "Identifier", "name": "randomFloat", "range": [ - 4332, - 4343 + 4341, + 4352 ], "loc": { "start": { @@ -8667,8 +8667,8 @@ "value": 0, "raw": "0.0", "range": [ - 4344, - 4347 + 4353, + 4356 ], "loc": { "start": { @@ -8686,8 +8686,8 @@ "value": 1, "raw": "1.0", "range": [ - 4349, - 4352 + 4358, + 4361 ], "loc": { "start": { @@ -8702,8 +8702,8 @@ } ], "range": [ - 4332, - 4353 + 4341, + 4362 ], "loc": { "start": { @@ -8717,8 +8717,8 @@ } }, "range": [ - 4303, - 4353 + 4312, + 4362 ], "loc": { "start": { @@ -8732,8 +8732,8 @@ } }, "range": [ - 4303, - 4354 + 4312, + 4363 ], "loc": { "start": { @@ -8757,8 +8757,8 @@ "object": { "type": "ThisExpression", "range": [ - 4361, - 4365 + 4370, + 4374 ], "loc": { "start": { @@ -8775,8 +8775,8 @@ "type": "Identifier", "name": "breakPoint", "range": [ - 4366, - 4376 + 4375, + 4385 ], "loc": { "start": { @@ -8790,8 +8790,8 @@ } }, "range": [ - 4361, - 4376 + 4370, + 4385 ], "loc": { "start": { @@ -8810,8 +8810,8 @@ "type": "Identifier", "name": "randomInt", "range": [ - 4379, - 4388 + 4388, + 4397 ], "loc": { "start": { @@ -8830,8 +8830,8 @@ "value": 120, "raw": "120", "range": [ - 4389, - 4392 + 4398, + 4401 ], "loc": { "start": { @@ -8849,8 +8849,8 @@ "value": 240, "raw": "240", "range": [ - 4394, - 4397 + 4403, + 4406 ], "loc": { "start": { @@ -8865,8 +8865,8 @@ } ], "range": [ - 4379, - 4398 + 4388, + 4407 ], "loc": { "start": { @@ -8880,8 +8880,8 @@ } }, "range": [ - 4361, - 4398 + 4370, + 4407 ], "loc": { "start": { @@ -8895,8 +8895,8 @@ } }, "range": [ - 4361, - 4399 + 4370, + 4408 ], "loc": { "start": { @@ -8920,8 +8920,8 @@ "object": { "type": "ThisExpression", "range": [ - 4404, - 4408 + 4413, + 4417 ], "loc": { "start": { @@ -8938,8 +8938,8 @@ "type": "Identifier", "name": "counter", "range": [ - 4409, - 4416 + 4418, + 4425 ], "loc": { "start": { @@ -8953,8 +8953,8 @@ } }, "range": [ - 4404, - 4416 + 4413, + 4425 ], "loc": { "start": { @@ -8972,8 +8972,8 @@ "value": 0, "raw": "0", "range": [ - 4419, - 4420 + 4428, + 4429 ], "loc": { "start": { @@ -8987,8 +8987,8 @@ } }, "range": [ - 4404, - 4420 + 4413, + 4429 ], "loc": { "start": { @@ -9002,8 +9002,8 @@ } }, "range": [ - 4404, - 4421 + 4413, + 4430 ], "loc": { "start": { @@ -9018,8 +9018,8 @@ } ], "range": [ - 4028, - 4428 + 4037, + 4437 ], "loc": { "start": { @@ -9050,8 +9050,8 @@ "type": "Identifier", "name": "counter", "range": [ - 4445, - 4452 + 4454, + 4461 ], "loc": { "start": { @@ -9068,8 +9068,8 @@ "type": "Identifier", "name": "breakPoint", "range": [ - 4455, - 4465 + 4464, + 4474 ], "loc": { "start": { @@ -9083,8 +9083,8 @@ } }, "range": [ - 4445, - 4465 + 4454, + 4474 ], "loc": { "start": { @@ -9104,8 +9104,8 @@ "type": "Identifier", "name": "breakPoint", "range": [ - 4468, - 4478 + 4477, + 4487 ], "loc": { "start": { @@ -9123,8 +9123,8 @@ "value": 5, "raw": "5", "range": [ - 4481, - 4482 + 4490, + 4491 ], "loc": { "start": { @@ -9138,8 +9138,8 @@ } }, "range": [ - 4468, - 4482 + 4477, + 4491 ], "loc": { "start": { @@ -9153,8 +9153,8 @@ } }, "range": [ - 4445, - 4482 + 4454, + 4491 ], "loc": { "start": { @@ -9174,8 +9174,8 @@ "type": "Identifier", "name": "mode", "range": [ - 4486, - 4490 + 4495, + 4499 ], "loc": { "start": { @@ -9195,8 +9195,8 @@ "type": "Identifier", "name": "GlitchMode", "range": [ - 4495, - 4505 + 4504, + 4514 ], "loc": { "start": { @@ -9213,8 +9213,8 @@ "type": "Identifier", "name": "CONSTANT_MILD", "range": [ - 4506, - 4519 + 4515, + 4528 ], "loc": { "start": { @@ -9228,8 +9228,8 @@ } }, "range": [ - 4495, - 4519 + 4504, + 4528 ], "loc": { "start": { @@ -9243,8 +9243,8 @@ } }, "range": [ - 4486, - 4519 + 4495, + 4528 ], "loc": { "start": { @@ -9258,8 +9258,8 @@ } }, "range": [ - 4445, - 4519 + 4454, + 4528 ], "loc": { "start": { @@ -9290,8 +9290,8 @@ "type": "Identifier", "name": "uniforms", "range": [ - 4530, - 4538 + 4539, + 4547 ], "loc": { "start": { @@ -9308,8 +9308,8 @@ "type": "Identifier", "name": "amount", "range": [ - 4539, - 4545 + 4548, + 4554 ], "loc": { "start": { @@ -9323,8 +9323,8 @@ } }, "range": [ - 4530, - 4545 + 4539, + 4554 ], "loc": { "start": { @@ -9341,8 +9341,8 @@ "type": "Identifier", "name": "value", "range": [ - 4546, - 4551 + 4555, + 4560 ], "loc": { "start": { @@ -9356,8 +9356,8 @@ } }, "range": [ - 4530, - 4551 + 4539, + 4560 ], "loc": { "start": { @@ -9382,8 +9382,8 @@ "type": "Identifier", "name": "Math", "range": [ - 4554, - 4558 + 4563, + 4567 ], "loc": { "start": { @@ -9400,8 +9400,8 @@ "type": "Identifier", "name": "random", "range": [ - 4559, - 4565 + 4568, + 4574 ], "loc": { "start": { @@ -9415,8 +9415,8 @@ } }, "range": [ - 4554, - 4565 + 4563, + 4574 ], "loc": { "start": { @@ -9431,8 +9431,8 @@ }, "arguments": [], "range": [ - 4554, - 4567 + 4563, + 4576 ], "loc": { "start": { @@ -9450,8 +9450,8 @@ "value": 90, "raw": "90.0", "range": [ - 4570, - 4574 + 4579, + 4583 ], "loc": { "start": { @@ -9465,8 +9465,8 @@ } }, "range": [ - 4554, - 4574 + 4563, + 4583 ], "loc": { "start": { @@ -9480,8 +9480,8 @@ } }, "range": [ - 4530, - 4574 + 4539, + 4583 ], "loc": { "start": { @@ -9495,8 +9495,8 @@ } }, "range": [ - 4530, - 4575 + 4539, + 4584 ], "loc": { "start": { @@ -9524,8 +9524,8 @@ "type": "Identifier", "name": "uniforms", "range": [ - 4581, - 4589 + 4590, + 4598 ], "loc": { "start": { @@ -9542,8 +9542,8 @@ "type": "Identifier", "name": "angle", "range": [ - 4590, - 4595 + 4599, + 4604 ], "loc": { "start": { @@ -9557,8 +9557,8 @@ } }, "range": [ - 4581, - 4595 + 4590, + 4604 ], "loc": { "start": { @@ -9575,8 +9575,8 @@ "type": "Identifier", "name": "value", "range": [ - 4596, - 4601 + 4605, + 4610 ], "loc": { "start": { @@ -9590,8 +9590,8 @@ } }, "range": [ - 4581, - 4601 + 4590, + 4610 ], "loc": { "start": { @@ -9610,8 +9610,8 @@ "type": "Identifier", "name": "randomFloat", "range": [ - 4604, - 4615 + 4613, + 4624 ], "loc": { "start": { @@ -9635,8 +9635,8 @@ "type": "Identifier", "name": "Math", "range": [ - 4617, - 4621 + 4626, + 4630 ], "loc": { "start": { @@ -9653,8 +9653,8 @@ "type": "Identifier", "name": "PI", "range": [ - 4622, - 4624 + 4631, + 4633 ], "loc": { "start": { @@ -9668,8 +9668,8 @@ } }, "range": [ - 4617, - 4624 + 4626, + 4633 ], "loc": { "start": { @@ -9684,8 +9684,8 @@ }, "prefix": true, "range": [ - 4616, - 4624 + 4625, + 4633 ], "loc": { "start": { @@ -9705,8 +9705,8 @@ "type": "Identifier", "name": "Math", "range": [ - 4626, - 4630 + 4635, + 4639 ], "loc": { "start": { @@ -9723,8 +9723,8 @@ "type": "Identifier", "name": "PI", "range": [ - 4631, - 4633 + 4640, + 4642 ], "loc": { "start": { @@ -9738,8 +9738,8 @@ } }, "range": [ - 4626, - 4633 + 4635, + 4642 ], "loc": { "start": { @@ -9754,8 +9754,8 @@ } ], "range": [ - 4604, - 4634 + 4613, + 4643 ], "loc": { "start": { @@ -9769,8 +9769,8 @@ } }, "range": [ - 4581, - 4634 + 4590, + 4643 ], "loc": { "start": { @@ -9784,8 +9784,8 @@ } }, "range": [ - 4581, - 4635 + 4590, + 4644 ], "loc": { "start": { @@ -9813,8 +9813,8 @@ "type": "Identifier", "name": "uniforms", "range": [ - 4641, - 4649 + 4650, + 4658 ], "loc": { "start": { @@ -9831,8 +9831,8 @@ "type": "Identifier", "name": "distortionX", "range": [ - 4650, - 4661 + 4659, + 4670 ], "loc": { "start": { @@ -9846,8 +9846,8 @@ } }, "range": [ - 4641, - 4661 + 4650, + 4670 ], "loc": { "start": { @@ -9864,8 +9864,8 @@ "type": "Identifier", "name": "value", "range": [ - 4662, - 4667 + 4671, + 4676 ], "loc": { "start": { @@ -9879,8 +9879,8 @@ } }, "range": [ - 4641, - 4667 + 4650, + 4676 ], "loc": { "start": { @@ -9899,8 +9899,8 @@ "type": "Identifier", "name": "randomFloat", "range": [ - 4670, - 4681 + 4679, + 4690 ], "loc": { "start": { @@ -9919,8 +9919,8 @@ "value": 0, "raw": "0.0", "range": [ - 4682, - 4685 + 4691, + 4694 ], "loc": { "start": { @@ -9938,8 +9938,8 @@ "value": 1, "raw": "1.0", "range": [ - 4687, - 4690 + 4696, + 4699 ], "loc": { "start": { @@ -9954,8 +9954,8 @@ } ], "range": [ - 4670, - 4691 + 4679, + 4700 ], "loc": { "start": { @@ -9969,8 +9969,8 @@ } }, "range": [ - 4641, - 4691 + 4650, + 4700 ], "loc": { "start": { @@ -9984,8 +9984,8 @@ } }, "range": [ - 4641, - 4692 + 4650, + 4701 ], "loc": { "start": { @@ -10013,8 +10013,8 @@ "type": "Identifier", "name": "uniforms", "range": [ - 4698, - 4706 + 4707, + 4715 ], "loc": { "start": { @@ -10031,8 +10031,8 @@ "type": "Identifier", "name": "distortionY", "range": [ - 4707, - 4718 + 4716, + 4727 ], "loc": { "start": { @@ -10046,8 +10046,8 @@ } }, "range": [ - 4698, - 4718 + 4707, + 4727 ], "loc": { "start": { @@ -10064,8 +10064,8 @@ "type": "Identifier", "name": "value", "range": [ - 4719, - 4724 + 4728, + 4733 ], "loc": { "start": { @@ -10079,8 +10079,8 @@ } }, "range": [ - 4698, - 4724 + 4707, + 4733 ], "loc": { "start": { @@ -10099,8 +10099,8 @@ "type": "Identifier", "name": "randomFloat", "range": [ - 4727, - 4738 + 4736, + 4747 ], "loc": { "start": { @@ -10119,8 +10119,8 @@ "value": 0, "raw": "0.0", "range": [ - 4739, - 4742 + 4748, + 4751 ], "loc": { "start": { @@ -10138,8 +10138,8 @@ "value": 1, "raw": "1.0", "range": [ - 4744, - 4747 + 4753, + 4756 ], "loc": { "start": { @@ -10154,8 +10154,8 @@ } ], "range": [ - 4727, - 4748 + 4736, + 4757 ], "loc": { "start": { @@ -10169,8 +10169,8 @@ } }, "range": [ - 4698, - 4748 + 4707, + 4757 ], "loc": { "start": { @@ -10184,8 +10184,8 @@ } }, "range": [ - 4698, - 4749 + 4707, + 4758 ], "loc": { "start": { @@ -10213,8 +10213,8 @@ "type": "Identifier", "name": "uniforms", "range": [ - 4755, - 4763 + 4764, + 4772 ], "loc": { "start": { @@ -10231,8 +10231,8 @@ "type": "Identifier", "name": "seedX", "range": [ - 4764, - 4769 + 4773, + 4778 ], "loc": { "start": { @@ -10246,8 +10246,8 @@ } }, "range": [ - 4755, - 4769 + 4764, + 4778 ], "loc": { "start": { @@ -10264,8 +10264,8 @@ "type": "Identifier", "name": "value", "range": [ - 4770, - 4775 + 4779, + 4784 ], "loc": { "start": { @@ -10279,8 +10279,8 @@ } }, "range": [ - 4755, - 4775 + 4764, + 4784 ], "loc": { "start": { @@ -10299,8 +10299,8 @@ "type": "Identifier", "name": "randomFloat", "range": [ - 4778, - 4789 + 4787, + 4798 ], "loc": { "start": { @@ -10322,8 +10322,8 @@ "value": 0.3, "raw": "0.3", "range": [ - 4791, - 4794 + 4800, + 4803 ], "loc": { "start": { @@ -10338,8 +10338,8 @@ }, "prefix": true, "range": [ - 4790, - 4794 + 4799, + 4803 ], "loc": { "start": { @@ -10357,8 +10357,8 @@ "value": 0.3, "raw": "0.3", "range": [ - 4796, - 4799 + 4805, + 4808 ], "loc": { "start": { @@ -10373,8 +10373,8 @@ } ], "range": [ - 4778, - 4800 + 4787, + 4809 ], "loc": { "start": { @@ -10388,8 +10388,8 @@ } }, "range": [ - 4755, - 4800 + 4764, + 4809 ], "loc": { "start": { @@ -10403,8 +10403,8 @@ } }, "range": [ - 4755, - 4801 + 4764, + 4810 ], "loc": { "start": { @@ -10432,8 +10432,8 @@ "type": "Identifier", "name": "uniforms", "range": [ - 4807, - 4815 + 4816, + 4824 ], "loc": { "start": { @@ -10450,8 +10450,8 @@ "type": "Identifier", "name": "seedY", "range": [ - 4816, - 4821 + 4825, + 4830 ], "loc": { "start": { @@ -10465,8 +10465,8 @@ } }, "range": [ - 4807, - 4821 + 4816, + 4830 ], "loc": { "start": { @@ -10483,8 +10483,8 @@ "type": "Identifier", "name": "value", "range": [ - 4822, - 4827 + 4831, + 4836 ], "loc": { "start": { @@ -10498,8 +10498,8 @@ } }, "range": [ - 4807, - 4827 + 4816, + 4836 ], "loc": { "start": { @@ -10518,8 +10518,8 @@ "type": "Identifier", "name": "randomFloat", "range": [ - 4830, - 4841 + 4839, + 4850 ], "loc": { "start": { @@ -10541,8 +10541,8 @@ "value": 0.3, "raw": "0.3", "range": [ - 4843, - 4846 + 4852, + 4855 ], "loc": { "start": { @@ -10557,8 +10557,8 @@ }, "prefix": true, "range": [ - 4842, - 4846 + 4851, + 4855 ], "loc": { "start": { @@ -10576,8 +10576,8 @@ "value": 0.3, "raw": "0.3", "range": [ - 4848, - 4851 + 4857, + 4860 ], "loc": { "start": { @@ -10592,8 +10592,8 @@ } ], "range": [ - 4830, - 4852 + 4839, + 4861 ], "loc": { "start": { @@ -10607,8 +10607,8 @@ } }, "range": [ - 4807, - 4852 + 4816, + 4861 ], "loc": { "start": { @@ -10622,8 +10622,8 @@ } }, "range": [ - 4807, - 4853 + 4816, + 4862 ], "loc": { "start": { @@ -10638,8 +10638,8 @@ } ], "range": [ - 4521, - 4861 + 4530, + 4870 ], "loc": { "start": { @@ -10670,8 +10670,8 @@ "type": "Identifier", "name": "uniforms", "range": [ - 4894, - 4902 + 4903, + 4911 ], "loc": { "start": { @@ -10688,8 +10688,8 @@ "type": "Identifier", "name": "active", "range": [ - 4903, - 4909 + 4912, + 4918 ], "loc": { "start": { @@ -10703,8 +10703,8 @@ } }, "range": [ - 4894, - 4909 + 4903, + 4918 ], "loc": { "start": { @@ -10721,8 +10721,8 @@ "type": "Identifier", "name": "value", "range": [ - 4910, - 4915 + 4919, + 4924 ], "loc": { "start": { @@ -10736,8 +10736,8 @@ } }, "range": [ - 4894, - 4915 + 4903, + 4924 ], "loc": { "start": { @@ -10755,8 +10755,8 @@ "value": false, "raw": "false", "range": [ - 4918, - 4923 + 4927, + 4932 ], "loc": { "start": { @@ -10770,8 +10770,8 @@ } }, "range": [ - 4894, - 4923 + 4903, + 4932 ], "loc": { "start": { @@ -10785,8 +10785,8 @@ } }, "range": [ - 4894, - 4924 + 4903, + 4933 ], "loc": { "start": { @@ -10803,8 +10803,8 @@ "type": "Line", "value": " Sporadic.", "range": [ - 4876, - 4888 + 4885, + 4897 ], "loc": { "start": { @@ -10821,8 +10821,8 @@ } ], "range": [ - 4867, - 4932 + 4876, + 4941 ], "loc": { "start": { @@ -10836,8 +10836,8 @@ } }, "range": [ - 4442, - 4932 + 4451, + 4941 ], "loc": { "start": { @@ -10852,8 +10852,8 @@ } ], "range": [ - 4434, - 4939 + 4443, + 4948 ], "loc": { "start": { @@ -10867,8 +10867,8 @@ } }, "range": [ - 3960, - 4939 + 3969, + 4948 ], "loc": { "start": { @@ -10892,8 +10892,8 @@ "object": { "type": "ThisExpression", "range": [ - 4947, - 4951 + 4956, + 4960 ], "loc": { "start": { @@ -10910,8 +10910,8 @@ "type": "Identifier", "name": "counter", "range": [ - 4952, - 4959 + 4961, + 4968 ], "loc": { "start": { @@ -10925,8 +10925,8 @@ } }, "range": [ - 4947, - 4959 + 4956, + 4968 ], "loc": { "start": { @@ -10941,8 +10941,8 @@ }, "prefix": true, "range": [ - 4945, - 4959 + 4954, + 4968 ], "loc": { "start": { @@ -10956,8 +10956,8 @@ } }, "range": [ - 4945, - 4960 + 4954, + 4969 ], "loc": { "start": { @@ -10981,8 +10981,8 @@ "type": "Identifier", "name": "renderer", "range": [ - 4966, - 4974 + 4975, + 4983 ], "loc": { "start": { @@ -10999,8 +10999,8 @@ "type": "Identifier", "name": "render", "range": [ - 4975, - 4981 + 4984, + 4990 ], "loc": { "start": { @@ -11014,8 +11014,8 @@ } }, "range": [ - 4966, - 4981 + 4975, + 4990 ], "loc": { "start": { @@ -11035,8 +11035,8 @@ "object": { "type": "ThisExpression", "range": [ - 4982, - 4986 + 4991, + 4995 ], "loc": { "start": { @@ -11053,8 +11053,8 @@ "type": "Identifier", "name": "scene", "range": [ - 4987, - 4992 + 4996, + 5001 ], "loc": { "start": { @@ -11068,8 +11068,8 @@ } }, "range": [ - 4982, - 4992 + 4991, + 5001 ], "loc": { "start": { @@ -11088,8 +11088,8 @@ "object": { "type": "ThisExpression", "range": [ - 4994, - 4998 + 5003, + 5007 ], "loc": { "start": { @@ -11106,8 +11106,8 @@ "type": "Identifier", "name": "camera", "range": [ - 4999, - 5005 + 5008, + 5014 ], "loc": { "start": { @@ -11121,8 +11121,8 @@ } }, "range": [ - 4994, - 5005 + 5003, + 5014 ], "loc": { "start": { @@ -11143,8 +11143,8 @@ "object": { "type": "ThisExpression", "range": [ - 5007, - 5011 + 5016, + 5020 ], "loc": { "start": { @@ -11161,8 +11161,8 @@ "type": "Identifier", "name": "renderToScreen", "range": [ - 5012, - 5026 + 5021, + 5035 ], "loc": { "start": { @@ -11176,8 +11176,8 @@ } }, "range": [ - 5007, - 5026 + 5016, + 5035 ], "loc": { "start": { @@ -11195,8 +11195,8 @@ "value": null, "raw": "null", "range": [ - 5029, - 5033 + 5038, + 5042 ], "loc": { "start": { @@ -11213,8 +11213,8 @@ "type": "Identifier", "name": "writeBuffer", "range": [ - 5036, - 5047 + 5045, + 5056 ], "loc": { "start": { @@ -11228,8 +11228,8 @@ } }, "range": [ - 5007, - 5047 + 5016, + 5056 ], "loc": { "start": { @@ -11244,8 +11244,8 @@ } ], "range": [ - 4966, - 5048 + 4975, + 5057 ], "loc": { "start": { @@ -11259,8 +11259,8 @@ } }, "range": [ - 4966, - 5049 + 4975, + 5058 ], "loc": { "start": { @@ -11275,8 +11275,8 @@ } ], "range": [ - 3684, - 5055 + 3693, + 5064 ], "loc": { "start": { @@ -11292,8 +11292,8 @@ "generator": false, "expression": false, "range": [ - 3648, - 5055 + 3657, + 5064 ], "loc": { "start": { @@ -11309,8 +11309,8 @@ "kind": "method", "computed": false, "range": [ - 3642, - 5055 + 3651, + 5064 ], "loc": { "start": { @@ -11327,8 +11327,8 @@ "type": "Block", "value": "*\r\n\t * Renders the effect.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {WebGLRenderTarget} readBuffer - The read buffer.\r\n\t * @param {WebGLRenderTarget} writeBuffer - The write buffer.\r\n\t ", "range": [ - 3419, - 3637 + 3428, + 3646 ], "loc": { "start": { @@ -11347,7 +11347,7 @@ ], "range": [ 885, - 5060 + 5069 ], "loc": { "start": { @@ -11362,7 +11362,7 @@ }, "range": [ 855, - 5060 + 5069 ], "loc": { "start": { @@ -11399,8 +11399,8 @@ "type": "Block", "value": "*\r\n * A glitch mode enumeration.\r\n *\r\n * @type {Object}\r\n * @property {Number} SPORADIC - Sporadic glitches.\r\n * @property {Number} CONSTANT_MILD - Constant mild glitches.\r\n * @property {Number} CONSTANT_WILD - Constant wild glitches.\r\n ", "range": [ - 5064, - 5305 + 5073, + 5314 ], "loc": { "start": { @@ -11419,7 +11419,7 @@ "source": null, "range": [ 848, - 5060 + 5069 ], "loc": { "start": { @@ -11456,8 +11456,8 @@ "type": "Block", "value": "*\r\n * A glitch mode enumeration.\r\n *\r\n * @type {Object}\r\n * @property {Number} SPORADIC - Sporadic glitches.\r\n * @property {Number} CONSTANT_MILD - Constant mild glitches.\r\n * @property {Number} CONSTANT_WILD - Constant wild glitches.\r\n ", "range": [ - 5064, - 5305 + 5073, + 5314 ], "loc": { "start": { @@ -11483,8 +11483,8 @@ "type": "Identifier", "name": "GlitchMode", "range": [ - 5322, - 5332 + 5331, + 5341 ], "loc": { "start": { @@ -11506,8 +11506,8 @@ "type": "Identifier", "name": "SPORADIC", "range": [ - 5341, - 5349 + 5350, + 5358 ], "loc": { "start": { @@ -11525,8 +11525,8 @@ "value": 0, "raw": "0", "range": [ - 5351, - 5352 + 5360, + 5361 ], "loc": { "start": { @@ -11544,8 +11544,8 @@ "shorthand": false, "computed": false, "range": [ - 5341, - 5352 + 5350, + 5361 ], "loc": { "start": { @@ -11564,8 +11564,8 @@ "type": "Identifier", "name": "CONSTANT_MILD", "range": [ - 5356, - 5369 + 5365, + 5378 ], "loc": { "start": { @@ -11583,8 +11583,8 @@ "value": 1, "raw": "1", "range": [ - 5371, - 5372 + 5380, + 5381 ], "loc": { "start": { @@ -11602,8 +11602,8 @@ "shorthand": false, "computed": false, "range": [ - 5356, - 5372 + 5365, + 5381 ], "loc": { "start": { @@ -11622,8 +11622,8 @@ "type": "Identifier", "name": "CONSTANT_WILD", "range": [ - 5376, - 5389 + 5385, + 5398 ], "loc": { "start": { @@ -11641,8 +11641,8 @@ "value": 2, "raw": "2", "range": [ - 5391, - 5392 + 5400, + 5401 ], "loc": { "start": { @@ -11660,8 +11660,8 @@ "shorthand": false, "computed": false, "range": [ - 5376, - 5392 + 5385, + 5401 ], "loc": { "start": { @@ -11676,8 +11676,8 @@ } ], "range": [ - 5335, - 5397 + 5344, + 5406 ], "loc": { "start": { @@ -11691,8 +11691,8 @@ } }, "range": [ - 5322, - 5397 + 5331, + 5406 ], "loc": { "start": { @@ -11708,8 +11708,8 @@ ], "kind": "const", "range": [ - 5316, - 5398 + 5325, + 5407 ], "loc": { "start": { @@ -11726,8 +11726,8 @@ "type": "Block", "value": "*\r\n * A glitch mode enumeration.\r\n *\r\n * @type {Object}\r\n * @property {Number} SPORADIC - Sporadic glitches.\r\n * @property {Number} CONSTANT_MILD - Constant mild glitches.\r\n * @property {Number} CONSTANT_WILD - Constant wild glitches.\r\n ", "range": [ - 5064, - 5305 + 5073, + 5314 ], "loc": { "start": { @@ -11746,8 +11746,8 @@ "specifiers": [], "source": null, "range": [ - 5309, - 5398 + 5318, + 5407 ], "loc": { "start": { @@ -11764,8 +11764,8 @@ "type": "Block", "value": "*\r\n * A glitch mode enumeration.\r\n *\r\n * @type {Object}\r\n * @property {Number} SPORADIC - Sporadic glitches.\r\n * @property {Number} CONSTANT_MILD - Constant mild glitches.\r\n * @property {Number} CONSTANT_WILD - Constant wild glitches.\r\n ", "range": [ - 5064, - 5305 + 5073, + 5314 ], "loc": { "start": { @@ -11784,7 +11784,7 @@ "sourceType": "module", "range": [ 0, - 5398 + 5407 ], "loc": { "start": { @@ -12033,10 +12033,10 @@ }, { "type": "Block", - "value": "*\r\n\t * Destroys the current perturbation map and creates a new one.\r\n\t *\r\n\t * @param {Number} [size=64] - The texture size.\r\n\t * @return {DataTexture} The perturbation texture.\r\n\t ", + "value": "*\r\n\t * Destroys the current perturbation map and replaces it with a new one.\r\n\t *\r\n\t * @param {Number} [size=64] - The texture size.\r\n\t * @return {DataTexture} The perturbation texture.\r\n\t ", "range": [ 2739, - 2923 + 2932 ], "loc": { "start": { @@ -12053,8 +12053,8 @@ "type": "Block", "value": "*\r\n\t * Renders the effect.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {WebGLRenderTarget} readBuffer - The read buffer.\r\n\t * @param {WebGLRenderTarget} writeBuffer - The write buffer.\r\n\t ", "range": [ - 3419, - 3637 + 3428, + 3646 ], "loc": { "start": { @@ -12071,8 +12071,8 @@ "type": "Line", "value": " Sporadic.", "range": [ - 4876, - 4888 + 4885, + 4897 ], "loc": { "start": { @@ -12089,8 +12089,8 @@ "type": "Block", "value": "*\r\n * A glitch mode enumeration.\r\n *\r\n * @type {Object}\r\n * @property {Number} SPORADIC - Sporadic glitches.\r\n * @property {Number} CONSTANT_MILD - Constant mild glitches.\r\n * @property {Number} CONSTANT_WILD - Constant wild glitches.\r\n ", "range": [ - 5064, - 5305 + 5073, + 5314 ], "loc": { "start": { diff --git a/docs/ast/source/passes/god-rays.js.json b/docs/ast/source/passes/god-rays.js.json index 8f161e141..017fbeda3 100644 --- a/docs/ast/source/passes/god-rays.js.json +++ b/docs/ast/source/passes/god-rays.js.json @@ -1595,10 +1595,137 @@ "trailingComments": [ { "type": "Block", - "value": "*\r\n\t\t * A scene that only contains the light source.\r\n\t\t *\r\n\t\t * @type {Scene}\r\n\t\t * @private\r\n\t\t ", + "value": "*\r\n\t\t * This pass renders to the write buffer.\r\n\t\t ", + "range": [ + 2088, + 2143 + ], + "loc": { + "start": { + "line": 68, + "column": 2 + }, + "end": { + "line": 70, + "column": 5 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "expression": { + "type": "AssignmentExpression", + "operator": "=", + "left": { + "type": "MemberExpression", + "computed": false, + "object": { + "type": "ThisExpression", + "range": [ + 2149, + 2153 + ], + "loc": { + "start": { + "line": 72, + "column": 2 + }, + "end": { + "line": 72, + "column": 6 + } + } + }, + "property": { + "type": "Identifier", + "name": "needsSwap", + "range": [ + 2154, + 2163 + ], + "loc": { + "start": { + "line": 72, + "column": 7 + }, + "end": { + "line": 72, + "column": 16 + } + } + }, + "range": [ + 2149, + 2163 + ], + "loc": { + "start": { + "line": 72, + "column": 2 + }, + "end": { + "line": 72, + "column": 16 + } + } + }, + "right": { + "type": "Literal", + "value": true, + "raw": "true", + "range": [ + 2166, + 2170 + ], + "loc": { + "start": { + "line": 72, + "column": 19 + }, + "end": { + "line": 72, + "column": 23 + } + } + }, + "range": [ + 2149, + 2170 + ], + "loc": { + "start": { + "line": 72, + "column": 2 + }, + "end": { + "line": 72, + "column": 23 + } + } + }, + "range": [ + 2149, + 2171 + ], + "loc": { + "start": { + "line": 72, + "column": 2 + }, + "end": { + "line": 72, + "column": 24 + } + }, + "leadingComments": [ + { + "type": "Block", + "value": "*\r\n\t\t * This pass renders to the write buffer.\r\n\t\t ", "range": [ 2088, - 2190 + 2143 ], "loc": { "start": { @@ -1606,7 +1733,27 @@ "column": 2 }, "end": { - "line": 73, + "line": 70, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "Block", + "value": "*\r\n\t\t * A scene that only contains the light source.\r\n\t\t *\r\n\t\t * @type {Scene}\r\n\t\t * @private\r\n\t\t ", + "range": [ + 2177, + 2279 + ], + "loc": { + "start": { + "line": 74, + "column": 2 + }, + "end": { + "line": 79, "column": 5 } } @@ -1624,16 +1771,16 @@ "object": { "type": "ThisExpression", "range": [ - 2196, - 2200 + 2285, + 2289 ], "loc": { "start": { - "line": 75, + "line": 81, "column": 2 }, "end": { - "line": 75, + "line": 81, "column": 6 } } @@ -1642,31 +1789,31 @@ "type": "Identifier", "name": "lightScene", "range": [ - 2201, - 2211 + 2290, + 2300 ], "loc": { "start": { - "line": 75, + "line": 81, "column": 7 }, "end": { - "line": 75, + "line": 81, "column": 17 } } }, "range": [ - 2196, - 2211 + 2285, + 2300 ], "loc": { "start": { - "line": 75, + "line": 81, "column": 2 }, "end": { - "line": 75, + "line": 81, "column": 17 } } @@ -1677,62 +1824,62 @@ "type": "Identifier", "name": "Scene", "range": [ - 2218, - 2223 + 2307, + 2312 ], "loc": { "start": { - "line": 75, + "line": 81, "column": 24 }, "end": { - "line": 75, + "line": 81, "column": 29 } } }, "arguments": [], "range": [ - 2214, - 2225 + 2303, + 2314 ], "loc": { "start": { - "line": 75, + "line": 81, "column": 20 }, "end": { - "line": 75, + "line": 81, "column": 31 } } }, "range": [ - 2196, - 2225 + 2285, + 2314 ], "loc": { "start": { - "line": 75, + "line": 81, "column": 2 }, "end": { - "line": 75, + "line": 81, "column": 31 } } }, "range": [ - 2196, - 2226 + 2285, + 2315 ], "loc": { "start": { - "line": 75, + "line": 81, "column": 2 }, "end": { - "line": 75, + "line": 81, "column": 32 } }, @@ -1741,16 +1888,16 @@ "type": "Block", "value": "*\r\n\t\t * A scene that only contains the light source.\r\n\t\t *\r\n\t\t * @type {Scene}\r\n\t\t * @private\r\n\t\t ", "range": [ - 2088, - 2190 + 2177, + 2279 ], "loc": { "start": { - "line": 68, + "line": 74, "column": 2 }, "end": { - "line": 73, + "line": 79, "column": 5 } } @@ -1761,16 +1908,16 @@ "type": "Block", "value": "*\r\n\t\t * The main scene.\r\n\t\t *\r\n\t\t * @type {Scene}\r\n\t\t * @private\r\n\t\t ", "range": [ - 2232, - 2305 + 2321, + 2394 ], "loc": { "start": { - "line": 77, + "line": 83, "column": 2 }, "end": { - "line": 82, + "line": 88, "column": 5 } } @@ -1788,16 +1935,16 @@ "object": { "type": "ThisExpression", "range": [ - 2311, - 2315 + 2400, + 2404 ], "loc": { "start": { - "line": 84, + "line": 90, "column": 2 }, "end": { - "line": 84, + "line": 90, "column": 6 } } @@ -1806,31 +1953,31 @@ "type": "Identifier", "name": "mainScene", "range": [ - 2316, - 2325 + 2405, + 2414 ], "loc": { "start": { - "line": 84, + "line": 90, "column": 7 }, "end": { - "line": 84, + "line": 90, "column": 16 } } }, "range": [ - 2311, - 2325 + 2400, + 2414 ], "loc": { "start": { - "line": 84, + "line": 90, "column": 2 }, "end": { - "line": 84, + "line": 90, "column": 16 } } @@ -1839,46 +1986,46 @@ "type": "Identifier", "name": "scene", "range": [ - 2328, - 2333 + 2417, + 2422 ], "loc": { "start": { - "line": 84, + "line": 90, "column": 19 }, "end": { - "line": 84, + "line": 90, "column": 24 } } }, "range": [ - 2311, - 2333 + 2400, + 2422 ], "loc": { "start": { - "line": 84, + "line": 90, "column": 2 }, "end": { - "line": 84, + "line": 90, "column": 24 } } }, "range": [ - 2311, - 2334 + 2400, + 2423 ], "loc": { "start": { - "line": 84, + "line": 90, "column": 2 }, "end": { - "line": 84, + "line": 90, "column": 25 } }, @@ -1887,16 +2034,16 @@ "type": "Block", "value": "*\r\n\t\t * The main scene.\r\n\t\t *\r\n\t\t * @type {Scene}\r\n\t\t * @private\r\n\t\t ", "range": [ - 2232, - 2305 + 2321, + 2394 ], "loc": { "start": { - "line": 77, + "line": 83, "column": 2 }, "end": { - "line": 82, + "line": 88, "column": 5 } } @@ -1907,16 +2054,16 @@ "type": "Block", "value": "*\r\n\t\t * The main camera.\r\n\t\t *\r\n\t\t * @type {Camera}\r\n\t\t * @private\r\n\t\t ", "range": [ - 2340, - 2415 + 2429, + 2504 ], "loc": { "start": { - "line": 86, + "line": 92, "column": 2 }, "end": { - "line": 91, + "line": 97, "column": 5 } } @@ -1934,16 +2081,16 @@ "object": { "type": "ThisExpression", "range": [ - 2421, - 2425 + 2510, + 2514 ], "loc": { "start": { - "line": 93, + "line": 99, "column": 2 }, "end": { - "line": 93, + "line": 99, "column": 6 } } @@ -1952,31 +2099,31 @@ "type": "Identifier", "name": "mainCamera", "range": [ - 2426, - 2436 + 2515, + 2525 ], "loc": { "start": { - "line": 93, + "line": 99, "column": 7 }, "end": { - "line": 93, + "line": 99, "column": 17 } } }, "range": [ - 2421, - 2436 + 2510, + 2525 ], "loc": { "start": { - "line": 93, + "line": 99, "column": 2 }, "end": { - "line": 93, + "line": 99, "column": 17 } } @@ -1985,46 +2132,46 @@ "type": "Identifier", "name": "camera", "range": [ - 2439, - 2445 + 2528, + 2534 ], "loc": { "start": { - "line": 93, + "line": 99, "column": 20 }, "end": { - "line": 93, + "line": 99, "column": 26 } } }, "range": [ - 2421, - 2445 + 2510, + 2534 ], "loc": { "start": { - "line": 93, + "line": 99, "column": 2 }, "end": { - "line": 93, + "line": 99, "column": 26 } } }, "range": [ - 2421, - 2446 + 2510, + 2535 ], "loc": { "start": { - "line": 93, + "line": 99, "column": 2 }, "end": { - "line": 93, + "line": 99, "column": 27 } }, @@ -2033,16 +2180,16 @@ "type": "Block", "value": "*\r\n\t\t * The main camera.\r\n\t\t *\r\n\t\t * @type {Camera}\r\n\t\t * @private\r\n\t\t ", "range": [ - 2340, - 2415 + 2429, + 2504 ], "loc": { "start": { - "line": 86, + "line": 92, "column": 2 }, "end": { - "line": 91, + "line": 97, "column": 5 } } @@ -2053,16 +2200,16 @@ "type": "Block", "value": "*\r\n\t\t * A pass that only renders the light source.\r\n\t\t *\r\n\t\t * @type {RenderPass}\r\n\t\t * @private\r\n\t\t ", "range": [ - 2452, - 2557 + 2541, + 2646 ], "loc": { "start": { - "line": 95, + "line": 101, "column": 2 }, "end": { - "line": 100, + "line": 106, "column": 5 } } @@ -2080,16 +2227,16 @@ "object": { "type": "ThisExpression", "range": [ - 2563, - 2567 + 2652, + 2656 ], "loc": { "start": { - "line": 102, + "line": 108, "column": 2 }, "end": { - "line": 102, + "line": 108, "column": 6 } } @@ -2098,31 +2245,31 @@ "type": "Identifier", "name": "renderPassLight", "range": [ - 2568, - 2583 + 2657, + 2672 ], "loc": { "start": { - "line": 102, + "line": 108, "column": 7 }, "end": { - "line": 102, + "line": 108, "column": 22 } } }, "range": [ - 2563, - 2583 + 2652, + 2672 ], "loc": { "start": { - "line": 102, + "line": 108, "column": 2 }, "end": { - "line": 102, + "line": 108, "column": 22 } } @@ -2133,16 +2280,16 @@ "type": "Identifier", "name": "RenderPass", "range": [ - 2590, - 2600 + 2679, + 2689 ], "loc": { "start": { - "line": 102, + "line": 108, "column": 29 }, "end": { - "line": 102, + "line": 108, "column": 39 } } @@ -2154,16 +2301,16 @@ "object": { "type": "ThisExpression", "range": [ - 2601, - 2605 + 2690, + 2694 ], "loc": { "start": { - "line": 102, + "line": 108, "column": 40 }, "end": { - "line": 102, + "line": 108, "column": 44 } } @@ -2172,31 +2319,31 @@ "type": "Identifier", "name": "lightScene", "range": [ - 2606, - 2616 + 2695, + 2705 ], "loc": { "start": { - "line": 102, + "line": 108, "column": 45 }, "end": { - "line": 102, + "line": 108, "column": 55 } } }, "range": [ - 2601, - 2616 + 2690, + 2705 ], "loc": { "start": { - "line": 102, + "line": 108, "column": 40 }, "end": { - "line": 102, + "line": 108, "column": 55 } } @@ -2207,16 +2354,16 @@ "object": { "type": "ThisExpression", "range": [ - 2618, - 2622 + 2707, + 2711 ], "loc": { "start": { - "line": 102, + "line": 108, "column": 57 }, "end": { - "line": 102, + "line": 108, "column": 61 } } @@ -2225,77 +2372,77 @@ "type": "Identifier", "name": "mainCamera", "range": [ - 2623, - 2633 + 2712, + 2722 ], "loc": { "start": { - "line": 102, + "line": 108, "column": 62 }, "end": { - "line": 102, + "line": 108, "column": 72 } } }, "range": [ - 2618, - 2633 + 2707, + 2722 ], "loc": { "start": { - "line": 102, + "line": 108, "column": 57 }, "end": { - "line": 102, + "line": 108, "column": 72 } } } ], "range": [ - 2586, - 2634 + 2675, + 2723 ], "loc": { "start": { - "line": 102, + "line": 108, "column": 25 }, "end": { - "line": 102, + "line": 108, "column": 73 } } }, "range": [ - 2563, - 2634 + 2652, + 2723 ], "loc": { "start": { - "line": 102, + "line": 108, "column": 2 }, "end": { - "line": 102, + "line": 108, "column": 73 } } }, "range": [ - 2563, - 2635 + 2652, + 2724 ], "loc": { "start": { - "line": 102, + "line": 108, "column": 2 }, "end": { - "line": 102, + "line": 108, "column": 74 } }, @@ -2304,16 +2451,16 @@ "type": "Block", "value": "*\r\n\t\t * A pass that only renders the light source.\r\n\t\t *\r\n\t\t * @type {RenderPass}\r\n\t\t * @private\r\n\t\t ", "range": [ - 2452, - 2557 + 2541, + 2646 ], "loc": { "start": { - "line": 95, + "line": 101, "column": 2 }, "end": { - "line": 100, + "line": 106, "column": 5 } } @@ -2324,16 +2471,16 @@ "type": "Block", "value": "*\r\n\t\t * A pass that renders the masked scene over the light.\r\n\t\t *\r\n\t\t * @type {RenderPass}\r\n\t\t * @private\r\n\t\t ", "range": [ - 2641, - 2756 + 2730, + 2845 ], "loc": { "start": { - "line": 104, + "line": 110, "column": 2 }, "end": { - "line": 109, + "line": 115, "column": 5 } } @@ -2351,16 +2498,16 @@ "object": { "type": "ThisExpression", "range": [ - 2762, - 2766 + 2851, + 2855 ], "loc": { "start": { - "line": 111, + "line": 117, "column": 2 }, "end": { - "line": 111, + "line": 117, "column": 6 } } @@ -2369,31 +2516,31 @@ "type": "Identifier", "name": "renderPassMask", "range": [ - 2767, - 2781 + 2856, + 2870 ], "loc": { "start": { - "line": 111, + "line": 117, "column": 7 }, "end": { - "line": 111, + "line": 117, "column": 21 } } }, "range": [ - 2762, - 2781 + 2851, + 2870 ], "loc": { "start": { - "line": 111, + "line": 117, "column": 2 }, "end": { - "line": 111, + "line": 117, "column": 21 } } @@ -2404,16 +2551,16 @@ "type": "Identifier", "name": "RenderPass", "range": [ - 2788, - 2798 + 2877, + 2887 ], "loc": { "start": { - "line": 111, + "line": 117, "column": 28 }, "end": { - "line": 111, + "line": 117, "column": 38 } } @@ -2425,16 +2572,16 @@ "object": { "type": "ThisExpression", "range": [ - 2799, - 2803 + 2888, + 2892 ], "loc": { "start": { - "line": 111, + "line": 117, "column": 39 }, "end": { - "line": 111, + "line": 117, "column": 43 } } @@ -2443,31 +2590,31 @@ "type": "Identifier", "name": "mainScene", "range": [ - 2804, - 2813 + 2893, + 2902 ], "loc": { "start": { - "line": 111, + "line": 117, "column": 44 }, "end": { - "line": 111, + "line": 117, "column": 53 } } }, "range": [ - 2799, - 2813 + 2888, + 2902 ], "loc": { "start": { - "line": 111, + "line": 117, "column": 39 }, "end": { - "line": 111, + "line": 117, "column": 53 } } @@ -2478,16 +2625,16 @@ "object": { "type": "ThisExpression", "range": [ - 2815, - 2819 + 2904, + 2908 ], "loc": { "start": { - "line": 111, + "line": 117, "column": 55 }, "end": { - "line": 111, + "line": 117, "column": 59 } } @@ -2496,31 +2643,31 @@ "type": "Identifier", "name": "mainCamera", "range": [ - 2820, - 2830 + 2909, + 2919 ], "loc": { "start": { - "line": 111, + "line": 117, "column": 60 }, "end": { - "line": 111, + "line": 117, "column": 70 } } }, "range": [ - 2815, - 2830 + 2904, + 2919 ], "loc": { "start": { - "line": 111, + "line": 117, "column": 55 }, "end": { - "line": 111, + "line": 117, "column": 70 } } @@ -2534,16 +2681,16 @@ "type": "Identifier", "name": "overrideMaterial", "range": [ - 2838, - 2854 + 2927, + 2943 ], "loc": { "start": { - "line": 112, + "line": 118, "column": 3 }, "end": { - "line": 112, + "line": 118, "column": 19 } } @@ -2554,16 +2701,16 @@ "type": "Identifier", "name": "MeshBasicMaterial", "range": [ - 2860, - 2877 + 2949, + 2966 ], "loc": { "start": { - "line": 112, + "line": 118, "column": 25 }, "end": { - "line": 112, + "line": 118, "column": 42 } } @@ -2578,16 +2725,16 @@ "type": "Identifier", "name": "color", "range": [ - 2880, - 2885 + 2969, + 2974 ], "loc": { "start": { - "line": 112, + "line": 118, "column": 45 }, "end": { - "line": 112, + "line": 118, "column": 50 } } @@ -2597,16 +2744,16 @@ "value": 0, "raw": "0x000000", "range": [ - 2887, - 2895 + 2976, + 2984 ], "loc": { "start": { - "line": 112, + "line": 118, "column": 52 }, "end": { - "line": 112, + "line": 118, "column": 60 } } @@ -2616,48 +2763,48 @@ "shorthand": false, "computed": false, "range": [ - 2880, - 2895 + 2969, + 2984 ], "loc": { "start": { - "line": 112, + "line": 118, "column": 45 }, "end": { - "line": 112, + "line": 118, "column": 60 } } } ], "range": [ - 2878, - 2897 + 2967, + 2986 ], "loc": { "start": { - "line": 112, + "line": 118, "column": 43 }, "end": { - "line": 112, + "line": 118, "column": 62 } } } ], "range": [ - 2856, - 2898 + 2945, + 2987 ], "loc": { "start": { - "line": 112, + "line": 118, "column": 21 }, "end": { - "line": 112, + "line": 118, "column": 63 } } @@ -2667,16 +2814,16 @@ "shorthand": false, "computed": false, "range": [ - 2838, - 2898 + 2927, + 2987 ], "loc": { "start": { - "line": 112, + "line": 118, "column": 3 }, "end": { - "line": 112, + "line": 118, "column": 63 } } @@ -2687,16 +2834,16 @@ "type": "Identifier", "name": "clearColor", "range": [ - 2904, - 2914 + 2993, + 3003 ], "loc": { "start": { - "line": 113, + "line": 119, "column": 3 }, "end": { - "line": 113, + "line": 119, "column": 13 } } @@ -2707,16 +2854,16 @@ "type": "Identifier", "name": "Color", "range": [ - 2920, - 2925 + 3009, + 3014 ], "loc": { "start": { - "line": 113, + "line": 119, "column": 19 }, "end": { - "line": 113, + "line": 119, "column": 24 } } @@ -2727,32 +2874,32 @@ "value": 0, "raw": "0x000000", "range": [ - 2926, - 2934 + 3015, + 3023 ], "loc": { "start": { - "line": 113, + "line": 119, "column": 25 }, "end": { - "line": 113, + "line": 119, "column": 33 } } } ], "range": [ - 2916, - 2935 + 3005, + 3024 ], "loc": { "start": { - "line": 113, + "line": 119, "column": 15 }, "end": { - "line": 113, + "line": 119, "column": 34 } } @@ -2762,78 +2909,78 @@ "shorthand": false, "computed": false, "range": [ - 2904, - 2935 + 2993, + 3024 ], "loc": { "start": { - "line": 113, + "line": 119, "column": 3 }, "end": { - "line": 113, + "line": 119, "column": 34 } } } ], "range": [ - 2832, - 2940 + 2921, + 3029 ], "loc": { "start": { - "line": 111, + "line": 117, "column": 72 }, "end": { - "line": 114, + "line": 120, "column": 3 } } } ], "range": [ - 2784, - 2941 + 2873, + 3030 ], "loc": { "start": { - "line": 111, + "line": 117, "column": 24 }, "end": { - "line": 114, + "line": 120, "column": 4 } } }, "range": [ - 2762, - 2941 + 2851, + 3030 ], "loc": { "start": { - "line": 111, + "line": 117, "column": 2 }, "end": { - "line": 114, + "line": 120, "column": 4 } } }, "range": [ - 2762, - 2942 + 2851, + 3031 ], "loc": { "start": { - "line": 111, + "line": 117, "column": 2 }, "end": { - "line": 114, + "line": 120, "column": 5 } }, @@ -2842,16 +2989,16 @@ "type": "Block", "value": "*\r\n\t\t * A pass that renders the masked scene over the light.\r\n\t\t *\r\n\t\t * @type {RenderPass}\r\n\t\t * @private\r\n\t\t ", "range": [ - 2641, - 2756 + 2730, + 2845 ], "loc": { "start": { - "line": 104, + "line": 110, "column": 2 }, "end": { - "line": 109, + "line": 115, "column": 5 } } @@ -2872,16 +3019,16 @@ "object": { "type": "ThisExpression", "range": [ - 2948, - 2952 + 3037, + 3041 ], "loc": { "start": { - "line": 116, + "line": 122, "column": 2 }, "end": { - "line": 116, + "line": 122, "column": 6 } } @@ -2890,31 +3037,31 @@ "type": "Identifier", "name": "renderPassMask", "range": [ - 2953, - 2967 + 3042, + 3056 ], "loc": { "start": { - "line": 116, + "line": 122, "column": 7 }, "end": { - "line": 116, + "line": 122, "column": 21 } } }, "range": [ - 2948, - 2967 + 3037, + 3056 ], "loc": { "start": { - "line": 116, + "line": 122, "column": 2 }, "end": { - "line": 116, + "line": 122, "column": 21 } } @@ -2923,31 +3070,31 @@ "type": "Identifier", "name": "clear", "range": [ - 2968, - 2973 + 3057, + 3062 ], "loc": { "start": { - "line": 116, + "line": 122, "column": 22 }, "end": { - "line": 116, + "line": 122, "column": 27 } } }, "range": [ - 2948, - 2973 + 3037, + 3062 ], "loc": { "start": { - "line": 116, + "line": 122, "column": 2 }, "end": { - "line": 116, + "line": 122, "column": 27 } } @@ -2957,46 +3104,46 @@ "value": false, "raw": "false", "range": [ - 2976, - 2981 + 3065, + 3070 ], "loc": { "start": { - "line": 116, + "line": 122, "column": 30 }, "end": { - "line": 116, + "line": 122, "column": 35 } } }, "range": [ - 2948, - 2981 + 3037, + 3070 ], "loc": { "start": { - "line": 116, + "line": 122, "column": 2 }, "end": { - "line": 116, + "line": 122, "column": 35 } } }, "range": [ - 2948, - 2982 + 3037, + 3071 ], "loc": { "start": { - "line": 116, + "line": 122, "column": 2 }, "end": { - "line": 116, + "line": 122, "column": 36 } }, @@ -3005,16 +3152,16 @@ "type": "Block", "value": "*\r\n\t\t * A blur pass.\r\n\t\t *\r\n\t\t * @type {BlurPass}\r\n\t\t * @private\r\n\t\t ", "range": [ - 2988, - 3061 + 3077, + 3150 ], "loc": { "start": { - "line": 118, + "line": 124, "column": 2 }, "end": { - "line": 123, + "line": 129, "column": 5 } } @@ -3032,16 +3179,16 @@ "object": { "type": "ThisExpression", "range": [ - 3067, - 3071 + 3156, + 3160 ], "loc": { "start": { - "line": 125, + "line": 131, "column": 2 }, "end": { - "line": 125, + "line": 131, "column": 6 } } @@ -3050,31 +3197,31 @@ "type": "Identifier", "name": "blurPass", "range": [ - 3072, - 3080 + 3161, + 3169 ], "loc": { "start": { - "line": 125, + "line": 131, "column": 7 }, "end": { - "line": 125, + "line": 131, "column": 15 } } }, "range": [ - 3067, - 3080 + 3156, + 3169 ], "loc": { "start": { - "line": 125, + "line": 131, "column": 2 }, "end": { - "line": 125, + "line": 131, "column": 15 } } @@ -3085,16 +3232,16 @@ "type": "Identifier", "name": "BlurPass", "range": [ - 3087, - 3095 + 3176, + 3184 ], "loc": { "start": { - "line": 125, + "line": 131, "column": 22 }, "end": { - "line": 125, + "line": 131, "column": 30 } } @@ -3104,62 +3251,62 @@ "type": "Identifier", "name": "options", "range": [ - 3096, - 3103 + 3185, + 3192 ], "loc": { "start": { - "line": 125, + "line": 131, "column": 31 }, "end": { - "line": 125, + "line": 131, "column": 38 } } } ], "range": [ - 3083, - 3104 + 3172, + 3193 ], "loc": { "start": { - "line": 125, + "line": 131, "column": 18 }, "end": { - "line": 125, + "line": 131, "column": 39 } } }, "range": [ - 3067, - 3104 + 3156, + 3193 ], "loc": { "start": { - "line": 125, + "line": 131, "column": 2 }, "end": { - "line": 125, + "line": 131, "column": 39 } } }, "range": [ - 3067, - 3105 + 3156, + 3194 ], "loc": { "start": { - "line": 125, + "line": 131, "column": 2 }, "end": { - "line": 125, + "line": 131, "column": 40 } }, @@ -3168,16 +3315,16 @@ "type": "Block", "value": "*\r\n\t\t * A blur pass.\r\n\t\t *\r\n\t\t * @type {BlurPass}\r\n\t\t * @private\r\n\t\t ", "range": [ - 2988, - 3061 + 3077, + 3150 ], "loc": { "start": { - "line": 118, + "line": 124, "column": 2 }, "end": { - "line": 123, + "line": 129, "column": 5 } } @@ -3188,16 +3335,16 @@ "type": "Block", "value": "*\r\n\t\t * A render target.\r\n\t\t *\r\n\t\t * @type {WebGLRenderTarget}\r\n\t\t * @private\r\n\t\t ", "range": [ - 3111, - 3197 + 3200, + 3286 ], "loc": { "start": { - "line": 127, + "line": 133, "column": 2 }, "end": { - "line": 132, + "line": 138, "column": 5 } } @@ -3215,16 +3362,16 @@ "object": { "type": "ThisExpression", "range": [ - 3203, - 3207 + 3292, + 3296 ], "loc": { "start": { - "line": 134, + "line": 140, "column": 2 }, "end": { - "line": 134, + "line": 140, "column": 6 } } @@ -3233,31 +3380,31 @@ "type": "Identifier", "name": "renderTargetX", "range": [ - 3208, - 3221 + 3297, + 3310 ], "loc": { "start": { - "line": 134, + "line": 140, "column": 7 }, "end": { - "line": 134, + "line": 140, "column": 20 } } }, "range": [ - 3203, - 3221 + 3292, + 3310 ], "loc": { "start": { - "line": 134, + "line": 140, "column": 2 }, "end": { - "line": 134, + "line": 140, "column": 20 } } @@ -3276,16 +3423,16 @@ "object": { "type": "ThisExpression", "range": [ - 3224, - 3228 + 3313, + 3317 ], "loc": { "start": { - "line": 134, + "line": 140, "column": 23 }, "end": { - "line": 134, + "line": 140, "column": 27 } } @@ -3294,31 +3441,31 @@ "type": "Identifier", "name": "blurPass", "range": [ - 3229, - 3237 + 3318, + 3326 ], "loc": { "start": { - "line": 134, + "line": 140, "column": 28 }, "end": { - "line": 134, + "line": 140, "column": 36 } } }, "range": [ - 3224, - 3237 + 3313, + 3326 ], "loc": { "start": { - "line": 134, + "line": 140, "column": 23 }, "end": { - "line": 134, + "line": 140, "column": 36 } } @@ -3327,31 +3474,31 @@ "type": "Identifier", "name": "renderTargetX", "range": [ - 3238, - 3251 + 3327, + 3340 ], "loc": { "start": { - "line": 134, + "line": 140, "column": 37 }, "end": { - "line": 134, + "line": 140, "column": 50 } } }, "range": [ - 3224, - 3251 + 3313, + 3340 ], "loc": { "start": { - "line": 134, + "line": 140, "column": 23 }, "end": { - "line": 134, + "line": 140, "column": 50 } } @@ -3360,77 +3507,77 @@ "type": "Identifier", "name": "clone", "range": [ - 3252, - 3257 + 3341, + 3346 ], "loc": { "start": { - "line": 134, + "line": 140, "column": 51 }, "end": { - "line": 134, + "line": 140, "column": 56 } } }, "range": [ - 3224, - 3257 + 3313, + 3346 ], "loc": { "start": { - "line": 134, + "line": 140, "column": 23 }, "end": { - "line": 134, + "line": 140, "column": 56 } } }, "arguments": [], "range": [ - 3224, - 3259 + 3313, + 3348 ], "loc": { "start": { - "line": 134, + "line": 140, "column": 23 }, "end": { - "line": 134, + "line": 140, "column": 58 } } }, "range": [ - 3203, - 3259 + 3292, + 3348 ], "loc": { "start": { - "line": 134, + "line": 140, "column": 2 }, "end": { - "line": 134, + "line": 140, "column": 58 } } }, "range": [ - 3203, - 3260 + 3292, + 3349 ], "loc": { "start": { - "line": 134, + "line": 140, "column": 2 }, "end": { - "line": 134, + "line": 140, "column": 59 } }, @@ -3439,16 +3586,16 @@ "type": "Block", "value": "*\r\n\t\t * A render target.\r\n\t\t *\r\n\t\t * @type {WebGLRenderTarget}\r\n\t\t * @private\r\n\t\t ", "range": [ - 3111, - 3197 + 3200, + 3286 ], "loc": { "start": { - "line": 127, + "line": 133, "column": 2 }, "end": { - "line": 132, + "line": 138, "column": 5 } } @@ -3472,16 +3619,16 @@ "object": { "type": "ThisExpression", "range": [ - 3266, - 3270 + 3355, + 3359 ], "loc": { "start": { - "line": 136, + "line": 142, "column": 2 }, "end": { - "line": 136, + "line": 142, "column": 6 } } @@ -3490,31 +3637,31 @@ "type": "Identifier", "name": "renderTargetX", "range": [ - 3271, - 3284 + 3360, + 3373 ], "loc": { "start": { - "line": 136, + "line": 142, "column": 7 }, "end": { - "line": 136, + "line": 142, "column": 20 } } }, "range": [ - 3266, - 3284 + 3355, + 3373 ], "loc": { "start": { - "line": 136, + "line": 142, "column": 2 }, "end": { - "line": 136, + "line": 142, "column": 20 } } @@ -3523,31 +3670,31 @@ "type": "Identifier", "name": "texture", "range": [ - 3285, - 3292 + 3374, + 3381 ], "loc": { "start": { - "line": 136, + "line": 142, "column": 21 }, "end": { - "line": 136, + "line": 142, "column": 28 } } }, "range": [ - 3266, - 3292 + 3355, + 3381 ], "loc": { "start": { - "line": 136, + "line": 142, "column": 2 }, "end": { - "line": 136, + "line": 142, "column": 28 } } @@ -3556,31 +3703,31 @@ "type": "Identifier", "name": "name", "range": [ - 3293, - 3297 + 3382, + 3386 ], "loc": { "start": { - "line": 136, + "line": 142, "column": 29 }, "end": { - "line": 136, + "line": 142, "column": 33 } } }, "range": [ - 3266, - 3297 + 3355, + 3386 ], "loc": { "start": { - "line": 136, + "line": 142, "column": 2 }, "end": { - "line": 136, + "line": 142, "column": 33 } } @@ -3590,46 +3737,46 @@ "value": "GodRays.TargetX", "raw": "\"GodRays.TargetX\"", "range": [ - 3300, - 3317 + 3389, + 3406 ], "loc": { "start": { - "line": 136, + "line": 142, "column": 36 }, "end": { - "line": 136, + "line": 142, "column": 53 } } }, "range": [ - 3266, - 3317 + 3355, + 3406 ], "loc": { "start": { - "line": 136, + "line": 142, "column": 2 }, "end": { - "line": 136, + "line": 142, "column": 53 } } }, "range": [ - 3266, - 3318 + 3355, + 3407 ], "loc": { "start": { - "line": 136, + "line": 142, "column": 2 }, "end": { - "line": 136, + "line": 142, "column": 54 } }, @@ -3638,16 +3785,16 @@ "type": "Block", "value": "*\r\n\t\t * A second render target.\r\n\t\t *\r\n\t\t * @type {WebGLRenderTarget}\r\n\t\t * @private\r\n\t\t ", "range": [ - 3324, - 3417 + 3413, + 3506 ], "loc": { "start": { - "line": 138, + "line": 144, "column": 2 }, "end": { - "line": 143, + "line": 149, "column": 5 } } @@ -3665,16 +3812,16 @@ "object": { "type": "ThisExpression", "range": [ - 3423, - 3427 + 3512, + 3516 ], "loc": { "start": { - "line": 145, + "line": 151, "column": 2 }, "end": { - "line": 145, + "line": 151, "column": 6 } } @@ -3683,31 +3830,31 @@ "type": "Identifier", "name": "renderTargetY", "range": [ - 3428, - 3441 + 3517, + 3530 ], "loc": { "start": { - "line": 145, + "line": 151, "column": 7 }, "end": { - "line": 145, + "line": 151, "column": 20 } } }, "range": [ - 3423, - 3441 + 3512, + 3530 ], "loc": { "start": { - "line": 145, + "line": 151, "column": 2 }, "end": { - "line": 145, + "line": 151, "column": 20 } } @@ -3726,16 +3873,16 @@ "object": { "type": "ThisExpression", "range": [ - 3444, - 3448 + 3533, + 3537 ], "loc": { "start": { - "line": 145, + "line": 151, "column": 23 }, "end": { - "line": 145, + "line": 151, "column": 27 } } @@ -3744,31 +3891,31 @@ "type": "Identifier", "name": "blurPass", "range": [ - 3449, - 3457 + 3538, + 3546 ], "loc": { "start": { - "line": 145, + "line": 151, "column": 28 }, "end": { - "line": 145, + "line": 151, "column": 36 } } }, "range": [ - 3444, - 3457 + 3533, + 3546 ], "loc": { "start": { - "line": 145, + "line": 151, "column": 23 }, "end": { - "line": 145, + "line": 151, "column": 36 } } @@ -3777,31 +3924,31 @@ "type": "Identifier", "name": "renderTargetY", "range": [ - 3458, - 3471 + 3547, + 3560 ], "loc": { "start": { - "line": 145, + "line": 151, "column": 37 }, "end": { - "line": 145, + "line": 151, "column": 50 } } }, "range": [ - 3444, - 3471 + 3533, + 3560 ], "loc": { "start": { - "line": 145, + "line": 151, "column": 23 }, "end": { - "line": 145, + "line": 151, "column": 50 } } @@ -3810,77 +3957,77 @@ "type": "Identifier", "name": "clone", "range": [ - 3472, - 3477 + 3561, + 3566 ], "loc": { "start": { - "line": 145, + "line": 151, "column": 51 }, "end": { - "line": 145, + "line": 151, "column": 56 } } }, "range": [ - 3444, - 3477 + 3533, + 3566 ], "loc": { "start": { - "line": 145, + "line": 151, "column": 23 }, "end": { - "line": 145, + "line": 151, "column": 56 } } }, "arguments": [], "range": [ - 3444, - 3479 + 3533, + 3568 ], "loc": { "start": { - "line": 145, + "line": 151, "column": 23 }, "end": { - "line": 145, + "line": 151, "column": 58 } } }, "range": [ - 3423, - 3479 + 3512, + 3568 ], "loc": { "start": { - "line": 145, + "line": 151, "column": 2 }, "end": { - "line": 145, + "line": 151, "column": 58 } } }, "range": [ - 3423, - 3480 + 3512, + 3569 ], "loc": { "start": { - "line": 145, + "line": 151, "column": 2 }, "end": { - "line": 145, + "line": 151, "column": 59 } }, @@ -3889,16 +4036,16 @@ "type": "Block", "value": "*\r\n\t\t * A second render target.\r\n\t\t *\r\n\t\t * @type {WebGLRenderTarget}\r\n\t\t * @private\r\n\t\t ", "range": [ - 3324, - 3417 + 3413, + 3506 ], "loc": { "start": { - "line": 138, + "line": 144, "column": 2 }, "end": { - "line": 143, + "line": 149, "column": 5 } } @@ -3922,16 +4069,16 @@ "object": { "type": "ThisExpression", "range": [ - 3486, - 3490 + 3575, + 3579 ], "loc": { "start": { - "line": 147, + "line": 153, "column": 2 }, "end": { - "line": 147, + "line": 153, "column": 6 } } @@ -3940,31 +4087,31 @@ "type": "Identifier", "name": "renderTargetY", "range": [ - 3491, - 3504 + 3580, + 3593 ], "loc": { "start": { - "line": 147, + "line": 153, "column": 7 }, "end": { - "line": 147, + "line": 153, "column": 20 } } }, "range": [ - 3486, - 3504 + 3575, + 3593 ], "loc": { "start": { - "line": 147, + "line": 153, "column": 2 }, "end": { - "line": 147, + "line": 153, "column": 20 } } @@ -3973,31 +4120,31 @@ "type": "Identifier", "name": "texture", "range": [ - 3505, - 3512 + 3594, + 3601 ], "loc": { "start": { - "line": 147, + "line": 153, "column": 21 }, "end": { - "line": 147, + "line": 153, "column": 28 } } }, "range": [ - 3486, - 3512 + 3575, + 3601 ], "loc": { "start": { - "line": 147, + "line": 153, "column": 2 }, "end": { - "line": 147, + "line": 153, "column": 28 } } @@ -4006,31 +4153,31 @@ "type": "Identifier", "name": "name", "range": [ - 3513, - 3517 + 3602, + 3606 ], "loc": { "start": { - "line": 147, + "line": 153, "column": 29 }, "end": { - "line": 147, + "line": 153, "column": 33 } } }, "range": [ - 3486, - 3517 + 3575, + 3606 ], "loc": { "start": { - "line": 147, + "line": 153, "column": 2 }, "end": { - "line": 147, + "line": 153, "column": 33 } } @@ -4040,46 +4187,46 @@ "value": "GodRays.TargetY", "raw": "\"GodRays.TargetY\"", "range": [ - 3520, - 3537 + 3609, + 3626 ], "loc": { "start": { - "line": 147, + "line": 153, "column": 36 }, "end": { - "line": 147, + "line": 153, "column": 53 } } }, "range": [ - 3486, - 3537 + 3575, + 3626 ], "loc": { "start": { - "line": 147, + "line": 153, "column": 2 }, "end": { - "line": 147, + "line": 153, "column": 53 } } }, "range": [ - 3486, - 3538 + 3575, + 3627 ], "loc": { "start": { - "line": 147, + "line": 153, "column": 2 }, "end": { - "line": 147, + "line": 153, "column": 54 } }, @@ -4088,16 +4235,16 @@ "type": "Block", "value": "*\r\n\t\t * A render target for the masked light scene.\r\n\t\t *\r\n\t\t * @type {WebGLRenderTarget}\r\n\t\t * @private\r\n\t\t ", "range": [ - 3544, - 3657 + 3633, + 3746 ], "loc": { "start": { - "line": 149, + "line": 155, "column": 2 }, "end": { - "line": 154, + "line": 160, "column": 5 } } @@ -4115,16 +4262,16 @@ "object": { "type": "ThisExpression", "range": [ - 3663, - 3667 + 3752, + 3756 ], "loc": { "start": { - "line": 156, + "line": 162, "column": 2 }, "end": { - "line": 156, + "line": 162, "column": 6 } } @@ -4133,31 +4280,31 @@ "type": "Identifier", "name": "renderTargetMask", "range": [ - 3668, - 3684 + 3757, + 3773 ], "loc": { "start": { - "line": 156, + "line": 162, "column": 7 }, "end": { - "line": 156, + "line": 162, "column": 23 } } }, "range": [ - 3663, - 3684 + 3752, + 3773 ], "loc": { "start": { - "line": 156, + "line": 162, "column": 2 }, "end": { - "line": 156, + "line": 162, "column": 23 } } @@ -4168,16 +4315,16 @@ "type": "Identifier", "name": "WebGLRenderTarget", "range": [ - 3691, - 3708 + 3780, + 3797 ], "loc": { "start": { - "line": 156, + "line": 162, "column": 30 }, "end": { - "line": 156, + "line": 162, "column": 47 } } @@ -4188,16 +4335,16 @@ "value": 1, "raw": "1", "range": [ - 3709, - 3710 + 3798, + 3799 ], "loc": { "start": { - "line": 156, + "line": 162, "column": 48 }, "end": { - "line": 156, + "line": 162, "column": 49 } } @@ -4207,16 +4354,16 @@ "value": 1, "raw": "1", "range": [ - 3712, - 3713 + 3801, + 3802 ], "loc": { "start": { - "line": 156, + "line": 162, "column": 51 }, "end": { - "line": 156, + "line": 162, "column": 52 } } @@ -4230,16 +4377,16 @@ "type": "Identifier", "name": "minFilter", "range": [ - 3721, - 3730 + 3810, + 3819 ], "loc": { "start": { - "line": 157, + "line": 163, "column": 3 }, "end": { - "line": 157, + "line": 163, "column": 12 } } @@ -4248,16 +4395,16 @@ "type": "Identifier", "name": "LinearFilter", "range": [ - 3732, - 3744 + 3821, + 3833 ], "loc": { "start": { - "line": 157, + "line": 163, "column": 14 }, "end": { - "line": 157, + "line": 163, "column": 26 } } @@ -4267,16 +4414,16 @@ "shorthand": false, "computed": false, "range": [ - 3721, - 3744 + 3810, + 3833 ], "loc": { "start": { - "line": 157, + "line": 163, "column": 3 }, "end": { - "line": 157, + "line": 163, "column": 26 } } @@ -4287,16 +4434,16 @@ "type": "Identifier", "name": "magFilter", "range": [ - 3750, - 3759 + 3839, + 3848 ], "loc": { "start": { - "line": 158, + "line": 164, "column": 3 }, "end": { - "line": 158, + "line": 164, "column": 12 } } @@ -4305,16 +4452,16 @@ "type": "Identifier", "name": "LinearFilter", "range": [ - 3761, - 3773 + 3850, + 3862 ], "loc": { "start": { - "line": 158, + "line": 164, "column": 14 }, "end": { - "line": 158, + "line": 164, "column": 26 } } @@ -4324,78 +4471,78 @@ "shorthand": false, "computed": false, "range": [ - 3750, - 3773 + 3839, + 3862 ], "loc": { "start": { - "line": 158, + "line": 164, "column": 3 }, "end": { - "line": 158, + "line": 164, "column": 26 } } } ], "range": [ - 3715, - 3778 + 3804, + 3867 ], "loc": { "start": { - "line": 156, + "line": 162, "column": 54 }, "end": { - "line": 159, + "line": 165, "column": 3 } } } ], "range": [ - 3687, - 3779 + 3776, + 3868 ], "loc": { "start": { - "line": 156, + "line": 162, "column": 26 }, "end": { - "line": 159, + "line": 165, "column": 4 } } }, "range": [ - 3663, - 3779 + 3752, + 3868 ], "loc": { "start": { - "line": 156, + "line": 162, "column": 2 }, "end": { - "line": 159, + "line": 165, "column": 4 } } }, "range": [ - 3663, - 3780 + 3752, + 3869 ], "loc": { "start": { - "line": 156, + "line": 162, "column": 2 }, "end": { - "line": 159, + "line": 165, "column": 5 } }, @@ -4404,16 +4551,16 @@ "type": "Block", "value": "*\r\n\t\t * A render target for the masked light scene.\r\n\t\t *\r\n\t\t * @type {WebGLRenderTarget}\r\n\t\t * @private\r\n\t\t ", "range": [ - 3544, - 3657 + 3633, + 3746 ], "loc": { "start": { - "line": 149, + "line": 155, "column": 2 }, "end": { - "line": 154, + "line": 160, "column": 5 } } @@ -4437,16 +4584,16 @@ "object": { "type": "ThisExpression", "range": [ - 3786, - 3790 + 3875, + 3879 ], "loc": { "start": { - "line": 161, + "line": 167, "column": 2 }, "end": { - "line": 161, + "line": 167, "column": 6 } } @@ -4455,31 +4602,31 @@ "type": "Identifier", "name": "renderTargetMask", "range": [ - 3791, - 3807 + 3880, + 3896 ], "loc": { "start": { - "line": 161, + "line": 167, "column": 7 }, "end": { - "line": 161, + "line": 167, "column": 23 } } }, "range": [ - 3786, - 3807 + 3875, + 3896 ], "loc": { "start": { - "line": 161, + "line": 167, "column": 2 }, "end": { - "line": 161, + "line": 167, "column": 23 } } @@ -4488,31 +4635,31 @@ "type": "Identifier", "name": "texture", "range": [ - 3808, - 3815 + 3897, + 3904 ], "loc": { "start": { - "line": 161, + "line": 167, "column": 24 }, "end": { - "line": 161, + "line": 167, "column": 31 } } }, "range": [ - 3786, - 3815 + 3875, + 3904 ], "loc": { "start": { - "line": 161, + "line": 167, "column": 2 }, "end": { - "line": 161, + "line": 167, "column": 31 } } @@ -4521,31 +4668,31 @@ "type": "Identifier", "name": "name", "range": [ - 3816, - 3820 + 3905, + 3909 ], "loc": { "start": { - "line": 161, + "line": 167, "column": 32 }, "end": { - "line": 161, + "line": 167, "column": 36 } } }, "range": [ - 3786, - 3820 + 3875, + 3909 ], "loc": { "start": { - "line": 161, + "line": 167, "column": 2 }, "end": { - "line": 161, + "line": 167, "column": 36 } } @@ -4555,46 +4702,46 @@ "value": "GodRays.Mask", "raw": "\"GodRays.Mask\"", "range": [ - 3823, - 3837 + 3912, + 3926 ], "loc": { "start": { - "line": 161, + "line": 167, "column": 39 }, "end": { - "line": 161, + "line": 167, "column": 53 } } }, "range": [ - 3786, - 3837 + 3875, + 3926 ], "loc": { "start": { - "line": 161, + "line": 167, "column": 2 }, "end": { - "line": 161, + "line": 167, "column": 53 } } }, "range": [ - 3786, - 3838 + 3875, + 3927 ], "loc": { "start": { - "line": 161, + "line": 167, "column": 2 }, "end": { - "line": 161, + "line": 167, "column": 54 } } @@ -4616,16 +4763,16 @@ "object": { "type": "ThisExpression", "range": [ - 3842, - 3846 + 3931, + 3935 ], "loc": { "start": { - "line": 162, + "line": 168, "column": 2 }, "end": { - "line": 162, + "line": 168, "column": 6 } } @@ -4634,31 +4781,31 @@ "type": "Identifier", "name": "renderTargetMask", "range": [ - 3847, - 3863 + 3936, + 3952 ], "loc": { "start": { - "line": 162, + "line": 168, "column": 7 }, "end": { - "line": 162, + "line": 168, "column": 23 } } }, "range": [ - 3842, - 3863 + 3931, + 3952 ], "loc": { "start": { - "line": 162, + "line": 168, "column": 2 }, "end": { - "line": 162, + "line": 168, "column": 23 } } @@ -4667,31 +4814,31 @@ "type": "Identifier", "name": "texture", "range": [ - 3864, - 3871 + 3953, + 3960 ], "loc": { "start": { - "line": 162, + "line": 168, "column": 24 }, "end": { - "line": 162, + "line": 168, "column": 31 } } }, "range": [ - 3842, - 3871 + 3931, + 3960 ], "loc": { "start": { - "line": 162, + "line": 168, "column": 2 }, "end": { - "line": 162, + "line": 168, "column": 31 } } @@ -4700,31 +4847,31 @@ "type": "Identifier", "name": "generateMipmaps", "range": [ - 3872, - 3887 + 3961, + 3976 ], "loc": { "start": { - "line": 162, + "line": 168, "column": 32 }, "end": { - "line": 162, + "line": 168, "column": 47 } } }, "range": [ - 3842, - 3887 + 3931, + 3976 ], "loc": { "start": { - "line": 162, + "line": 168, "column": 2 }, "end": { - "line": 162, + "line": 168, "column": 47 } } @@ -4734,46 +4881,46 @@ "value": false, "raw": "false", "range": [ - 3890, - 3895 + 3979, + 3984 ], "loc": { "start": { - "line": 162, + "line": 168, "column": 50 }, "end": { - "line": 162, + "line": 168, "column": 55 } } }, "range": [ - 3842, - 3895 + 3931, + 3984 ], "loc": { "start": { - "line": 162, + "line": 168, "column": 2 }, "end": { - "line": 162, + "line": 168, "column": 55 } } }, "range": [ - 3842, - 3896 + 3931, + 3985 ], "loc": { "start": { - "line": 162, + "line": 168, "column": 2 }, "end": { - "line": 162, + "line": 168, "column": 56 } }, @@ -4782,16 +4929,16 @@ "type": "Block", "value": "*\r\n\t\t * The light source.\r\n\t\t *\r\n\t\t * @type {Object3D}\r\n\t\t ", "range": [ - 3902, - 3965 + 3991, + 4054 ], "loc": { "start": { - "line": 164, + "line": 170, "column": 2 }, "end": { - "line": 168, + "line": 174, "column": 5 } } @@ -4809,16 +4956,16 @@ "object": { "type": "ThisExpression", "range": [ - 3971, - 3975 + 4060, + 4064 ], "loc": { "start": { - "line": 170, + "line": 176, "column": 2 }, "end": { - "line": 170, + "line": 176, "column": 6 } } @@ -4827,31 +4974,31 @@ "type": "Identifier", "name": "lightSource", "range": [ - 3976, - 3987 + 4065, + 4076 ], "loc": { "start": { - "line": 170, + "line": 176, "column": 7 }, "end": { - "line": 170, + "line": 176, "column": 18 } } }, "range": [ - 3971, - 3987 + 4060, + 4076 ], "loc": { "start": { - "line": 170, + "line": 176, "column": 2 }, "end": { - "line": 170, + "line": 176, "column": 18 } } @@ -4860,46 +5007,46 @@ "type": "Identifier", "name": "lightSource", "range": [ - 3990, - 4001 + 4079, + 4090 ], "loc": { "start": { - "line": 170, + "line": 176, "column": 21 }, "end": { - "line": 170, + "line": 176, "column": 32 } } }, "range": [ - 3971, - 4001 + 4060, + 4090 ], "loc": { "start": { - "line": 170, + "line": 176, "column": 2 }, "end": { - "line": 170, + "line": 176, "column": 32 } } }, "range": [ - 3971, - 4002 + 4060, + 4091 ], "loc": { "start": { - "line": 170, + "line": 176, "column": 2 }, "end": { - "line": 170, + "line": 176, "column": 33 } }, @@ -4908,16 +5055,16 @@ "type": "Block", "value": "*\r\n\t\t * The light source.\r\n\t\t *\r\n\t\t * @type {Object3D}\r\n\t\t ", "range": [ - 3902, - 3965 + 3991, + 4054 ], "loc": { "start": { - "line": 164, + "line": 170, "column": 2 }, "end": { - "line": 168, + "line": 174, "column": 5 } } @@ -4928,16 +5075,16 @@ "type": "Block", "value": "*\r\n\t\t * The light position in screen space.\r\n\t\t *\r\n\t\t * @type {Vector3}\r\n\t\t * @private\r\n\t\t ", "range": [ - 4008, - 4103 + 4097, + 4192 ], "loc": { "start": { - "line": 172, + "line": 178, "column": 2 }, "end": { - "line": 177, + "line": 183, "column": 5 } } @@ -4955,16 +5102,16 @@ "object": { "type": "ThisExpression", "range": [ - 4109, - 4113 + 4198, + 4202 ], "loc": { "start": { - "line": 179, + "line": 185, "column": 2 }, "end": { - "line": 179, + "line": 185, "column": 6 } } @@ -4973,31 +5120,31 @@ "type": "Identifier", "name": "screenPosition", "range": [ - 4114, - 4128 + 4203, + 4217 ], "loc": { "start": { - "line": 179, + "line": 185, "column": 7 }, "end": { - "line": 179, + "line": 185, "column": 21 } } }, "range": [ - 4109, - 4128 + 4198, + 4217 ], "loc": { "start": { - "line": 179, + "line": 185, "column": 2 }, "end": { - "line": 179, + "line": 185, "column": 21 } } @@ -5008,62 +5155,62 @@ "type": "Identifier", "name": "Vector3", "range": [ - 4135, - 4142 + 4224, + 4231 ], "loc": { "start": { - "line": 179, + "line": 185, "column": 28 }, "end": { - "line": 179, + "line": 185, "column": 35 } } }, "arguments": [], "range": [ - 4131, - 4144 + 4220, + 4233 ], "loc": { "start": { - "line": 179, + "line": 185, "column": 24 }, "end": { - "line": 179, + "line": 185, "column": 37 } } }, "range": [ - 4109, - 4144 + 4198, + 4233 ], "loc": { "start": { - "line": 179, + "line": 185, "column": 2 }, "end": { - "line": 179, + "line": 185, "column": 37 } } }, "range": [ - 4109, - 4145 + 4198, + 4234 ], "loc": { "start": { - "line": 179, + "line": 185, "column": 2 }, "end": { - "line": 179, + "line": 185, "column": 38 } }, @@ -5072,16 +5219,16 @@ "type": "Block", "value": "*\r\n\t\t * The light position in screen space.\r\n\t\t *\r\n\t\t * @type {Vector3}\r\n\t\t * @private\r\n\t\t ", "range": [ - 4008, - 4103 + 4097, + 4192 ], "loc": { "start": { - "line": 172, + "line": 178, "column": 2 }, "end": { - "line": 177, + "line": 183, "column": 5 } } @@ -5092,16 +5239,16 @@ "type": "Block", "value": "*\r\n\t\t * A god rays shader material.\r\n\t\t *\r\n\t\t * @type {GodRaysMaterial}\r\n\t\t * @private\r\n\t\t ", "range": [ - 4151, - 4246 + 4240, + 4335 ], "loc": { "start": { - "line": 181, + "line": 187, "column": 2 }, "end": { - "line": 186, + "line": 192, "column": 5 } } @@ -5119,16 +5266,16 @@ "object": { "type": "ThisExpression", "range": [ - 4252, - 4256 + 4341, + 4345 ], "loc": { "start": { - "line": 188, + "line": 194, "column": 2 }, "end": { - "line": 188, + "line": 194, "column": 6 } } @@ -5137,31 +5284,31 @@ "type": "Identifier", "name": "godRaysMaterial", "range": [ - 4257, - 4272 + 4346, + 4361 ], "loc": { "start": { - "line": 188, + "line": 194, "column": 7 }, "end": { - "line": 188, + "line": 194, "column": 22 } } }, "range": [ - 4252, - 4272 + 4341, + 4361 ], "loc": { "start": { - "line": 188, + "line": 194, "column": 2 }, "end": { - "line": 188, + "line": 194, "column": 22 } } @@ -5172,62 +5319,62 @@ "type": "Identifier", "name": "GodRaysMaterial", "range": [ - 4279, - 4294 + 4368, + 4383 ], "loc": { "start": { - "line": 188, + "line": 194, "column": 29 }, "end": { - "line": 188, + "line": 194, "column": 44 } } }, "arguments": [], "range": [ - 4275, - 4296 + 4364, + 4385 ], "loc": { "start": { - "line": 188, + "line": 194, "column": 25 }, "end": { - "line": 188, + "line": 194, "column": 46 } } }, "range": [ - 4252, - 4296 + 4341, + 4385 ], "loc": { "start": { - "line": 188, + "line": 194, "column": 2 }, "end": { - "line": 188, + "line": 194, "column": 46 } } }, "range": [ - 4252, - 4297 + 4341, + 4386 ], "loc": { "start": { - "line": 188, + "line": 194, "column": 2 }, "end": { - "line": 188, + "line": 194, "column": 47 } }, @@ -5236,16 +5383,16 @@ "type": "Block", "value": "*\r\n\t\t * A god rays shader material.\r\n\t\t *\r\n\t\t * @type {GodRaysMaterial}\r\n\t\t * @private\r\n\t\t ", "range": [ - 4151, - 4246 + 4240, + 4335 ], "loc": { "start": { - "line": 181, + "line": 187, "column": 2 }, "end": { - "line": 186, + "line": 192, "column": 5 } } @@ -5272,16 +5419,16 @@ "object": { "type": "ThisExpression", "range": [ - 4301, - 4305 + 4390, + 4394 ], "loc": { "start": { - "line": 189, + "line": 195, "column": 2 }, "end": { - "line": 189, + "line": 195, "column": 6 } } @@ -5290,31 +5437,31 @@ "type": "Identifier", "name": "godRaysMaterial", "range": [ - 4306, - 4321 + 4395, + 4410 ], "loc": { "start": { - "line": 189, + "line": 195, "column": 7 }, "end": { - "line": 189, + "line": 195, "column": 22 } } }, "range": [ - 4301, - 4321 + 4390, + 4410 ], "loc": { "start": { - "line": 189, + "line": 195, "column": 2 }, "end": { - "line": 189, + "line": 195, "column": 22 } } @@ -5323,31 +5470,31 @@ "type": "Identifier", "name": "uniforms", "range": [ - 4322, - 4330 + 4411, + 4419 ], "loc": { "start": { - "line": 189, + "line": 195, "column": 23 }, "end": { - "line": 189, + "line": 195, "column": 31 } } }, "range": [ - 4301, - 4330 + 4390, + 4419 ], "loc": { "start": { - "line": 189, + "line": 195, "column": 2 }, "end": { - "line": 189, + "line": 195, "column": 31 } } @@ -5356,31 +5503,31 @@ "type": "Identifier", "name": "lightPosition", "range": [ - 4331, - 4344 + 4420, + 4433 ], "loc": { "start": { - "line": 189, + "line": 195, "column": 32 }, "end": { - "line": 189, + "line": 195, "column": 45 } } }, "range": [ - 4301, - 4344 + 4390, + 4433 ], "loc": { "start": { - "line": 189, + "line": 195, "column": 2 }, "end": { - "line": 189, + "line": 195, "column": 45 } } @@ -5389,31 +5536,31 @@ "type": "Identifier", "name": "value", "range": [ - 4345, - 4350 + 4434, + 4439 ], "loc": { "start": { - "line": 189, + "line": 195, "column": 46 }, "end": { - "line": 189, + "line": 195, "column": 51 } } }, "range": [ - 4301, - 4350 + 4390, + 4439 ], "loc": { "start": { - "line": 189, + "line": 195, "column": 2 }, "end": { - "line": 189, + "line": 195, "column": 51 } } @@ -5424,16 +5571,16 @@ "object": { "type": "ThisExpression", "range": [ - 4353, - 4357 + 4442, + 4446 ], "loc": { "start": { - "line": 189, + "line": 195, "column": 54 }, "end": { - "line": 189, + "line": 195, "column": 58 } } @@ -5442,61 +5589,61 @@ "type": "Identifier", "name": "screenPosition", "range": [ - 4358, - 4372 + 4447, + 4461 ], "loc": { "start": { - "line": 189, + "line": 195, "column": 59 }, "end": { - "line": 189, + "line": 195, "column": 73 } } }, "range": [ - 4353, - 4372 + 4442, + 4461 ], "loc": { "start": { - "line": 189, + "line": 195, "column": 54 }, "end": { - "line": 189, + "line": 195, "column": 73 } } }, "range": [ - 4301, - 4372 + 4390, + 4461 ], "loc": { "start": { - "line": 189, + "line": 195, "column": 2 }, "end": { - "line": 189, + "line": 195, "column": 73 } } }, "range": [ - 4301, - 4373 + 4390, + 4462 ], "loc": { "start": { - "line": 189, + "line": 195, "column": 2 }, "end": { - "line": 189, + "line": 195, "column": 74 } } @@ -5513,16 +5660,16 @@ "type": "Identifier", "name": "options", "range": [ - 4382, - 4389 + 4471, + 4478 ], "loc": { "start": { - "line": 191, + "line": 197, "column": 5 }, "end": { - "line": 191, + "line": 197, "column": 12 } } @@ -5531,31 +5678,31 @@ "type": "Identifier", "name": "exposure", "range": [ - 4390, - 4398 + 4479, + 4487 ], "loc": { "start": { - "line": 191, + "line": 197, "column": 13 }, "end": { - "line": 191, + "line": 197, "column": 21 } } }, "range": [ - 4382, - 4398 + 4471, + 4487 ], "loc": { "start": { - "line": 191, + "line": 197, "column": 5 }, "end": { - "line": 191, + "line": 197, "column": 21 } } @@ -5564,31 +5711,31 @@ "type": "Identifier", "name": "undefined", "range": [ - 4403, - 4412 + 4492, + 4501 ], "loc": { "start": { - "line": 191, + "line": 197, "column": 26 }, "end": { - "line": 191, + "line": 197, "column": 35 } } }, "range": [ - 4382, - 4412 + 4471, + 4501 ], "loc": { "start": { - "line": 191, + "line": 197, "column": 5 }, "end": { - "line": 191, + "line": 197, "column": 35 } } @@ -5616,16 +5763,16 @@ "object": { "type": "ThisExpression", "range": [ - 4416, - 4420 + 4505, + 4509 ], "loc": { "start": { - "line": 191, + "line": 197, "column": 39 }, "end": { - "line": 191, + "line": 197, "column": 43 } } @@ -5634,31 +5781,31 @@ "type": "Identifier", "name": "godRaysMaterial", "range": [ - 4421, - 4436 + 4510, + 4525 ], "loc": { "start": { - "line": 191, + "line": 197, "column": 44 }, "end": { - "line": 191, + "line": 197, "column": 59 } } }, "range": [ - 4416, - 4436 + 4505, + 4525 ], "loc": { "start": { - "line": 191, + "line": 197, "column": 39 }, "end": { - "line": 191, + "line": 197, "column": 59 } } @@ -5667,31 +5814,31 @@ "type": "Identifier", "name": "uniforms", "range": [ - 4437, - 4445 + 4526, + 4534 ], "loc": { "start": { - "line": 191, + "line": 197, "column": 60 }, "end": { - "line": 191, + "line": 197, "column": 68 } } }, "range": [ - 4416, - 4445 + 4505, + 4534 ], "loc": { "start": { - "line": 191, + "line": 197, "column": 39 }, "end": { - "line": 191, + "line": 197, "column": 68 } } @@ -5700,31 +5847,31 @@ "type": "Identifier", "name": "exposure", "range": [ - 4446, - 4454 + 4535, + 4543 ], "loc": { "start": { - "line": 191, + "line": 197, "column": 69 }, "end": { - "line": 191, + "line": 197, "column": 77 } } }, "range": [ - 4416, - 4454 + 4505, + 4543 ], "loc": { "start": { - "line": 191, + "line": 197, "column": 39 }, "end": { - "line": 191, + "line": 197, "column": 77 } } @@ -5733,31 +5880,31 @@ "type": "Identifier", "name": "value", "range": [ - 4455, - 4460 + 4544, + 4549 ], "loc": { "start": { - "line": 191, + "line": 197, "column": 78 }, "end": { - "line": 191, + "line": 197, "column": 83 } } }, "range": [ - 4416, - 4460 + 4505, + 4549 ], "loc": { "start": { - "line": 191, + "line": 197, "column": 39 }, "end": { - "line": 191, + "line": 197, "column": 83 } } @@ -5769,16 +5916,16 @@ "type": "Identifier", "name": "options", "range": [ - 4463, - 4470 + 4552, + 4559 ], "loc": { "start": { - "line": 191, + "line": 197, "column": 86 }, "end": { - "line": 191, + "line": 197, "column": 93 } } @@ -5787,93 +5934,93 @@ "type": "Identifier", "name": "exposure", "range": [ - 4471, - 4479 + 4560, + 4568 ], "loc": { "start": { - "line": 191, + "line": 197, "column": 94 }, "end": { - "line": 191, + "line": 197, "column": 102 } } }, "range": [ - 4463, - 4479 + 4552, + 4568 ], "loc": { "start": { - "line": 191, + "line": 197, "column": 86 }, "end": { - "line": 191, + "line": 197, "column": 102 } } }, "range": [ - 4416, - 4479 + 4505, + 4568 ], "loc": { "start": { - "line": 191, + "line": 197, "column": 39 }, "end": { - "line": 191, + "line": 197, "column": 102 } } }, "range": [ - 4416, - 4480 + 4505, + 4569 ], "loc": { "start": { - "line": 191, + "line": 197, "column": 39 }, "end": { - "line": 191, + "line": 197, "column": 103 } } } ], "range": [ - 4414, - 4482 + 4503, + 4571 ], "loc": { "start": { - "line": 191, + "line": 197, "column": 37 }, "end": { - "line": 191, + "line": 197, "column": 105 } } }, "alternate": null, "range": [ - 4379, - 4482 + 4468, + 4571 ], "loc": { "start": { - "line": 191, + "line": 197, "column": 2 }, "end": { - "line": 191, + "line": 197, "column": 105 } } @@ -5890,16 +6037,16 @@ "type": "Identifier", "name": "options", "range": [ - 4489, - 4496 + 4578, + 4585 ], "loc": { "start": { - "line": 192, + "line": 198, "column": 5 }, "end": { - "line": 192, + "line": 198, "column": 12 } } @@ -5908,31 +6055,31 @@ "type": "Identifier", "name": "density", "range": [ - 4497, - 4504 + 4586, + 4593 ], "loc": { "start": { - "line": 192, + "line": 198, "column": 13 }, "end": { - "line": 192, + "line": 198, "column": 20 } } }, "range": [ - 4489, - 4504 + 4578, + 4593 ], "loc": { "start": { - "line": 192, + "line": 198, "column": 5 }, "end": { - "line": 192, + "line": 198, "column": 20 } } @@ -5941,31 +6088,31 @@ "type": "Identifier", "name": "undefined", "range": [ - 4509, - 4518 + 4598, + 4607 ], "loc": { "start": { - "line": 192, + "line": 198, "column": 25 }, "end": { - "line": 192, + "line": 198, "column": 34 } } }, "range": [ - 4489, - 4518 + 4578, + 4607 ], "loc": { "start": { - "line": 192, + "line": 198, "column": 5 }, "end": { - "line": 192, + "line": 198, "column": 34 } } @@ -5993,16 +6140,16 @@ "object": { "type": "ThisExpression", "range": [ - 4522, - 4526 + 4611, + 4615 ], "loc": { "start": { - "line": 192, + "line": 198, "column": 38 }, "end": { - "line": 192, + "line": 198, "column": 42 } } @@ -6011,31 +6158,31 @@ "type": "Identifier", "name": "godRaysMaterial", "range": [ - 4527, - 4542 + 4616, + 4631 ], "loc": { "start": { - "line": 192, + "line": 198, "column": 43 }, "end": { - "line": 192, + "line": 198, "column": 58 } } }, "range": [ - 4522, - 4542 + 4611, + 4631 ], "loc": { "start": { - "line": 192, + "line": 198, "column": 38 }, "end": { - "line": 192, + "line": 198, "column": 58 } } @@ -6044,31 +6191,31 @@ "type": "Identifier", "name": "uniforms", "range": [ - 4543, - 4551 + 4632, + 4640 ], "loc": { "start": { - "line": 192, + "line": 198, "column": 59 }, "end": { - "line": 192, + "line": 198, "column": 67 } } }, "range": [ - 4522, - 4551 + 4611, + 4640 ], "loc": { "start": { - "line": 192, + "line": 198, "column": 38 }, "end": { - "line": 192, + "line": 198, "column": 67 } } @@ -6077,31 +6224,31 @@ "type": "Identifier", "name": "density", "range": [ - 4552, - 4559 + 4641, + 4648 ], "loc": { "start": { - "line": 192, + "line": 198, "column": 68 }, "end": { - "line": 192, + "line": 198, "column": 75 } } }, "range": [ - 4522, - 4559 + 4611, + 4648 ], "loc": { "start": { - "line": 192, + "line": 198, "column": 38 }, "end": { - "line": 192, + "line": 198, "column": 75 } } @@ -6110,31 +6257,31 @@ "type": "Identifier", "name": "value", "range": [ - 4560, - 4565 + 4649, + 4654 ], "loc": { "start": { - "line": 192, + "line": 198, "column": 76 }, "end": { - "line": 192, + "line": 198, "column": 81 } } }, "range": [ - 4522, - 4565 + 4611, + 4654 ], "loc": { "start": { - "line": 192, + "line": 198, "column": 38 }, "end": { - "line": 192, + "line": 198, "column": 81 } } @@ -6146,16 +6293,16 @@ "type": "Identifier", "name": "options", "range": [ - 4568, - 4575 + 4657, + 4664 ], "loc": { "start": { - "line": 192, + "line": 198, "column": 84 }, "end": { - "line": 192, + "line": 198, "column": 91 } } @@ -6164,93 +6311,93 @@ "type": "Identifier", "name": "density", "range": [ - 4576, - 4583 + 4665, + 4672 ], "loc": { "start": { - "line": 192, + "line": 198, "column": 92 }, "end": { - "line": 192, + "line": 198, "column": 99 } } }, "range": [ - 4568, - 4583 + 4657, + 4672 ], "loc": { "start": { - "line": 192, + "line": 198, "column": 84 }, "end": { - "line": 192, + "line": 198, "column": 99 } } }, "range": [ - 4522, - 4583 + 4611, + 4672 ], "loc": { "start": { - "line": 192, + "line": 198, "column": 38 }, "end": { - "line": 192, + "line": 198, "column": 99 } } }, "range": [ - 4522, - 4584 + 4611, + 4673 ], "loc": { "start": { - "line": 192, + "line": 198, "column": 38 }, "end": { - "line": 192, + "line": 198, "column": 100 } } } ], "range": [ - 4520, - 4586 + 4609, + 4675 ], "loc": { "start": { - "line": 192, + "line": 198, "column": 36 }, "end": { - "line": 192, + "line": 198, "column": 102 } } }, "alternate": null, "range": [ - 4486, - 4586 + 4575, + 4675 ], "loc": { "start": { - "line": 192, + "line": 198, "column": 2 }, "end": { - "line": 192, + "line": 198, "column": 102 } } @@ -6267,16 +6414,16 @@ "type": "Identifier", "name": "options", "range": [ - 4593, - 4600 + 4682, + 4689 ], "loc": { "start": { - "line": 193, + "line": 199, "column": 5 }, "end": { - "line": 193, + "line": 199, "column": 12 } } @@ -6285,31 +6432,31 @@ "type": "Identifier", "name": "decay", "range": [ - 4601, - 4606 + 4690, + 4695 ], "loc": { "start": { - "line": 193, + "line": 199, "column": 13 }, "end": { - "line": 193, + "line": 199, "column": 18 } } }, "range": [ - 4593, - 4606 + 4682, + 4695 ], "loc": { "start": { - "line": 193, + "line": 199, "column": 5 }, "end": { - "line": 193, + "line": 199, "column": 18 } } @@ -6318,31 +6465,31 @@ "type": "Identifier", "name": "undefined", "range": [ - 4611, - 4620 + 4700, + 4709 ], "loc": { "start": { - "line": 193, + "line": 199, "column": 23 }, "end": { - "line": 193, + "line": 199, "column": 32 } } }, "range": [ - 4593, - 4620 + 4682, + 4709 ], "loc": { "start": { - "line": 193, + "line": 199, "column": 5 }, "end": { - "line": 193, + "line": 199, "column": 32 } } @@ -6370,16 +6517,16 @@ "object": { "type": "ThisExpression", "range": [ - 4624, - 4628 + 4713, + 4717 ], "loc": { "start": { - "line": 193, + "line": 199, "column": 36 }, "end": { - "line": 193, + "line": 199, "column": 40 } } @@ -6388,31 +6535,31 @@ "type": "Identifier", "name": "godRaysMaterial", "range": [ - 4629, - 4644 + 4718, + 4733 ], "loc": { "start": { - "line": 193, + "line": 199, "column": 41 }, "end": { - "line": 193, + "line": 199, "column": 56 } } }, "range": [ - 4624, - 4644 + 4713, + 4733 ], "loc": { "start": { - "line": 193, + "line": 199, "column": 36 }, "end": { - "line": 193, + "line": 199, "column": 56 } } @@ -6421,31 +6568,31 @@ "type": "Identifier", "name": "uniforms", "range": [ - 4645, - 4653 + 4734, + 4742 ], "loc": { "start": { - "line": 193, + "line": 199, "column": 57 }, "end": { - "line": 193, + "line": 199, "column": 65 } } }, "range": [ - 4624, - 4653 + 4713, + 4742 ], "loc": { "start": { - "line": 193, + "line": 199, "column": 36 }, "end": { - "line": 193, + "line": 199, "column": 65 } } @@ -6454,31 +6601,31 @@ "type": "Identifier", "name": "decay", "range": [ - 4654, - 4659 + 4743, + 4748 ], "loc": { "start": { - "line": 193, + "line": 199, "column": 66 }, "end": { - "line": 193, + "line": 199, "column": 71 } } }, "range": [ - 4624, - 4659 + 4713, + 4748 ], "loc": { "start": { - "line": 193, + "line": 199, "column": 36 }, "end": { - "line": 193, + "line": 199, "column": 71 } } @@ -6487,31 +6634,31 @@ "type": "Identifier", "name": "value", "range": [ - 4660, - 4665 + 4749, + 4754 ], "loc": { "start": { - "line": 193, + "line": 199, "column": 72 }, "end": { - "line": 193, + "line": 199, "column": 77 } } }, "range": [ - 4624, - 4665 + 4713, + 4754 ], "loc": { "start": { - "line": 193, + "line": 199, "column": 36 }, "end": { - "line": 193, + "line": 199, "column": 77 } } @@ -6523,16 +6670,16 @@ "type": "Identifier", "name": "options", "range": [ - 4668, - 4675 + 4757, + 4764 ], "loc": { "start": { - "line": 193, + "line": 199, "column": 80 }, "end": { - "line": 193, + "line": 199, "column": 87 } } @@ -6541,93 +6688,93 @@ "type": "Identifier", "name": "decay", "range": [ - 4676, - 4681 + 4765, + 4770 ], "loc": { "start": { - "line": 193, + "line": 199, "column": 88 }, "end": { - "line": 193, + "line": 199, "column": 93 } } }, "range": [ - 4668, - 4681 + 4757, + 4770 ], "loc": { "start": { - "line": 193, + "line": 199, "column": 80 }, "end": { - "line": 193, + "line": 199, "column": 93 } } }, "range": [ - 4624, - 4681 + 4713, + 4770 ], "loc": { "start": { - "line": 193, + "line": 199, "column": 36 }, "end": { - "line": 193, + "line": 199, "column": 93 } } }, "range": [ - 4624, - 4682 + 4713, + 4771 ], "loc": { "start": { - "line": 193, + "line": 199, "column": 36 }, "end": { - "line": 193, + "line": 199, "column": 94 } } } ], "range": [ - 4622, - 4684 + 4711, + 4773 ], "loc": { "start": { - "line": 193, + "line": 199, "column": 34 }, "end": { - "line": 193, + "line": 199, "column": 96 } } }, "alternate": null, "range": [ - 4590, - 4684 + 4679, + 4773 ], "loc": { "start": { - "line": 193, + "line": 199, "column": 2 }, "end": { - "line": 193, + "line": 199, "column": 96 } } @@ -6644,16 +6791,16 @@ "type": "Identifier", "name": "options", "range": [ - 4691, - 4698 + 4780, + 4787 ], "loc": { "start": { - "line": 194, + "line": 200, "column": 5 }, "end": { - "line": 194, + "line": 200, "column": 12 } } @@ -6662,31 +6809,31 @@ "type": "Identifier", "name": "weight", "range": [ - 4699, - 4705 + 4788, + 4794 ], "loc": { "start": { - "line": 194, + "line": 200, "column": 13 }, "end": { - "line": 194, + "line": 200, "column": 19 } } }, "range": [ - 4691, - 4705 + 4780, + 4794 ], "loc": { "start": { - "line": 194, + "line": 200, "column": 5 }, "end": { - "line": 194, + "line": 200, "column": 19 } } @@ -6695,31 +6842,31 @@ "type": "Identifier", "name": "undefined", "range": [ - 4710, - 4719 + 4799, + 4808 ], "loc": { "start": { - "line": 194, + "line": 200, "column": 24 }, "end": { - "line": 194, + "line": 200, "column": 33 } } }, "range": [ - 4691, - 4719 + 4780, + 4808 ], "loc": { "start": { - "line": 194, + "line": 200, "column": 5 }, "end": { - "line": 194, + "line": 200, "column": 33 } } @@ -6747,16 +6894,16 @@ "object": { "type": "ThisExpression", "range": [ - 4723, - 4727 + 4812, + 4816 ], "loc": { "start": { - "line": 194, + "line": 200, "column": 37 }, "end": { - "line": 194, + "line": 200, "column": 41 } } @@ -6765,31 +6912,31 @@ "type": "Identifier", "name": "godRaysMaterial", "range": [ - 4728, - 4743 + 4817, + 4832 ], "loc": { "start": { - "line": 194, + "line": 200, "column": 42 }, "end": { - "line": 194, + "line": 200, "column": 57 } } }, "range": [ - 4723, - 4743 + 4812, + 4832 ], "loc": { "start": { - "line": 194, + "line": 200, "column": 37 }, "end": { - "line": 194, + "line": 200, "column": 57 } } @@ -6798,31 +6945,31 @@ "type": "Identifier", "name": "uniforms", "range": [ - 4744, - 4752 + 4833, + 4841 ], "loc": { "start": { - "line": 194, + "line": 200, "column": 58 }, "end": { - "line": 194, + "line": 200, "column": 66 } } }, "range": [ - 4723, - 4752 + 4812, + 4841 ], "loc": { "start": { - "line": 194, + "line": 200, "column": 37 }, "end": { - "line": 194, + "line": 200, "column": 66 } } @@ -6831,31 +6978,31 @@ "type": "Identifier", "name": "weight", "range": [ - 4753, - 4759 + 4842, + 4848 ], "loc": { "start": { - "line": 194, + "line": 200, "column": 67 }, "end": { - "line": 194, + "line": 200, "column": 73 } } }, "range": [ - 4723, - 4759 + 4812, + 4848 ], "loc": { "start": { - "line": 194, + "line": 200, "column": 37 }, "end": { - "line": 194, + "line": 200, "column": 73 } } @@ -6864,31 +7011,31 @@ "type": "Identifier", "name": "value", "range": [ - 4760, - 4765 + 4849, + 4854 ], "loc": { "start": { - "line": 194, + "line": 200, "column": 74 }, "end": { - "line": 194, + "line": 200, "column": 79 } } }, "range": [ - 4723, - 4765 + 4812, + 4854 ], "loc": { "start": { - "line": 194, + "line": 200, "column": 37 }, "end": { - "line": 194, + "line": 200, "column": 79 } } @@ -6900,16 +7047,16 @@ "type": "Identifier", "name": "options", "range": [ - 4768, - 4775 + 4857, + 4864 ], "loc": { "start": { - "line": 194, + "line": 200, "column": 82 }, "end": { - "line": 194, + "line": 200, "column": 89 } } @@ -6918,93 +7065,93 @@ "type": "Identifier", "name": "weight", "range": [ - 4776, - 4782 + 4865, + 4871 ], "loc": { "start": { - "line": 194, + "line": 200, "column": 90 }, "end": { - "line": 194, + "line": 200, "column": 96 } } }, "range": [ - 4768, - 4782 + 4857, + 4871 ], "loc": { "start": { - "line": 194, + "line": 200, "column": 82 }, "end": { - "line": 194, + "line": 200, "column": 96 } } }, "range": [ - 4723, - 4782 + 4812, + 4871 ], "loc": { "start": { - "line": 194, + "line": 200, "column": 37 }, "end": { - "line": 194, + "line": 200, "column": 96 } } }, "range": [ - 4723, - 4783 + 4812, + 4872 ], "loc": { "start": { - "line": 194, + "line": 200, "column": 37 }, "end": { - "line": 194, + "line": 200, "column": 97 } } } ], "range": [ - 4721, - 4785 + 4810, + 4874 ], "loc": { "start": { - "line": 194, + "line": 200, "column": 35 }, "end": { - "line": 194, + "line": 200, "column": 99 } } }, "alternate": null, "range": [ - 4688, - 4785 + 4777, + 4874 ], "loc": { "start": { - "line": 194, + "line": 200, "column": 2 }, "end": { - "line": 194, + "line": 200, "column": 99 } } @@ -7021,16 +7168,16 @@ "type": "Identifier", "name": "options", "range": [ - 4792, - 4799 + 4881, + 4888 ], "loc": { "start": { - "line": 195, + "line": 201, "column": 5 }, "end": { - "line": 195, + "line": 201, "column": 12 } } @@ -7039,31 +7186,31 @@ "type": "Identifier", "name": "clampMax", "range": [ - 4800, - 4808 + 4889, + 4897 ], "loc": { "start": { - "line": 195, + "line": 201, "column": 13 }, "end": { - "line": 195, + "line": 201, "column": 21 } } }, "range": [ - 4792, - 4808 + 4881, + 4897 ], "loc": { "start": { - "line": 195, + "line": 201, "column": 5 }, "end": { - "line": 195, + "line": 201, "column": 21 } } @@ -7072,31 +7219,31 @@ "type": "Identifier", "name": "undefined", "range": [ - 4813, - 4822 + 4902, + 4911 ], "loc": { "start": { - "line": 195, + "line": 201, "column": 26 }, "end": { - "line": 195, + "line": 201, "column": 35 } } }, "range": [ - 4792, - 4822 + 4881, + 4911 ], "loc": { "start": { - "line": 195, + "line": 201, "column": 5 }, "end": { - "line": 195, + "line": 201, "column": 35 } } @@ -7124,16 +7271,16 @@ "object": { "type": "ThisExpression", "range": [ - 4826, - 4830 + 4915, + 4919 ], "loc": { "start": { - "line": 195, + "line": 201, "column": 39 }, "end": { - "line": 195, + "line": 201, "column": 43 } } @@ -7142,31 +7289,31 @@ "type": "Identifier", "name": "godRaysMaterial", "range": [ - 4831, - 4846 + 4920, + 4935 ], "loc": { "start": { - "line": 195, + "line": 201, "column": 44 }, "end": { - "line": 195, + "line": 201, "column": 59 } } }, "range": [ - 4826, - 4846 + 4915, + 4935 ], "loc": { "start": { - "line": 195, + "line": 201, "column": 39 }, "end": { - "line": 195, + "line": 201, "column": 59 } } @@ -7175,31 +7322,31 @@ "type": "Identifier", "name": "uniforms", "range": [ - 4847, - 4855 + 4936, + 4944 ], "loc": { "start": { - "line": 195, + "line": 201, "column": 60 }, "end": { - "line": 195, + "line": 201, "column": 68 } } }, "range": [ - 4826, - 4855 + 4915, + 4944 ], "loc": { "start": { - "line": 195, + "line": 201, "column": 39 }, "end": { - "line": 195, + "line": 201, "column": 68 } } @@ -7208,31 +7355,31 @@ "type": "Identifier", "name": "clampMax", "range": [ - 4856, - 4864 + 4945, + 4953 ], "loc": { "start": { - "line": 195, + "line": 201, "column": 69 }, "end": { - "line": 195, + "line": 201, "column": 77 } } }, "range": [ - 4826, - 4864 + 4915, + 4953 ], "loc": { "start": { - "line": 195, + "line": 201, "column": 39 }, "end": { - "line": 195, + "line": 201, "column": 77 } } @@ -7241,31 +7388,31 @@ "type": "Identifier", "name": "value", "range": [ - 4865, - 4870 + 4954, + 4959 ], "loc": { "start": { - "line": 195, + "line": 201, "column": 78 }, "end": { - "line": 195, + "line": 201, "column": 83 } } }, "range": [ - 4826, - 4870 + 4915, + 4959 ], "loc": { "start": { - "line": 195, + "line": 201, "column": 39 }, "end": { - "line": 195, + "line": 201, "column": 83 } } @@ -7277,16 +7424,16 @@ "type": "Identifier", "name": "options", "range": [ - 4873, - 4880 + 4962, + 4969 ], "loc": { "start": { - "line": 195, + "line": 201, "column": 86 }, "end": { - "line": 195, + "line": 201, "column": 93 } } @@ -7295,93 +7442,93 @@ "type": "Identifier", "name": "clampMax", "range": [ - 4881, - 4889 + 4970, + 4978 ], "loc": { "start": { - "line": 195, + "line": 201, "column": 94 }, "end": { - "line": 195, + "line": 201, "column": 102 } } }, "range": [ - 4873, - 4889 + 4962, + 4978 ], "loc": { "start": { - "line": 195, + "line": 201, "column": 86 }, "end": { - "line": 195, + "line": 201, "column": 102 } } }, "range": [ - 4826, - 4889 + 4915, + 4978 ], "loc": { "start": { - "line": 195, + "line": 201, "column": 39 }, "end": { - "line": 195, + "line": 201, "column": 102 } } }, "range": [ - 4826, - 4890 + 4915, + 4979 ], "loc": { "start": { - "line": 195, + "line": 201, "column": 39 }, "end": { - "line": 195, + "line": 201, "column": 103 } } } ], "range": [ - 4824, - 4892 + 4913, + 4981 ], "loc": { "start": { - "line": 195, + "line": 201, "column": 37 }, "end": { - "line": 195, + "line": 201, "column": 105 } } }, "alternate": null, "range": [ - 4789, - 4892 + 4878, + 4981 ], "loc": { "start": { - "line": 195, + "line": 201, "column": 2 }, "end": { - "line": 195, + "line": 201, "column": 105 } } @@ -7397,16 +7544,16 @@ "object": { "type": "ThisExpression", "range": [ - 4898, - 4902 + 4987, + 4991 ], "loc": { "start": { - "line": 197, + "line": 203, "column": 2 }, "end": { - "line": 197, + "line": 203, "column": 6 } } @@ -7415,31 +7562,31 @@ "type": "Identifier", "name": "samples", "range": [ - 4903, - 4910 + 4992, + 4999 ], "loc": { "start": { - "line": 197, + "line": 203, "column": 7 }, "end": { - "line": 197, + "line": 203, "column": 14 } } }, "range": [ - 4898, - 4910 + 4987, + 4999 ], "loc": { "start": { - "line": 197, + "line": 203, "column": 2 }, "end": { - "line": 197, + "line": 203, "column": 14 } } @@ -7451,16 +7598,16 @@ "type": "Identifier", "name": "options", "range": [ - 4913, - 4920 + 5002, + 5009 ], "loc": { "start": { - "line": 197, + "line": 203, "column": 17 }, "end": { - "line": 197, + "line": 203, "column": 24 } } @@ -7469,61 +7616,61 @@ "type": "Identifier", "name": "samples", "range": [ - 4921, - 4928 + 5010, + 5017 ], "loc": { "start": { - "line": 197, + "line": 203, "column": 25 }, "end": { - "line": 197, + "line": 203, "column": 32 } } }, "range": [ - 4913, - 4928 + 5002, + 5017 ], "loc": { "start": { - "line": 197, + "line": 203, "column": 17 }, "end": { - "line": 197, + "line": 203, "column": 32 } } }, "range": [ - 4898, - 4928 + 4987, + 5017 ], "loc": { "start": { - "line": 197, + "line": 203, "column": 2 }, "end": { - "line": 197, + "line": 203, "column": 32 } } }, "range": [ - 4898, - 4929 + 4987, + 5018 ], "loc": { "start": { - "line": 197, + "line": 203, "column": 2 }, "end": { - "line": 197, + "line": 203, "column": 33 } }, @@ -7532,16 +7679,16 @@ "type": "Block", "value": "*\r\n\t\t * A combine shader material.\r\n\t\t *\r\n\t\t * @type {CombineMaterial}\r\n\t\t * @private\r\n\t\t ", "range": [ - 4935, - 5029 + 5024, + 5118 ], "loc": { "start": { - "line": 199, + "line": 205, "column": 2 }, "end": { - "line": 204, + "line": 210, "column": 5 } } @@ -7559,16 +7706,16 @@ "object": { "type": "ThisExpression", "range": [ - 5035, - 5039 + 5124, + 5128 ], "loc": { "start": { - "line": 206, + "line": 212, "column": 2 }, "end": { - "line": 206, + "line": 212, "column": 6 } } @@ -7577,31 +7724,31 @@ "type": "Identifier", "name": "combineMaterial", "range": [ - 5040, - 5055 + 5129, + 5144 ], "loc": { "start": { - "line": 206, + "line": 212, "column": 7 }, "end": { - "line": 206, + "line": 212, "column": 22 } } }, "range": [ - 5035, - 5055 + 5124, + 5144 ], "loc": { "start": { - "line": 206, + "line": 212, "column": 2 }, "end": { - "line": 206, + "line": 212, "column": 22 } } @@ -7612,16 +7759,16 @@ "type": "Identifier", "name": "CombineMaterial", "range": [ - 5062, - 5077 + 5151, + 5166 ], "loc": { "start": { - "line": 206, + "line": 212, "column": 29 }, "end": { - "line": 206, + "line": 212, "column": 44 } } @@ -7639,16 +7786,16 @@ "type": "Identifier", "name": "options", "range": [ - 5079, - 5086 + 5168, + 5175 ], "loc": { "start": { - "line": 206, + "line": 212, "column": 46 }, "end": { - "line": 206, + "line": 212, "column": 53 } } @@ -7657,31 +7804,31 @@ "type": "Identifier", "name": "screenMode", "range": [ - 5087, - 5097 + 5176, + 5186 ], "loc": { "start": { - "line": 206, + "line": 212, "column": 54 }, "end": { - "line": 206, + "line": 212, "column": 64 } } }, "range": [ - 5079, - 5097 + 5168, + 5186 ], "loc": { "start": { - "line": 206, + "line": 212, "column": 46 }, "end": { - "line": 206, + "line": 212, "column": 64 } } @@ -7690,31 +7837,31 @@ "type": "Identifier", "name": "undefined", "range": [ - 5102, - 5111 + 5191, + 5200 ], "loc": { "start": { - "line": 206, + "line": 212, "column": 69 }, "end": { - "line": 206, + "line": 212, "column": 78 } } }, "range": [ - 5079, - 5111 + 5168, + 5200 ], "loc": { "start": { - "line": 206, + "line": 212, "column": 46 }, "end": { - "line": 206, + "line": 212, "column": 78 } } @@ -7726,16 +7873,16 @@ "type": "Identifier", "name": "options", "range": [ - 5115, - 5122 + 5204, + 5211 ], "loc": { "start": { - "line": 206, + "line": 212, "column": 82 }, "end": { - "line": 206, + "line": 212, "column": 89 } } @@ -7744,31 +7891,31 @@ "type": "Identifier", "name": "screenMode", "range": [ - 5123, - 5133 + 5212, + 5222 ], "loc": { "start": { - "line": 206, + "line": 212, "column": 90 }, "end": { - "line": 206, + "line": 212, "column": 100 } } }, "range": [ - 5115, - 5133 + 5204, + 5222 ], "loc": { "start": { - "line": 206, + "line": 212, "column": 82 }, "end": { - "line": 206, + "line": 212, "column": 100 } } @@ -7778,77 +7925,77 @@ "value": true, "raw": "true", "range": [ - 5136, - 5140 + 5225, + 5229 ], "loc": { "start": { - "line": 206, + "line": 212, "column": 103 }, "end": { - "line": 206, + "line": 212, "column": 107 } } }, "range": [ - 5078, - 5140 + 5167, + 5229 ], "loc": { "start": { - "line": 206, + "line": 212, "column": 45 }, "end": { - "line": 206, + "line": 212, "column": 107 } } } ], "range": [ - 5058, - 5141 + 5147, + 5230 ], "loc": { "start": { - "line": 206, + "line": 212, "column": 25 }, "end": { - "line": 206, + "line": 212, "column": 108 } } }, "range": [ - 5035, - 5141 + 5124, + 5230 ], "loc": { "start": { - "line": 206, + "line": 212, "column": 2 }, "end": { - "line": 206, + "line": 212, "column": 108 } } }, "range": [ - 5035, - 5142 + 5124, + 5231 ], "loc": { "start": { - "line": 206, + "line": 212, "column": 2 }, "end": { - "line": 206, + "line": 212, "column": 109 } }, @@ -7857,16 +8004,16 @@ "type": "Block", "value": "*\r\n\t\t * A combine shader material.\r\n\t\t *\r\n\t\t * @type {CombineMaterial}\r\n\t\t * @private\r\n\t\t ", "range": [ - 4935, - 5029 + 5024, + 5118 ], "loc": { "start": { - "line": 199, + "line": 205, "column": 2 }, "end": { - "line": 204, + "line": 210, "column": 5 } } @@ -7884,16 +8031,16 @@ "object": { "type": "ThisExpression", "range": [ - 5148, - 5152 + 5237, + 5241 ], "loc": { "start": { - "line": 208, + "line": 214, "column": 2 }, "end": { - "line": 208, + "line": 214, "column": 6 } } @@ -7902,31 +8049,31 @@ "type": "Identifier", "name": "intensity", "range": [ - 5153, - 5162 + 5242, + 5251 ], "loc": { "start": { - "line": 208, + "line": 214, "column": 7 }, "end": { - "line": 208, + "line": 214, "column": 16 } } }, "range": [ - 5148, - 5162 + 5237, + 5251 ], "loc": { "start": { - "line": 208, + "line": 214, "column": 2 }, "end": { - "line": 208, + "line": 214, "column": 16 } } @@ -7938,16 +8085,16 @@ "type": "Identifier", "name": "options", "range": [ - 5165, - 5172 + 5254, + 5261 ], "loc": { "start": { - "line": 208, + "line": 214, "column": 19 }, "end": { - "line": 208, + "line": 214, "column": 26 } } @@ -7956,61 +8103,61 @@ "type": "Identifier", "name": "intensity", "range": [ - 5173, - 5182 + 5262, + 5271 ], "loc": { "start": { - "line": 208, + "line": 214, "column": 27 }, "end": { - "line": 208, + "line": 214, "column": 36 } } }, "range": [ - 5165, - 5182 + 5254, + 5271 ], "loc": { "start": { - "line": 208, + "line": 214, "column": 19 }, "end": { - "line": 208, + "line": 214, "column": 36 } } }, "range": [ - 5148, - 5182 + 5237, + 5271 ], "loc": { "start": { - "line": 208, + "line": 214, "column": 2 }, "end": { - "line": 208, + "line": 214, "column": 36 } } }, "range": [ - 5148, - 5183 + 5237, + 5272 ], "loc": { "start": { - "line": 208, + "line": 214, "column": 2 }, "end": { - "line": 208, + "line": 214, "column": 37 } } @@ -8018,7 +8165,7 @@ ], "range": [ 1990, - 5189 + 5278 ], "loc": { "start": { @@ -8026,7 +8173,7 @@ "column": 55 }, "end": { - "line": 210, + "line": 216, "column": 2 } } @@ -8035,7 +8182,7 @@ "expression": false, "range": [ 1947, - 5189 + 5278 ], "loc": { "start": { @@ -8043,7 +8190,7 @@ "column": 12 }, "end": { - "line": 210, + "line": 216, "column": 2 } } @@ -8052,7 +8199,7 @@ "computed": false, "range": [ 1936, - 5189 + 5278 ], "loc": { "start": { @@ -8060,7 +8207,7 @@ "column": 1 }, "end": { - "line": 210, + "line": 216, "column": 2 } }, @@ -8089,16 +8236,16 @@ "type": "Block", "value": "*\r\n\t * The resolution scale.\r\n\t *\r\n\t * @type {Number}\r\n\t * @default 0.5\r\n\t ", "range": [ - 5194, - 5273 + 5283, + 5362 ], "loc": { "start": { - "line": 212, + "line": 218, "column": 1 }, "end": { - "line": 217, + "line": 223, "column": 4 } } @@ -8112,16 +8259,16 @@ "type": "Identifier", "name": "resolutionScale", "range": [ - 5282, - 5297 + 5371, + 5386 ], "loc": { "start": { - "line": 219, + "line": 225, "column": 5 }, "end": { - "line": 219, + "line": 225, "column": 20 } } @@ -8144,16 +8291,16 @@ "object": { "type": "ThisExpression", "range": [ - 5309, - 5313 + 5398, + 5402 ], "loc": { "start": { - "line": 219, + "line": 225, "column": 32 }, "end": { - "line": 219, + "line": 225, "column": 36 } } @@ -8162,31 +8309,31 @@ "type": "Identifier", "name": "blurPass", "range": [ - 5314, - 5322 + 5403, + 5411 ], "loc": { "start": { - "line": 219, + "line": 225, "column": 37 }, "end": { - "line": 219, + "line": 225, "column": 45 } } }, "range": [ - 5309, - 5322 + 5398, + 5411 ], "loc": { "start": { - "line": 219, + "line": 225, "column": 32 }, "end": { - "line": 219, + "line": 225, "column": 45 } } @@ -8195,62 +8342,62 @@ "type": "Identifier", "name": "resolutionScale", "range": [ - 5323, - 5338 + 5412, + 5427 ], "loc": { "start": { - "line": 219, + "line": 225, "column": 46 }, "end": { - "line": 219, + "line": 225, "column": 61 } } }, "range": [ - 5309, - 5338 + 5398, + 5427 ], "loc": { "start": { - "line": 219, + "line": 225, "column": 32 }, "end": { - "line": 219, + "line": 225, "column": 61 } } }, "range": [ - 5302, - 5339 + 5391, + 5428 ], "loc": { "start": { - "line": 219, + "line": 225, "column": 25 }, "end": { - "line": 219, + "line": 225, "column": 62 } } } ], "range": [ - 5300, - 5341 + 5389, + 5430 ], "loc": { "start": { - "line": 219, + "line": 225, "column": 23 }, "end": { - "line": 219, + "line": 225, "column": 64 } } @@ -8258,16 +8405,16 @@ "generator": false, "expression": false, "range": [ - 5297, - 5341 + 5386, + 5430 ], "loc": { "start": { - "line": 219, + "line": 225, "column": 20 }, "end": { - "line": 219, + "line": 225, "column": 64 } } @@ -8275,16 +8422,16 @@ "kind": "get", "computed": false, "range": [ - 5278, - 5341 + 5367, + 5430 ], "loc": { "start": { - "line": 219, + "line": 225, "column": 1 }, "end": { - "line": 219, + "line": 225, "column": 64 } }, @@ -8293,16 +8440,16 @@ "type": "Block", "value": "*\r\n\t * The resolution scale.\r\n\t *\r\n\t * @type {Number}\r\n\t * @default 0.5\r\n\t ", "range": [ - 5194, - 5273 + 5283, + 5362 ], "loc": { "start": { - "line": 212, + "line": 218, "column": 1 }, "end": { - "line": 217, + "line": 223, "column": 4 } } @@ -8313,16 +8460,16 @@ "type": "Block", "value": "*\r\n\t * You need to call {@link EffectComposer#setSize} after changing this value.\r\n\t *\r\n\t * @type {Number}\r\n\t ", "range": [ - 5346, - 5460 + 5435, + 5549 ], "loc": { "start": { - "line": 221, + "line": 227, "column": 1 }, "end": { - "line": 225, + "line": 231, "column": 4 } } @@ -8336,16 +8483,16 @@ "type": "Identifier", "name": "resolutionScale", "range": [ - 5469, - 5484 + 5558, + 5573 ], "loc": { "start": { - "line": 227, + "line": 233, "column": 5 }, "end": { - "line": 227, + "line": 233, "column": 20 } } @@ -8358,16 +8505,16 @@ "type": "Identifier", "name": "x", "range": [ - 5485, - 5486 + 5574, + 5575 ], "loc": { "start": { - "line": 227, + "line": 233, "column": 21 }, "end": { - "line": 227, + "line": 233, "column": 22 } } @@ -8390,16 +8537,16 @@ "object": { "type": "ThisExpression", "range": [ - 5495, - 5499 + 5584, + 5588 ], "loc": { "start": { - "line": 229, + "line": 235, "column": 2 }, "end": { - "line": 229, + "line": 235, "column": 6 } } @@ -8408,31 +8555,31 @@ "type": "Identifier", "name": "blurPass", "range": [ - 5500, - 5508 + 5589, + 5597 ], "loc": { "start": { - "line": 229, + "line": 235, "column": 7 }, "end": { - "line": 229, + "line": 235, "column": 15 } } }, "range": [ - 5495, - 5508 + 5584, + 5597 ], "loc": { "start": { - "line": 229, + "line": 235, "column": 2 }, "end": { - "line": 229, + "line": 235, "column": 15 } } @@ -8441,31 +8588,31 @@ "type": "Identifier", "name": "resolutionScale", "range": [ - 5509, - 5524 + 5598, + 5613 ], "loc": { "start": { - "line": 229, + "line": 235, "column": 16 }, "end": { - "line": 229, + "line": 235, "column": 31 } } }, "range": [ - 5495, - 5524 + 5584, + 5613 ], "loc": { "start": { - "line": 229, + "line": 235, "column": 2 }, "end": { - "line": 229, + "line": 235, "column": 31 } } @@ -8474,62 +8621,62 @@ "type": "Identifier", "name": "x", "range": [ - 5527, - 5528 + 5616, + 5617 ], "loc": { "start": { - "line": 229, + "line": 235, "column": 34 }, "end": { - "line": 229, + "line": 235, "column": 35 } } }, "range": [ - 5495, - 5528 + 5584, + 5617 ], "loc": { "start": { - "line": 229, + "line": 235, "column": 2 }, "end": { - "line": 229, + "line": 235, "column": 35 } } }, "range": [ - 5495, - 5529 + 5584, + 5618 ], "loc": { "start": { - "line": 229, + "line": 235, "column": 2 }, "end": { - "line": 229, + "line": 235, "column": 36 } } } ], "range": [ - 5488, - 5535 + 5577, + 5624 ], "loc": { "start": { - "line": 227, + "line": 233, "column": 24 }, "end": { - "line": 231, + "line": 237, "column": 2 } } @@ -8537,16 +8684,16 @@ "generator": false, "expression": false, "range": [ - 5484, - 5535 + 5573, + 5624 ], "loc": { "start": { - "line": 227, + "line": 233, "column": 20 }, "end": { - "line": 231, + "line": 237, "column": 2 } } @@ -8554,16 +8701,16 @@ "kind": "set", "computed": false, "range": [ - 5465, - 5535 + 5554, + 5624 ], "loc": { "start": { - "line": 227, + "line": 233, "column": 1 }, "end": { - "line": 231, + "line": 237, "column": 2 } }, @@ -8572,16 +8719,16 @@ "type": "Block", "value": "*\r\n\t * You need to call {@link EffectComposer#setSize} after changing this value.\r\n\t *\r\n\t * @type {Number}\r\n\t ", "range": [ - 5346, - 5460 + 5435, + 5549 ], "loc": { "start": { - "line": 221, + "line": 227, "column": 1 }, "end": { - "line": 225, + "line": 231, "column": 4 } } @@ -8592,16 +8739,16 @@ "type": "Block", "value": "*\r\n\t * The blur kernel size.\r\n\t *\r\n\t * @type {KernelSize}\r\n\t * @default KernelSize.LARGE\r\n\t ", "range": [ - 5540, - 5636 + 5629, + 5725 ], "loc": { "start": { - "line": 233, + "line": 239, "column": 1 }, "end": { - "line": 238, + "line": 244, "column": 4 } } @@ -8615,16 +8762,16 @@ "type": "Identifier", "name": "kernelSize", "range": [ - 5645, - 5655 + 5734, + 5744 ], "loc": { "start": { - "line": 240, + "line": 246, "column": 5 }, "end": { - "line": 240, + "line": 246, "column": 15 } } @@ -8647,16 +8794,16 @@ "object": { "type": "ThisExpression", "range": [ - 5667, - 5671 + 5756, + 5760 ], "loc": { "start": { - "line": 240, + "line": 246, "column": 27 }, "end": { - "line": 240, + "line": 246, "column": 31 } } @@ -8665,31 +8812,31 @@ "type": "Identifier", "name": "blurPass", "range": [ - 5672, - 5680 + 5761, + 5769 ], "loc": { "start": { - "line": 240, + "line": 246, "column": 32 }, "end": { - "line": 240, + "line": 246, "column": 40 } } }, "range": [ - 5667, - 5680 + 5756, + 5769 ], "loc": { "start": { - "line": 240, + "line": 246, "column": 27 }, "end": { - "line": 240, + "line": 246, "column": 40 } } @@ -8698,62 +8845,62 @@ "type": "Identifier", "name": "kernelSize", "range": [ - 5681, - 5691 + 5770, + 5780 ], "loc": { "start": { - "line": 240, + "line": 246, "column": 41 }, "end": { - "line": 240, + "line": 246, "column": 51 } } }, "range": [ - 5667, - 5691 + 5756, + 5780 ], "loc": { "start": { - "line": 240, + "line": 246, "column": 27 }, "end": { - "line": 240, + "line": 246, "column": 51 } } }, "range": [ - 5660, - 5692 + 5749, + 5781 ], "loc": { "start": { - "line": 240, + "line": 246, "column": 20 }, "end": { - "line": 240, + "line": 246, "column": 52 } } } ], "range": [ - 5658, - 5694 + 5747, + 5783 ], "loc": { "start": { - "line": 240, + "line": 246, "column": 18 }, "end": { - "line": 240, + "line": 246, "column": 54 } } @@ -8761,16 +8908,16 @@ "generator": false, "expression": false, "range": [ - 5655, - 5694 + 5744, + 5783 ], "loc": { "start": { - "line": 240, + "line": 246, "column": 15 }, "end": { - "line": 240, + "line": 246, "column": 54 } } @@ -8778,16 +8925,16 @@ "kind": "get", "computed": false, "range": [ - 5641, - 5694 + 5730, + 5783 ], "loc": { "start": { - "line": 240, + "line": 246, "column": 1 }, "end": { - "line": 240, + "line": 246, "column": 54 } }, @@ -8796,16 +8943,16 @@ "type": "Block", "value": "*\r\n\t * The blur kernel size.\r\n\t *\r\n\t * @type {KernelSize}\r\n\t * @default KernelSize.LARGE\r\n\t ", "range": [ - 5540, - 5636 + 5629, + 5725 ], "loc": { "start": { - "line": 233, + "line": 239, "column": 1 }, "end": { - "line": 238, + "line": 244, "column": 4 } } @@ -8816,16 +8963,16 @@ "type": "Block", "value": "*\r\n\t * @type {KernelSize}\r\n\t ", "range": [ - 5699, - 5732 + 5788, + 5821 ], "loc": { "start": { - "line": 242, + "line": 248, "column": 1 }, "end": { - "line": 244, + "line": 250, "column": 4 } } @@ -8839,16 +8986,16 @@ "type": "Identifier", "name": "kernelSize", "range": [ - 5741, - 5751 + 5830, + 5840 ], "loc": { "start": { - "line": 246, + "line": 252, "column": 5 }, "end": { - "line": 246, + "line": 252, "column": 15 } } @@ -8861,16 +9008,16 @@ "type": "Identifier", "name": "x", "range": [ - 5752, - 5753 + 5841, + 5842 ], "loc": { "start": { - "line": 246, + "line": 252, "column": 16 }, "end": { - "line": 246, + "line": 252, "column": 17 } } @@ -8893,16 +9040,16 @@ "object": { "type": "ThisExpression", "range": [ - 5762, - 5766 + 5851, + 5855 ], "loc": { "start": { - "line": 248, + "line": 254, "column": 2 }, "end": { - "line": 248, + "line": 254, "column": 6 } } @@ -8911,31 +9058,31 @@ "type": "Identifier", "name": "blurPass", "range": [ - 5767, - 5775 + 5856, + 5864 ], "loc": { "start": { - "line": 248, + "line": 254, "column": 7 }, "end": { - "line": 248, + "line": 254, "column": 15 } } }, "range": [ - 5762, - 5775 + 5851, + 5864 ], "loc": { "start": { - "line": 248, + "line": 254, "column": 2 }, "end": { - "line": 248, + "line": 254, "column": 15 } } @@ -8944,31 +9091,31 @@ "type": "Identifier", "name": "kernelSize", "range": [ - 5776, - 5786 + 5865, + 5875 ], "loc": { "start": { - "line": 248, + "line": 254, "column": 16 }, "end": { - "line": 248, + "line": 254, "column": 26 } } }, "range": [ - 5762, - 5786 + 5851, + 5875 ], "loc": { "start": { - "line": 248, + "line": 254, "column": 2 }, "end": { - "line": 248, + "line": 254, "column": 26 } } @@ -8977,62 +9124,62 @@ "type": "Identifier", "name": "x", "range": [ - 5789, - 5790 + 5878, + 5879 ], "loc": { "start": { - "line": 248, + "line": 254, "column": 29 }, "end": { - "line": 248, + "line": 254, "column": 30 } } }, "range": [ - 5762, - 5790 + 5851, + 5879 ], "loc": { "start": { - "line": 248, + "line": 254, "column": 2 }, "end": { - "line": 248, + "line": 254, "column": 30 } } }, "range": [ - 5762, - 5791 + 5851, + 5880 ], "loc": { "start": { - "line": 248, + "line": 254, "column": 2 }, "end": { - "line": 248, + "line": 254, "column": 31 } } } ], "range": [ - 5755, - 5797 + 5844, + 5886 ], "loc": { "start": { - "line": 246, + "line": 252, "column": 19 }, "end": { - "line": 250, + "line": 256, "column": 2 } } @@ -9040,16 +9187,16 @@ "generator": false, "expression": false, "range": [ - 5751, - 5797 + 5840, + 5886 ], "loc": { "start": { - "line": 246, + "line": 252, "column": 15 }, "end": { - "line": 250, + "line": 256, "column": 2 } } @@ -9057,16 +9204,16 @@ "kind": "set", "computed": false, "range": [ - 5737, - 5797 + 5826, + 5886 ], "loc": { "start": { - "line": 246, + "line": 252, "column": 1 }, "end": { - "line": 250, + "line": 256, "column": 2 } }, @@ -9075,16 +9222,16 @@ "type": "Block", "value": "*\r\n\t * @type {KernelSize}\r\n\t ", "range": [ - 5699, - 5732 + 5788, + 5821 ], "loc": { "start": { - "line": 242, + "line": 248, "column": 1 }, "end": { - "line": 244, + "line": 250, "column": 4 } } @@ -9095,16 +9242,16 @@ "type": "Block", "value": "*\r\n\t * The overall intensity of the effect.\r\n\t *\r\n\t * @type {Number}\r\n\t * @default 1.0\r\n\t ", "range": [ - 5802, - 5896 + 5891, + 5985 ], "loc": { "start": { - "line": 252, + "line": 258, "column": 1 }, "end": { - "line": 257, + "line": 263, "column": 4 } } @@ -9118,16 +9265,16 @@ "type": "Identifier", "name": "intensity", "range": [ - 5905, - 5914 + 5994, + 6003 ], "loc": { "start": { - "line": 259, + "line": 265, "column": 5 }, "end": { - "line": 259, + "line": 265, "column": 14 } } @@ -9156,16 +9303,16 @@ "object": { "type": "ThisExpression", "range": [ - 5926, - 5930 + 6015, + 6019 ], "loc": { "start": { - "line": 259, + "line": 265, "column": 26 }, "end": { - "line": 259, + "line": 265, "column": 30 } } @@ -9174,31 +9321,31 @@ "type": "Identifier", "name": "combineMaterial", "range": [ - 5931, - 5946 + 6020, + 6035 ], "loc": { "start": { - "line": 259, + "line": 265, "column": 31 }, "end": { - "line": 259, + "line": 265, "column": 46 } } }, "range": [ - 5926, - 5946 + 6015, + 6035 ], "loc": { "start": { - "line": 259, + "line": 265, "column": 26 }, "end": { - "line": 259, + "line": 265, "column": 46 } } @@ -9207,31 +9354,31 @@ "type": "Identifier", "name": "uniforms", "range": [ - 5947, - 5955 + 6036, + 6044 ], "loc": { "start": { - "line": 259, + "line": 265, "column": 47 }, "end": { - "line": 259, + "line": 265, "column": 55 } } }, "range": [ - 5926, - 5955 + 6015, + 6044 ], "loc": { "start": { - "line": 259, + "line": 265, "column": 26 }, "end": { - "line": 259, + "line": 265, "column": 55 } } @@ -9240,31 +9387,31 @@ "type": "Identifier", "name": "opacity2", "range": [ - 5956, - 5964 + 6045, + 6053 ], "loc": { "start": { - "line": 259, + "line": 265, "column": 56 }, "end": { - "line": 259, + "line": 265, "column": 64 } } }, "range": [ - 5926, - 5964 + 6015, + 6053 ], "loc": { "start": { - "line": 259, + "line": 265, "column": 26 }, "end": { - "line": 259, + "line": 265, "column": 64 } } @@ -9273,62 +9420,62 @@ "type": "Identifier", "name": "value", "range": [ - 5965, - 5970 + 6054, + 6059 ], "loc": { "start": { - "line": 259, + "line": 265, "column": 65 }, "end": { - "line": 259, + "line": 265, "column": 70 } } }, "range": [ - 5926, - 5970 + 6015, + 6059 ], "loc": { "start": { - "line": 259, + "line": 265, "column": 26 }, "end": { - "line": 259, + "line": 265, "column": 70 } } }, "range": [ - 5919, - 5971 + 6008, + 6060 ], "loc": { "start": { - "line": 259, + "line": 265, "column": 19 }, "end": { - "line": 259, + "line": 265, "column": 71 } } } ], "range": [ - 5917, - 5973 + 6006, + 6062 ], "loc": { "start": { - "line": 259, + "line": 265, "column": 17 }, "end": { - "line": 259, + "line": 265, "column": 73 } } @@ -9336,16 +9483,16 @@ "generator": false, "expression": false, "range": [ - 5914, - 5973 + 6003, + 6062 ], "loc": { "start": { - "line": 259, + "line": 265, "column": 14 }, "end": { - "line": 259, + "line": 265, "column": 73 } } @@ -9353,16 +9500,16 @@ "kind": "get", "computed": false, "range": [ - 5901, - 5973 + 5990, + 6062 ], "loc": { "start": { - "line": 259, + "line": 265, "column": 1 }, "end": { - "line": 259, + "line": 265, "column": 73 } }, @@ -9371,16 +9518,16 @@ "type": "Block", "value": "*\r\n\t * The overall intensity of the effect.\r\n\t *\r\n\t * @type {Number}\r\n\t * @default 1.0\r\n\t ", "range": [ - 5802, - 5896 + 5891, + 5985 ], "loc": { "start": { - "line": 252, + "line": 258, "column": 1 }, "end": { - "line": 257, + "line": 263, "column": 4 } } @@ -9391,16 +9538,16 @@ "type": "Block", "value": "*\r\n\t * @type {Number}\r\n\t ", "range": [ - 5978, - 6007 + 6067, + 6096 ], "loc": { "start": { - "line": 261, + "line": 267, "column": 1 }, "end": { - "line": 263, + "line": 269, "column": 4 } } @@ -9414,16 +9561,16 @@ "type": "Identifier", "name": "intensity", "range": [ - 6016, - 6025 + 6105, + 6114 ], "loc": { "start": { - "line": 265, + "line": 271, "column": 5 }, "end": { - "line": 265, + "line": 271, "column": 14 } } @@ -9436,16 +9583,16 @@ "type": "Identifier", "name": "x", "range": [ - 6026, - 6027 + 6115, + 6116 ], "loc": { "start": { - "line": 265, + "line": 271, "column": 15 }, "end": { - "line": 265, + "line": 271, "column": 16 } } @@ -9466,32 +9613,32 @@ "type": "Identifier", "name": "x", "range": [ - 6046, - 6047 + 6135, + 6136 ], "loc": { "start": { - "line": 267, + "line": 273, "column": 12 }, "end": { - "line": 267, + "line": 273, "column": 13 } } }, "prefix": true, "range": [ - 6039, - 6047 + 6128, + 6136 ], "loc": { "start": { - "line": 267, + "line": 273, "column": 5 }, "end": { - "line": 267, + "line": 273, "column": 13 } } @@ -9501,31 +9648,31 @@ "value": "number", "raw": "\"number\"", "range": [ - 6052, - 6060 + 6141, + 6149 ], "loc": { "start": { - "line": 267, + "line": 273, "column": 18 }, "end": { - "line": 267, + "line": 273, "column": 26 } } }, "range": [ - 6039, - 6060 + 6128, + 6149 ], "loc": { "start": { - "line": 267, + "line": 273, "column": 5 }, "end": { - "line": 267, + "line": 273, "column": 26 } } @@ -9553,16 +9700,16 @@ "object": { "type": "ThisExpression", "range": [ - 6070, - 6074 + 6159, + 6163 ], "loc": { "start": { - "line": 269, + "line": 275, "column": 3 }, "end": { - "line": 269, + "line": 275, "column": 7 } } @@ -9571,31 +9718,31 @@ "type": "Identifier", "name": "combineMaterial", "range": [ - 6075, - 6090 + 6164, + 6179 ], "loc": { "start": { - "line": 269, + "line": 275, "column": 8 }, "end": { - "line": 269, + "line": 275, "column": 23 } } }, "range": [ - 6070, - 6090 + 6159, + 6179 ], "loc": { "start": { - "line": 269, + "line": 275, "column": 3 }, "end": { - "line": 269, + "line": 275, "column": 23 } } @@ -9604,31 +9751,31 @@ "type": "Identifier", "name": "uniforms", "range": [ - 6091, - 6099 + 6180, + 6188 ], "loc": { "start": { - "line": 269, + "line": 275, "column": 24 }, "end": { - "line": 269, + "line": 275, "column": 32 } } }, "range": [ - 6070, - 6099 + 6159, + 6188 ], "loc": { "start": { - "line": 269, + "line": 275, "column": 3 }, "end": { - "line": 269, + "line": 275, "column": 32 } } @@ -9637,31 +9784,31 @@ "type": "Identifier", "name": "opacity2", "range": [ - 6100, - 6108 + 6189, + 6197 ], "loc": { "start": { - "line": 269, + "line": 275, "column": 33 }, "end": { - "line": 269, + "line": 275, "column": 41 } } }, "range": [ - 6070, - 6108 + 6159, + 6197 ], "loc": { "start": { - "line": 269, + "line": 275, "column": 3 }, "end": { - "line": 269, + "line": 275, "column": 41 } } @@ -9670,31 +9817,31 @@ "type": "Identifier", "name": "value", "range": [ - 6109, - 6114 + 6198, + 6203 ], "loc": { "start": { - "line": 269, + "line": 275, "column": 42 }, "end": { - "line": 269, + "line": 275, "column": 47 } } }, "range": [ - 6070, - 6114 + 6159, + 6203 ], "loc": { "start": { - "line": 269, + "line": 275, "column": 3 }, "end": { - "line": 269, + "line": 275, "column": 47 } } @@ -9703,94 +9850,94 @@ "type": "Identifier", "name": "x", "range": [ - 6117, - 6118 + 6206, + 6207 ], "loc": { "start": { - "line": 269, + "line": 275, "column": 50 }, "end": { - "line": 269, + "line": 275, "column": 51 } } }, "range": [ - 6070, - 6118 + 6159, + 6207 ], "loc": { "start": { - "line": 269, + "line": 275, "column": 3 }, "end": { - "line": 269, + "line": 275, "column": 51 } } }, "range": [ - 6070, - 6119 + 6159, + 6208 ], "loc": { "start": { - "line": 269, + "line": 275, "column": 3 }, "end": { - "line": 269, + "line": 275, "column": 52 } } } ], "range": [ - 6062, - 6126 + 6151, + 6215 ], "loc": { "start": { - "line": 267, + "line": 273, "column": 28 }, "end": { - "line": 271, + "line": 277, "column": 3 } } }, "alternate": null, "range": [ - 6036, - 6126 + 6125, + 6215 ], "loc": { "start": { - "line": 267, + "line": 273, "column": 2 }, "end": { - "line": 271, + "line": 277, "column": 3 } } } ], "range": [ - 6029, - 6132 + 6118, + 6221 ], "loc": { "start": { - "line": 265, + "line": 271, "column": 18 }, "end": { - "line": 273, + "line": 279, "column": 2 } } @@ -9798,16 +9945,16 @@ "generator": false, "expression": false, "range": [ - 6025, - 6132 + 6114, + 6221 ], "loc": { "start": { - "line": 265, + "line": 271, "column": 14 }, "end": { - "line": 273, + "line": 279, "column": 2 } } @@ -9815,16 +9962,16 @@ "kind": "set", "computed": false, "range": [ - 6012, - 6132 + 6101, + 6221 ], "loc": { "start": { - "line": 265, + "line": 271, "column": 1 }, "end": { - "line": 273, + "line": 279, "column": 2 } }, @@ -9833,16 +9980,16 @@ "type": "Block", "value": "*\r\n\t * @type {Number}\r\n\t ", "range": [ - 5978, - 6007 + 6067, + 6096 ], "loc": { "start": { - "line": 261, + "line": 267, "column": 1 }, "end": { - "line": 263, + "line": 269, "column": 4 } } @@ -9853,16 +10000,16 @@ "type": "Block", "value": "*\r\n\t * The number of samples per pixel.\r\n\t *\r\n\t * @type {Number}\r\n\t * @default 60\r\n\t ", "range": [ - 6137, - 6226 + 6226, + 6315 ], "loc": { "start": { - "line": 275, + "line": 281, "column": 1 }, "end": { - "line": 280, + "line": 286, "column": 4 } } @@ -9876,16 +10023,16 @@ "type": "Identifier", "name": "samples", "range": [ - 6235, - 6242 + 6324, + 6331 ], "loc": { "start": { - "line": 282, + "line": 288, "column": 5 }, "end": { - "line": 282, + "line": 288, "column": 12 } } @@ -9908,16 +10055,16 @@ "type": "Identifier", "name": "Number", "range": [ - 6254, - 6260 + 6343, + 6349 ], "loc": { "start": { - "line": 282, + "line": 288, "column": 24 }, "end": { - "line": 282, + "line": 288, "column": 30 } } @@ -9926,31 +10073,31 @@ "type": "Identifier", "name": "parseInt", "range": [ - 6261, - 6269 + 6350, + 6358 ], "loc": { "start": { - "line": 282, + "line": 288, "column": 31 }, "end": { - "line": 282, + "line": 288, "column": 39 } } }, "range": [ - 6254, - 6269 + 6343, + 6358 ], "loc": { "start": { - "line": 282, + "line": 288, "column": 24 }, "end": { - "line": 282, + "line": 288, "column": 39 } } @@ -9968,16 +10115,16 @@ "object": { "type": "ThisExpression", "range": [ - 6270, - 6274 + 6359, + 6363 ], "loc": { "start": { - "line": 282, + "line": 288, "column": 40 }, "end": { - "line": 282, + "line": 288, "column": 44 } } @@ -9986,31 +10133,31 @@ "type": "Identifier", "name": "godRaysMaterial", "range": [ - 6275, - 6290 + 6364, + 6379 ], "loc": { "start": { - "line": 282, + "line": 288, "column": 45 }, "end": { - "line": 282, + "line": 288, "column": 60 } } }, "range": [ - 6270, - 6290 + 6359, + 6379 ], "loc": { "start": { - "line": 282, + "line": 288, "column": 40 }, "end": { - "line": 282, + "line": 288, "column": 60 } } @@ -10019,31 +10166,31 @@ "type": "Identifier", "name": "defines", "range": [ - 6291, - 6298 + 6380, + 6387 ], "loc": { "start": { - "line": 282, + "line": 288, "column": 61 }, "end": { - "line": 282, + "line": 288, "column": 68 } } }, "range": [ - 6270, - 6298 + 6359, + 6387 ], "loc": { "start": { - "line": 282, + "line": 288, "column": 40 }, "end": { - "line": 282, + "line": 288, "column": 68 } } @@ -10052,78 +10199,78 @@ "type": "Identifier", "name": "NUM_SAMPLES_INT", "range": [ - 6299, - 6314 + 6388, + 6403 ], "loc": { "start": { - "line": 282, + "line": 288, "column": 69 }, "end": { - "line": 282, + "line": 288, "column": 84 } } }, "range": [ - 6270, - 6314 + 6359, + 6403 ], "loc": { "start": { - "line": 282, + "line": 288, "column": 40 }, "end": { - "line": 282, + "line": 288, "column": 84 } } } ], "range": [ - 6254, - 6315 + 6343, + 6404 ], "loc": { "start": { - "line": 282, + "line": 288, "column": 24 }, "end": { - "line": 282, + "line": 288, "column": 85 } } }, "range": [ - 6247, - 6316 + 6336, + 6405 ], "loc": { "start": { - "line": 282, + "line": 288, "column": 17 }, "end": { - "line": 282, + "line": 288, "column": 86 } } } ], "range": [ - 6245, - 6318 + 6334, + 6407 ], "loc": { "start": { - "line": 282, + "line": 288, "column": 15 }, "end": { - "line": 282, + "line": 288, "column": 88 } } @@ -10131,16 +10278,16 @@ "generator": false, "expression": false, "range": [ - 6242, - 6318 + 6331, + 6407 ], "loc": { "start": { - "line": 282, + "line": 288, "column": 12 }, "end": { - "line": 282, + "line": 288, "column": 88 } } @@ -10148,16 +10295,16 @@ "kind": "get", "computed": false, "range": [ - 6231, - 6318 + 6320, + 6407 ], "loc": { "start": { - "line": 282, + "line": 288, "column": 1 }, "end": { - "line": 282, + "line": 288, "column": 88 } }, @@ -10166,16 +10313,16 @@ "type": "Block", "value": "*\r\n\t * The number of samples per pixel.\r\n\t *\r\n\t * @type {Number}\r\n\t * @default 60\r\n\t ", "range": [ - 6137, - 6226 + 6226, + 6315 ], "loc": { "start": { - "line": 275, + "line": 281, "column": 1 }, "end": { - "line": 280, + "line": 286, "column": 4 } } @@ -10186,16 +10333,16 @@ "type": "Block", "value": "*\r\n\t * This value must be carefully chosen. A higher value directly increases the\r\n\t * GPU load.\r\n\t *\r\n\t * @type {Number}\r\n\t ", "range": [ - 6323, - 6452 + 6412, + 6541 ], "loc": { "start": { - "line": 284, + "line": 290, "column": 1 }, "end": { - "line": 289, + "line": 295, "column": 4 } } @@ -10209,16 +10356,16 @@ "type": "Identifier", "name": "samples", "range": [ - 6461, - 6468 + 6550, + 6557 ], "loc": { "start": { - "line": 291, + "line": 297, "column": 5 }, "end": { - "line": 291, + "line": 297, "column": 12 } } @@ -10231,16 +10378,16 @@ "type": "Identifier", "name": "x", "range": [ - 6469, - 6470 + 6558, + 6559 ], "loc": { "start": { - "line": 291, + "line": 297, "column": 13 }, "end": { - "line": 291, + "line": 297, "column": 14 } } @@ -10261,32 +10408,32 @@ "type": "Identifier", "name": "x", "range": [ - 6489, - 6490 + 6578, + 6579 ], "loc": { "start": { - "line": 293, + "line": 299, "column": 12 }, "end": { - "line": 293, + "line": 299, "column": 13 } } }, "prefix": true, "range": [ - 6482, - 6490 + 6571, + 6579 ], "loc": { "start": { - "line": 293, + "line": 299, "column": 5 }, "end": { - "line": 293, + "line": 299, "column": 13 } } @@ -10296,31 +10443,31 @@ "value": "number", "raw": "\"number\"", "range": [ - 6495, - 6503 + 6584, + 6592 ], "loc": { "start": { - "line": 293, + "line": 299, "column": 18 }, "end": { - "line": 293, + "line": 299, "column": 26 } } }, "range": [ - 6482, - 6503 + 6571, + 6592 ], "loc": { "start": { - "line": 293, + "line": 299, "column": 5 }, "end": { - "line": 293, + "line": 299, "column": 26 } } @@ -10337,16 +10484,16 @@ "type": "Identifier", "name": "x", "range": [ - 6513, - 6514 + 6602, + 6603 ], "loc": { "start": { - "line": 295, + "line": 301, "column": 3 }, "end": { - "line": 295, + "line": 301, "column": 4 } } @@ -10360,16 +10507,16 @@ "type": "Identifier", "name": "Math", "range": [ - 6517, - 6521 + 6606, + 6610 ], "loc": { "start": { - "line": 295, + "line": 301, "column": 7 }, "end": { - "line": 295, + "line": 301, "column": 11 } } @@ -10378,31 +10525,31 @@ "type": "Identifier", "name": "floor", "range": [ - 6522, - 6527 + 6611, + 6616 ], "loc": { "start": { - "line": 295, + "line": 301, "column": 12 }, "end": { - "line": 295, + "line": 301, "column": 17 } } }, "range": [ - 6517, - 6527 + 6606, + 6616 ], "loc": { "start": { - "line": 295, + "line": 301, "column": 7 }, "end": { - "line": 295, + "line": 301, "column": 17 } } @@ -10412,62 +10559,62 @@ "type": "Identifier", "name": "x", "range": [ - 6528, - 6529 + 6617, + 6618 ], "loc": { "start": { - "line": 295, + "line": 301, "column": 18 }, "end": { - "line": 295, + "line": 301, "column": 19 } } } ], "range": [ - 6517, - 6530 + 6606, + 6619 ], "loc": { "start": { - "line": 295, + "line": 301, "column": 7 }, "end": { - "line": 295, + "line": 301, "column": 20 } } }, "range": [ - 6513, - 6530 + 6602, + 6619 ], "loc": { "start": { - "line": 295, + "line": 301, "column": 3 }, "end": { - "line": 295, + "line": 301, "column": 20 } } }, "range": [ - 6513, - 6531 + 6602, + 6620 ], "loc": { "start": { - "line": 295, + "line": 301, "column": 3 }, "end": { - "line": 295, + "line": 301, "column": 21 } } @@ -10489,16 +10636,16 @@ "object": { "type": "ThisExpression", "range": [ - 6538, - 6542 + 6627, + 6631 ], "loc": { "start": { - "line": 297, + "line": 303, "column": 3 }, "end": { - "line": 297, + "line": 303, "column": 7 } } @@ -10507,31 +10654,31 @@ "type": "Identifier", "name": "godRaysMaterial", "range": [ - 6543, - 6558 + 6632, + 6647 ], "loc": { "start": { - "line": 297, + "line": 303, "column": 8 }, "end": { - "line": 297, + "line": 303, "column": 23 } } }, "range": [ - 6538, - 6558 + 6627, + 6647 ], "loc": { "start": { - "line": 297, + "line": 303, "column": 3 }, "end": { - "line": 297, + "line": 303, "column": 23 } } @@ -10540,31 +10687,31 @@ "type": "Identifier", "name": "defines", "range": [ - 6559, - 6566 + 6648, + 6655 ], "loc": { "start": { - "line": 297, + "line": 303, "column": 24 }, "end": { - "line": 297, + "line": 303, "column": 31 } } }, "range": [ - 6538, - 6566 + 6627, + 6655 ], "loc": { "start": { - "line": 297, + "line": 303, "column": 3 }, "end": { - "line": 297, + "line": 303, "column": 31 } } @@ -10573,31 +10720,31 @@ "type": "Identifier", "name": "NUM_SAMPLES_FLOAT", "range": [ - 6567, - 6584 + 6656, + 6673 ], "loc": { "start": { - "line": 297, + "line": 303, "column": 32 }, "end": { - "line": 297, + "line": 303, "column": 49 } } }, "range": [ - 6538, - 6584 + 6627, + 6673 ], "loc": { "start": { - "line": 297, + "line": 303, "column": 3 }, "end": { - "line": 297, + "line": 303, "column": 49 } } @@ -10611,16 +10758,16 @@ "type": "Identifier", "name": "x", "range": [ - 6587, - 6588 + 6676, + 6677 ], "loc": { "start": { - "line": 297, + "line": 303, "column": 52 }, "end": { - "line": 297, + "line": 303, "column": 53 } } @@ -10629,31 +10776,31 @@ "type": "Identifier", "name": "toFixed", "range": [ - 6589, - 6596 + 6678, + 6685 ], "loc": { "start": { - "line": 297, + "line": 303, "column": 54 }, "end": { - "line": 297, + "line": 303, "column": 61 } } }, "range": [ - 6587, - 6596 + 6676, + 6685 ], "loc": { "start": { - "line": 297, + "line": 303, "column": 52 }, "end": { - "line": 297, + "line": 303, "column": 61 } } @@ -10664,62 +10811,62 @@ "value": 1, "raw": "1", "range": [ - 6597, - 6598 + 6686, + 6687 ], "loc": { "start": { - "line": 297, + "line": 303, "column": 62 }, "end": { - "line": 297, + "line": 303, "column": 63 } } } ], "range": [ - 6587, - 6599 + 6676, + 6688 ], "loc": { "start": { - "line": 297, + "line": 303, "column": 52 }, "end": { - "line": 297, + "line": 303, "column": 64 } } }, "range": [ - 6538, - 6599 + 6627, + 6688 ], "loc": { "start": { - "line": 297, + "line": 303, "column": 3 }, "end": { - "line": 297, + "line": 303, "column": 64 } } }, "range": [ - 6538, - 6600 + 6627, + 6689 ], "loc": { "start": { - "line": 297, + "line": 303, "column": 3 }, "end": { - "line": 297, + "line": 303, "column": 65 } } @@ -10741,16 +10888,16 @@ "object": { "type": "ThisExpression", "range": [ - 6605, - 6609 + 6694, + 6698 ], "loc": { "start": { - "line": 298, + "line": 304, "column": 3 }, "end": { - "line": 298, + "line": 304, "column": 7 } } @@ -10759,31 +10906,31 @@ "type": "Identifier", "name": "godRaysMaterial", "range": [ - 6610, - 6625 + 6699, + 6714 ], "loc": { "start": { - "line": 298, + "line": 304, "column": 8 }, "end": { - "line": 298, + "line": 304, "column": 23 } } }, "range": [ - 6605, - 6625 + 6694, + 6714 ], "loc": { "start": { - "line": 298, + "line": 304, "column": 3 }, "end": { - "line": 298, + "line": 304, "column": 23 } } @@ -10792,31 +10939,31 @@ "type": "Identifier", "name": "defines", "range": [ - 6626, - 6633 + 6715, + 6722 ], "loc": { "start": { - "line": 298, + "line": 304, "column": 24 }, "end": { - "line": 298, + "line": 304, "column": 31 } } }, "range": [ - 6605, - 6633 + 6694, + 6722 ], "loc": { "start": { - "line": 298, + "line": 304, "column": 3 }, "end": { - "line": 298, + "line": 304, "column": 31 } } @@ -10825,31 +10972,31 @@ "type": "Identifier", "name": "NUM_SAMPLES_INT", "range": [ - 6634, - 6649 + 6723, + 6738 ], "loc": { "start": { - "line": 298, + "line": 304, "column": 32 }, "end": { - "line": 298, + "line": 304, "column": 47 } } }, "range": [ - 6605, - 6649 + 6694, + 6738 ], "loc": { "start": { - "line": 298, + "line": 304, "column": 3 }, "end": { - "line": 298, + "line": 304, "column": 47 } } @@ -10863,16 +11010,16 @@ "type": "Identifier", "name": "x", "range": [ - 6652, - 6653 + 6741, + 6742 ], "loc": { "start": { - "line": 298, + "line": 304, "column": 50 }, "end": { - "line": 298, + "line": 304, "column": 51 } } @@ -10881,31 +11028,31 @@ "type": "Identifier", "name": "toFixed", "range": [ - 6654, - 6661 + 6743, + 6750 ], "loc": { "start": { - "line": 298, + "line": 304, "column": 52 }, "end": { - "line": 298, + "line": 304, "column": 59 } } }, "range": [ - 6652, - 6661 + 6741, + 6750 ], "loc": { "start": { - "line": 298, + "line": 304, "column": 50 }, "end": { - "line": 298, + "line": 304, "column": 59 } } @@ -10916,62 +11063,62 @@ "value": 0, "raw": "0", "range": [ - 6662, - 6663 + 6751, + 6752 ], "loc": { "start": { - "line": 298, + "line": 304, "column": 60 }, "end": { - "line": 298, + "line": 304, "column": 61 } } } ], "range": [ - 6652, - 6664 + 6741, + 6753 ], "loc": { "start": { - "line": 298, + "line": 304, "column": 50 }, "end": { - "line": 298, + "line": 304, "column": 62 } } }, "range": [ - 6605, - 6664 + 6694, + 6753 ], "loc": { "start": { - "line": 298, + "line": 304, "column": 3 }, "end": { - "line": 298, + "line": 304, "column": 62 } } }, "range": [ - 6605, - 6665 + 6694, + 6754 ], "loc": { "start": { - "line": 298, + "line": 304, "column": 3 }, "end": { - "line": 298, + "line": 304, "column": 63 } } @@ -10990,16 +11137,16 @@ "object": { "type": "ThisExpression", "range": [ - 6670, - 6674 + 6759, + 6763 ], "loc": { "start": { - "line": 299, + "line": 305, "column": 3 }, "end": { - "line": 299, + "line": 305, "column": 7 } } @@ -11008,31 +11155,31 @@ "type": "Identifier", "name": "godRaysMaterial", "range": [ - 6675, - 6690 + 6764, + 6779 ], "loc": { "start": { - "line": 299, + "line": 305, "column": 8 }, "end": { - "line": 299, + "line": 305, "column": 23 } } }, "range": [ - 6670, - 6690 + 6759, + 6779 ], "loc": { "start": { - "line": 299, + "line": 305, "column": 3 }, "end": { - "line": 299, + "line": 305, "column": 23 } } @@ -11041,31 +11188,31 @@ "type": "Identifier", "name": "needsUpdate", "range": [ - 6691, - 6702 + 6780, + 6791 ], "loc": { "start": { - "line": 299, + "line": 305, "column": 24 }, "end": { - "line": 299, + "line": 305, "column": 35 } } }, "range": [ - 6670, - 6702 + 6759, + 6791 ], "loc": { "start": { - "line": 299, + "line": 305, "column": 3 }, "end": { - "line": 299, + "line": 305, "column": 35 } } @@ -11075,94 +11222,94 @@ "value": true, "raw": "true", "range": [ - 6705, - 6709 + 6794, + 6798 ], "loc": { "start": { - "line": 299, + "line": 305, "column": 38 }, "end": { - "line": 299, + "line": 305, "column": 42 } } }, "range": [ - 6670, - 6709 + 6759, + 6798 ], "loc": { "start": { - "line": 299, + "line": 305, "column": 3 }, "end": { - "line": 299, + "line": 305, "column": 42 } } }, "range": [ - 6670, - 6710 + 6759, + 6799 ], "loc": { "start": { - "line": 299, + "line": 305, "column": 3 }, "end": { - "line": 299, + "line": 305, "column": 43 } } } ], "range": [ - 6505, - 6717 + 6594, + 6806 ], "loc": { "start": { - "line": 293, + "line": 299, "column": 28 }, "end": { - "line": 301, + "line": 307, "column": 3 } } }, "alternate": null, "range": [ - 6479, - 6717 + 6568, + 6806 ], "loc": { "start": { - "line": 293, + "line": 299, "column": 2 }, "end": { - "line": 301, + "line": 307, "column": 3 } } } ], "range": [ - 6472, - 6723 + 6561, + 6812 ], "loc": { "start": { - "line": 291, + "line": 297, "column": 16 }, "end": { - "line": 303, + "line": 309, "column": 2 } } @@ -11170,16 +11317,16 @@ "generator": false, "expression": false, "range": [ - 6468, - 6723 + 6557, + 6812 ], "loc": { "start": { - "line": 291, + "line": 297, "column": 12 }, "end": { - "line": 303, + "line": 309, "column": 2 } } @@ -11187,16 +11334,16 @@ "kind": "set", "computed": false, "range": [ - 6457, - 6723 + 6546, + 6812 ], "loc": { "start": { - "line": 291, + "line": 297, "column": 1 }, "end": { - "line": 303, + "line": 309, "column": 2 } }, @@ -11205,16 +11352,16 @@ "type": "Block", "value": "*\r\n\t * This value must be carefully chosen. A higher value directly increases the\r\n\t * GPU load.\r\n\t *\r\n\t * @type {Number}\r\n\t ", "range": [ - 6323, - 6452 + 6412, + 6541 ], "loc": { "start": { - "line": 284, + "line": 290, "column": 1 }, "end": { - "line": 289, + "line": 295, "column": 4 } } @@ -11225,16 +11372,16 @@ "type": "Block", "value": "*\r\n\t * Renders the scene.\r\n\t *\r\n\t * The god rays pass has four phases:\r\n\t *\r\n\t * Mask Phase:\r\n\t * First, the light source is rendered. Then the scene is rendered into the\r\n\t * same buffer using a mask override material with depth test enabled.\r\n\t *\r\n\t * Preliminary Blur Phase:\r\n\t * The masked scene is blurred.\r\n\t *\r\n\t * God Rays Phase:\r\n\t * The blurred scene is blurred again, but this time along radial lines\r\n\t * towards the light source.\r\n\t *\r\n\t * Composite Phase:\r\n\t * The final result is combined with the read buffer.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {WebGLRenderTarget} readBuffer - The read buffer.\r\n\t * @param {WebGLRenderTarget} writeBuffer - The write buffer.\r\n\t ", "range": [ - 6728, - 7451 + 6817, + 7540 ], "loc": { "start": { - "line": 305, + "line": 311, "column": 1 }, "end": { - "line": 327, + "line": 333, "column": 4 } } @@ -11248,16 +11395,16 @@ "type": "Identifier", "name": "render", "range": [ - 7456, - 7462 + 7545, + 7551 ], "loc": { "start": { - "line": 329, + "line": 335, "column": 1 }, "end": { - "line": 329, + "line": 335, "column": 7 } } @@ -11270,16 +11417,16 @@ "type": "Identifier", "name": "renderer", "range": [ - 7463, - 7471 + 7552, + 7560 ], "loc": { "start": { - "line": 329, + "line": 335, "column": 8 }, "end": { - "line": 329, + "line": 335, "column": 16 } } @@ -11288,16 +11435,16 @@ "type": "Identifier", "name": "readBuffer", "range": [ - 7473, - 7483 + 7562, + 7572 ], "loc": { "start": { - "line": 329, + "line": 335, "column": 18 }, "end": { - "line": 329, + "line": 335, "column": 28 } } @@ -11306,16 +11453,16 @@ "type": "Identifier", "name": "writeBuffer", "range": [ - 7485, - 7496 + 7574, + 7585 ], "loc": { "start": { - "line": 329, + "line": 335, "column": 30 }, "end": { - "line": 329, + "line": 335, "column": 41 } } @@ -11333,16 +11480,16 @@ "type": "Identifier", "name": "quad", "range": [ - 7511, - 7515 + 7600, + 7604 ], "loc": { "start": { - "line": 331, + "line": 337, "column": 8 }, "end": { - "line": 331, + "line": 337, "column": 12 } } @@ -11353,16 +11500,16 @@ "object": { "type": "ThisExpression", "range": [ - 7518, - 7522 + 7607, + 7611 ], "loc": { "start": { - "line": 331, + "line": 337, "column": 15 }, "end": { - "line": 331, + "line": 337, "column": 19 } } @@ -11371,46 +11518,46 @@ "type": "Identifier", "name": "quad", "range": [ - 7523, - 7527 + 7612, + 7616 ], "loc": { "start": { - "line": 331, + "line": 337, "column": 20 }, "end": { - "line": 331, + "line": 337, "column": 24 } } }, "range": [ - 7518, - 7527 + 7607, + 7616 ], "loc": { "start": { - "line": 331, + "line": 337, "column": 15 }, "end": { - "line": 331, + "line": 337, "column": 24 } } }, "range": [ - 7511, - 7527 + 7600, + 7616 ], "loc": { "start": { - "line": 331, + "line": 337, "column": 8 }, "end": { - "line": 331, + "line": 337, "column": 24 } } @@ -11418,16 +11565,16 @@ ], "kind": "const", "range": [ - 7505, - 7528 + 7594, + 7617 ], "loc": { "start": { - "line": 331, + "line": 337, "column": 2 }, "end": { - "line": 331, + "line": 337, "column": 25 } } @@ -11441,16 +11588,16 @@ "type": "Identifier", "name": "scene", "range": [ - 7538, - 7543 + 7627, + 7632 ], "loc": { "start": { - "line": 332, + "line": 338, "column": 8 }, "end": { - "line": 332, + "line": 338, "column": 13 } } @@ -11461,16 +11608,16 @@ "object": { "type": "ThisExpression", "range": [ - 7546, - 7550 + 7635, + 7639 ], "loc": { "start": { - "line": 332, + "line": 338, "column": 16 }, "end": { - "line": 332, + "line": 338, "column": 20 } } @@ -11479,46 +11626,46 @@ "type": "Identifier", "name": "scene", "range": [ - 7551, - 7556 + 7640, + 7645 ], "loc": { "start": { - "line": 332, + "line": 338, "column": 21 }, "end": { - "line": 332, + "line": 338, "column": 26 } } }, "range": [ - 7546, - 7556 + 7635, + 7645 ], "loc": { "start": { - "line": 332, + "line": 338, "column": 16 }, "end": { - "line": 332, + "line": 338, "column": 26 } } }, "range": [ - 7538, - 7556 + 7627, + 7645 ], "loc": { "start": { - "line": 332, + "line": 338, "column": 8 }, "end": { - "line": 332, + "line": 338, "column": 26 } } @@ -11526,16 +11673,16 @@ ], "kind": "const", "range": [ - 7532, - 7557 + 7621, + 7646 ], "loc": { "start": { - "line": 332, + "line": 338, "column": 2 }, "end": { - "line": 332, + "line": 338, "column": 27 } } @@ -11549,16 +11696,16 @@ "type": "Identifier", "name": "camera", "range": [ - 7567, - 7573 + 7656, + 7662 ], "loc": { "start": { - "line": 333, + "line": 339, "column": 8 }, "end": { - "line": 333, + "line": 339, "column": 14 } } @@ -11569,16 +11716,16 @@ "object": { "type": "ThisExpression", "range": [ - 7576, - 7580 + 7665, + 7669 ], "loc": { "start": { - "line": 333, + "line": 339, "column": 17 }, "end": { - "line": 333, + "line": 339, "column": 21 } } @@ -11587,46 +11734,46 @@ "type": "Identifier", "name": "camera", "range": [ - 7581, - 7587 + 7670, + 7676 ], "loc": { "start": { - "line": 333, + "line": 339, "column": 22 }, "end": { - "line": 333, + "line": 339, "column": 28 } } }, "range": [ - 7576, - 7587 + 7665, + 7676 ], "loc": { "start": { - "line": 333, + "line": 339, "column": 17 }, "end": { - "line": 333, + "line": 339, "column": 28 } } }, "range": [ - 7567, - 7587 + 7656, + 7676 ], "loc": { "start": { - "line": 333, + "line": 339, "column": 8 }, "end": { - "line": 333, + "line": 339, "column": 28 } } @@ -11634,16 +11781,16 @@ ], "kind": "const", "range": [ - 7561, - 7588 + 7650, + 7677 ], "loc": { "start": { - "line": 333, + "line": 339, "column": 2 }, "end": { - "line": 333, + "line": 339, "column": 29 } } @@ -11657,16 +11804,16 @@ "type": "Identifier", "name": "mainScene", "range": [ - 7598, - 7607 + 7687, + 7696 ], "loc": { "start": { - "line": 334, + "line": 340, "column": 8 }, "end": { - "line": 334, + "line": 340, "column": 17 } } @@ -11677,16 +11824,16 @@ "object": { "type": "ThisExpression", "range": [ - 7610, - 7614 + 7699, + 7703 ], "loc": { "start": { - "line": 334, + "line": 340, "column": 20 }, "end": { - "line": 334, + "line": 340, "column": 24 } } @@ -11695,46 +11842,46 @@ "type": "Identifier", "name": "mainScene", "range": [ - 7615, - 7624 + 7704, + 7713 ], "loc": { "start": { - "line": 334, + "line": 340, "column": 25 }, "end": { - "line": 334, + "line": 340, "column": 34 } } }, "range": [ - 7610, - 7624 + 7699, + 7713 ], "loc": { "start": { - "line": 334, + "line": 340, "column": 20 }, "end": { - "line": 334, + "line": 340, "column": 34 } } }, "range": [ - 7598, - 7624 + 7687, + 7713 ], "loc": { "start": { - "line": 334, + "line": 340, "column": 8 }, "end": { - "line": 334, + "line": 340, "column": 34 } } @@ -11742,16 +11889,16 @@ ], "kind": "const", "range": [ - 7592, - 7625 + 7681, + 7714 ], "loc": { "start": { - "line": 334, + "line": 340, "column": 2 }, "end": { - "line": 334, + "line": 340, "column": 35 } } @@ -11765,16 +11912,16 @@ "type": "Identifier", "name": "lightSource", "range": [ - 7637, - 7648 + 7726, + 7737 ], "loc": { "start": { - "line": 336, + "line": 342, "column": 8 }, "end": { - "line": 336, + "line": 342, "column": 19 } } @@ -11785,16 +11932,16 @@ "object": { "type": "ThisExpression", "range": [ - 7651, - 7655 + 7740, + 7744 ], "loc": { "start": { - "line": 336, + "line": 342, "column": 22 }, "end": { - "line": 336, + "line": 342, "column": 26 } } @@ -11803,46 +11950,46 @@ "type": "Identifier", "name": "lightSource", "range": [ - 7656, - 7667 + 7745, + 7756 ], "loc": { "start": { - "line": 336, + "line": 342, "column": 27 }, "end": { - "line": 336, + "line": 342, "column": 38 } } }, "range": [ - 7651, - 7667 + 7740, + 7756 ], "loc": { "start": { - "line": 336, + "line": 342, "column": 22 }, "end": { - "line": 336, + "line": 342, "column": 38 } } }, "range": [ - 7637, - 7667 + 7726, + 7756 ], "loc": { "start": { - "line": 336, + "line": 342, "column": 8 }, "end": { - "line": 336, + "line": 342, "column": 38 } } @@ -11850,16 +11997,16 @@ ], "kind": "const", "range": [ - 7631, - 7668 + 7720, + 7757 ], "loc": { "start": { - "line": 336, + "line": 342, "column": 2 }, "end": { - "line": 336, + "line": 342, "column": 39 } } @@ -11873,16 +12020,16 @@ "type": "Identifier", "name": "screenPosition", "range": [ - 7678, - 7692 + 7767, + 7781 ], "loc": { "start": { - "line": 337, + "line": 343, "column": 8 }, "end": { - "line": 337, + "line": 343, "column": 22 } } @@ -11893,16 +12040,16 @@ "object": { "type": "ThisExpression", "range": [ - 7695, - 7699 + 7784, + 7788 ], "loc": { "start": { - "line": 337, + "line": 343, "column": 25 }, "end": { - "line": 337, + "line": 343, "column": 29 } } @@ -11911,46 +12058,46 @@ "type": "Identifier", "name": "screenPosition", "range": [ - 7700, - 7714 + 7789, + 7803 ], "loc": { "start": { - "line": 337, + "line": 343, "column": 30 }, "end": { - "line": 337, + "line": 343, "column": 44 } } }, "range": [ - 7695, - 7714 + 7784, + 7803 ], "loc": { "start": { - "line": 337, + "line": 343, "column": 25 }, "end": { - "line": 337, + "line": 343, "column": 44 } } }, "range": [ - 7678, - 7714 + 7767, + 7803 ], "loc": { "start": { - "line": 337, + "line": 343, "column": 8 }, "end": { - "line": 337, + "line": 343, "column": 44 } } @@ -11958,16 +12105,16 @@ ], "kind": "const", "range": [ - 7672, - 7715 + 7761, + 7804 ], "loc": { "start": { - "line": 337, + "line": 343, "column": 2 }, "end": { - "line": 337, + "line": 343, "column": 45 } } @@ -11981,16 +12128,16 @@ "type": "Identifier", "name": "godRaysMaterial", "range": [ - 7727, - 7742 + 7816, + 7831 ], "loc": { "start": { - "line": 339, + "line": 345, "column": 8 }, "end": { - "line": 339, + "line": 345, "column": 23 } } @@ -12001,16 +12148,16 @@ "object": { "type": "ThisExpression", "range": [ - 7745, - 7749 + 7834, + 7838 ], "loc": { "start": { - "line": 339, + "line": 345, "column": 26 }, "end": { - "line": 339, + "line": 345, "column": 30 } } @@ -12019,46 +12166,46 @@ "type": "Identifier", "name": "godRaysMaterial", "range": [ - 7750, - 7765 + 7839, + 7854 ], "loc": { "start": { - "line": 339, + "line": 345, "column": 31 }, "end": { - "line": 339, + "line": 345, "column": 46 } } }, "range": [ - 7745, - 7765 + 7834, + 7854 ], "loc": { "start": { - "line": 339, + "line": 345, "column": 26 }, "end": { - "line": 339, + "line": 345, "column": 46 } } }, "range": [ - 7727, - 7765 + 7816, + 7854 ], "loc": { "start": { - "line": 339, + "line": 345, "column": 8 }, "end": { - "line": 339, + "line": 345, "column": 46 } } @@ -12066,16 +12213,16 @@ ], "kind": "const", "range": [ - 7721, - 7766 + 7810, + 7855 ], "loc": { "start": { - "line": 339, + "line": 345, "column": 2 }, "end": { - "line": 339, + "line": 345, "column": 47 } } @@ -12089,16 +12236,16 @@ "type": "Identifier", "name": "combineMaterial", "range": [ - 7776, - 7791 + 7865, + 7880 ], "loc": { "start": { - "line": 340, + "line": 346, "column": 8 }, "end": { - "line": 340, + "line": 346, "column": 23 } } @@ -12109,16 +12256,16 @@ "object": { "type": "ThisExpression", "range": [ - 7794, - 7798 + 7883, + 7887 ], "loc": { "start": { - "line": 340, + "line": 346, "column": 26 }, "end": { - "line": 340, + "line": 346, "column": 30 } } @@ -12127,46 +12274,46 @@ "type": "Identifier", "name": "combineMaterial", "range": [ - 7799, - 7814 + 7888, + 7903 ], "loc": { "start": { - "line": 340, + "line": 346, "column": 31 }, "end": { - "line": 340, + "line": 346, "column": 46 } } }, "range": [ - 7794, - 7814 + 7883, + 7903 ], "loc": { "start": { - "line": 340, + "line": 346, "column": 26 }, "end": { - "line": 340, + "line": 346, "column": 46 } } }, "range": [ - 7776, - 7814 + 7865, + 7903 ], "loc": { "start": { - "line": 340, + "line": 346, "column": 8 }, "end": { - "line": 340, + "line": 346, "column": 46 } } @@ -12174,16 +12321,16 @@ ], "kind": "const", "range": [ - 7770, - 7815 + 7859, + 7904 ], "loc": { "start": { - "line": 340, + "line": 346, "column": 2 }, "end": { - "line": 340, + "line": 346, "column": 47 } } @@ -12197,16 +12344,16 @@ "type": "Identifier", "name": "renderTargetMask", "range": [ - 7827, - 7843 + 7916, + 7932 ], "loc": { "start": { - "line": 342, + "line": 348, "column": 8 }, "end": { - "line": 342, + "line": 348, "column": 24 } } @@ -12217,16 +12364,16 @@ "object": { "type": "ThisExpression", "range": [ - 7846, - 7850 + 7935, + 7939 ], "loc": { "start": { - "line": 342, + "line": 348, "column": 27 }, "end": { - "line": 342, + "line": 348, "column": 31 } } @@ -12235,46 +12382,46 @@ "type": "Identifier", "name": "renderTargetMask", "range": [ - 7851, - 7867 + 7940, + 7956 ], "loc": { "start": { - "line": 342, + "line": 348, "column": 32 }, "end": { - "line": 342, + "line": 348, "column": 48 } } }, "range": [ - 7846, - 7867 + 7935, + 7956 ], "loc": { "start": { - "line": 342, + "line": 348, "column": 27 }, "end": { - "line": 342, + "line": 348, "column": 48 } } }, "range": [ - 7827, - 7867 + 7916, + 7956 ], "loc": { "start": { - "line": 342, + "line": 348, "column": 8 }, "end": { - "line": 342, + "line": 348, "column": 48 } } @@ -12282,16 +12429,16 @@ ], "kind": "const", "range": [ - 7821, - 7868 + 7910, + 7957 ], "loc": { "start": { - "line": 342, + "line": 348, "column": 2 }, "end": { - "line": 342, + "line": 348, "column": 49 } } @@ -12305,16 +12452,16 @@ "type": "Identifier", "name": "renderTargetX", "range": [ - 7878, - 7891 + 7967, + 7980 ], "loc": { "start": { - "line": 343, + "line": 349, "column": 8 }, "end": { - "line": 343, + "line": 349, "column": 21 } } @@ -12325,16 +12472,16 @@ "object": { "type": "ThisExpression", "range": [ - 7894, - 7898 + 7983, + 7987 ], "loc": { "start": { - "line": 343, + "line": 349, "column": 24 }, "end": { - "line": 343, + "line": 349, "column": 28 } } @@ -12343,46 +12490,46 @@ "type": "Identifier", "name": "renderTargetX", "range": [ - 7899, - 7912 + 7988, + 8001 ], "loc": { "start": { - "line": 343, + "line": 349, "column": 29 }, "end": { - "line": 343, + "line": 349, "column": 42 } } }, "range": [ - 7894, - 7912 + 7983, + 8001 ], "loc": { "start": { - "line": 343, + "line": 349, "column": 24 }, "end": { - "line": 343, + "line": 349, "column": 42 } } }, "range": [ - 7878, - 7912 + 7967, + 8001 ], "loc": { "start": { - "line": 343, + "line": 349, "column": 8 }, "end": { - "line": 343, + "line": 349, "column": 42 } } @@ -12390,16 +12537,16 @@ ], "kind": "const", "range": [ - 7872, - 7913 + 7961, + 8002 ], "loc": { "start": { - "line": 343, + "line": 349, "column": 2 }, "end": { - "line": 343, + "line": 349, "column": 43 } } @@ -12413,16 +12560,16 @@ "type": "Identifier", "name": "renderTargetY", "range": [ - 7923, - 7936 + 8012, + 8025 ], "loc": { "start": { - "line": 344, + "line": 350, "column": 8 }, "end": { - "line": 344, + "line": 350, "column": 21 } } @@ -12433,16 +12580,16 @@ "object": { "type": "ThisExpression", "range": [ - 7939, - 7943 + 8028, + 8032 ], "loc": { "start": { - "line": 344, + "line": 350, "column": 24 }, "end": { - "line": 344, + "line": 350, "column": 28 } } @@ -12451,46 +12598,46 @@ "type": "Identifier", "name": "renderTargetY", "range": [ - 7944, - 7957 + 8033, + 8046 ], "loc": { "start": { - "line": 344, + "line": 350, "column": 29 }, "end": { - "line": 344, + "line": 350, "column": 42 } } }, "range": [ - 7939, - 7957 + 8028, + 8046 ], "loc": { "start": { - "line": 344, + "line": 350, "column": 24 }, "end": { - "line": 344, + "line": 350, "column": 42 } } }, "range": [ - 7923, - 7957 + 8012, + 8046 ], "loc": { "start": { - "line": 344, + "line": 350, "column": 8 }, "end": { - "line": 344, + "line": 350, "column": 42 } } @@ -12498,16 +12645,16 @@ ], "kind": "const", "range": [ - 7917, - 7958 + 8006, + 8047 ], "loc": { "start": { - "line": 344, + "line": 350, "column": 2 }, "end": { - "line": 344, + "line": 350, "column": 43 } } @@ -12521,32 +12668,32 @@ "type": "Identifier", "name": "background", "range": [ - 7968, - 7978 + 8057, + 8067 ], "loc": { "start": { - "line": 346, + "line": 352, "column": 6 }, "end": { - "line": 346, + "line": 352, "column": 16 } } }, "init": null, "range": [ - 7968, - 7978 + 8057, + 8067 ], "loc": { "start": { - "line": 346, + "line": 352, "column": 6 }, "end": { - "line": 346, + "line": 352, "column": 16 } } @@ -12557,32 +12704,32 @@ "type": "Identifier", "name": "parent", "range": [ - 7980, - 7986 + 8069, + 8075 ], "loc": { "start": { - "line": 346, + "line": 352, "column": 18 }, "end": { - "line": 346, + "line": 352, "column": 24 } } }, "init": null, "range": [ - 7980, - 7986 + 8069, + 8075 ], "loc": { "start": { - "line": 346, + "line": 352, "column": 18 }, "end": { - "line": 346, + "line": 352, "column": 24 } } @@ -12590,16 +12737,16 @@ ], "kind": "let", "range": [ - 7964, - 7987 + 8053, + 8076 ], "loc": { "start": { - "line": 346, + "line": 352, "column": 2 }, "end": { - "line": 346, + "line": 352, "column": 25 } }, @@ -12608,16 +12755,16 @@ "type": "Line", "value": " Compute the screen light position and translate it to [0, 1].", "range": [ - 7993, - 8057 + 8082, + 8146 ], "loc": { "start": { - "line": 348, + "line": 354, "column": 2 }, "end": { - "line": 348, + "line": 354, "column": 66 } } @@ -12640,16 +12787,16 @@ "type": "Identifier", "name": "screenPosition", "range": [ - 8061, - 8075 + 8150, + 8164 ], "loc": { "start": { - "line": 349, + "line": 355, "column": 2 }, "end": { - "line": 349, + "line": 355, "column": 16 } } @@ -12658,31 +12805,31 @@ "type": "Identifier", "name": "copy", "range": [ - 8076, - 8080 + 8165, + 8169 ], "loc": { "start": { - "line": 349, + "line": 355, "column": 17 }, "end": { - "line": 349, + "line": 355, "column": 21 } } }, "range": [ - 8061, - 8080 + 8150, + 8169 ], "loc": { "start": { - "line": 349, + "line": 355, "column": 2 }, "end": { - "line": 349, + "line": 355, "column": 21 } } @@ -12695,16 +12842,16 @@ "type": "Identifier", "name": "lightSource", "range": [ - 8081, - 8092 + 8170, + 8181 ], "loc": { "start": { - "line": 349, + "line": 355, "column": 22 }, "end": { - "line": 349, + "line": 355, "column": 33 } } @@ -12713,47 +12860,47 @@ "type": "Identifier", "name": "position", "range": [ - 8093, - 8101 + 8182, + 8190 ], "loc": { "start": { - "line": 349, + "line": 355, "column": 34 }, "end": { - "line": 349, + "line": 355, "column": 42 } } }, "range": [ - 8081, - 8101 + 8170, + 8190 ], "loc": { "start": { - "line": 349, + "line": 355, "column": 22 }, "end": { - "line": 349, + "line": 355, "column": 42 } } } ], "range": [ - 8061, - 8102 + 8150, + 8191 ], "loc": { "start": { - "line": 349, + "line": 355, "column": 2 }, "end": { - "line": 349, + "line": 355, "column": 43 } } @@ -12762,31 +12909,31 @@ "type": "Identifier", "name": "project", "range": [ - 8103, - 8110 + 8192, + 8199 ], "loc": { "start": { - "line": 349, + "line": 355, "column": 44 }, "end": { - "line": 349, + "line": 355, "column": 51 } } }, "range": [ - 8061, - 8110 + 8150, + 8199 ], "loc": { "start": { - "line": 349, + "line": 355, "column": 2 }, "end": { - "line": 349, + "line": 355, "column": 51 } } @@ -12798,16 +12945,16 @@ "object": { "type": "ThisExpression", "range": [ - 8111, - 8115 + 8200, + 8204 ], "loc": { "start": { - "line": 349, + "line": 355, "column": 52 }, "end": { - "line": 349, + "line": 355, "column": 56 } } @@ -12816,62 +12963,62 @@ "type": "Identifier", "name": "mainCamera", "range": [ - 8116, - 8126 + 8205, + 8215 ], "loc": { "start": { - "line": 349, + "line": 355, "column": 57 }, "end": { - "line": 349, + "line": 355, "column": 67 } } }, "range": [ - 8111, - 8126 + 8200, + 8215 ], "loc": { "start": { - "line": 349, + "line": 355, "column": 52 }, "end": { - "line": 349, + "line": 355, "column": 67 } } } ], "range": [ - 8061, - 8127 + 8150, + 8216 ], "loc": { "start": { - "line": 349, + "line": 355, "column": 2 }, "end": { - "line": 349, + "line": 355, "column": 68 } } }, "range": [ - 8061, - 8128 + 8150, + 8217 ], "loc": { "start": { - "line": 349, + "line": 355, "column": 2 }, "end": { - "line": 349, + "line": 355, "column": 69 } }, @@ -12880,16 +13027,16 @@ "type": "Line", "value": " Compute the screen light position and translate it to [0, 1].", "range": [ - 7993, - 8057 + 8082, + 8146 ], "loc": { "start": { - "line": 348, + "line": 354, "column": 2 }, "end": { - "line": 348, + "line": 354, "column": 66 } } @@ -12908,16 +13055,16 @@ "type": "Identifier", "name": "screenPosition", "range": [ - 8132, - 8146 + 8221, + 8235 ], "loc": { "start": { - "line": 350, + "line": 356, "column": 2 }, "end": { - "line": 350, + "line": 356, "column": 16 } } @@ -12926,31 +13073,31 @@ "type": "Identifier", "name": "x", "range": [ - 8147, - 8148 + 8236, + 8237 ], "loc": { "start": { - "line": 350, + "line": 356, "column": 17 }, "end": { - "line": 350, + "line": 356, "column": 18 } } }, "range": [ - 8132, - 8148 + 8221, + 8237 ], "loc": { "start": { - "line": 350, + "line": 356, "column": 2 }, "end": { - "line": 350, + "line": 356, "column": 18 } } @@ -12961,16 +13108,16 @@ "type": "Identifier", "name": "clamp", "range": [ - 8151, - 8156 + 8240, + 8245 ], "loc": { "start": { - "line": 350, + "line": 356, "column": 21 }, "end": { - "line": 350, + "line": 356, "column": 26 } } @@ -12989,16 +13136,16 @@ "type": "Identifier", "name": "screenPosition", "range": [ - 8158, - 8172 + 8247, + 8261 ], "loc": { "start": { - "line": 350, + "line": 356, "column": 28 }, "end": { - "line": 350, + "line": 356, "column": 42 } } @@ -13007,31 +13154,31 @@ "type": "Identifier", "name": "x", "range": [ - 8173, - 8174 + 8262, + 8263 ], "loc": { "start": { - "line": 350, + "line": 356, "column": 43 }, "end": { - "line": 350, + "line": 356, "column": 44 } } }, "range": [ - 8158, - 8174 + 8247, + 8263 ], "loc": { "start": { - "line": 350, + "line": 356, "column": 28 }, "end": { - "line": 350, + "line": 356, "column": 44 } } @@ -13041,31 +13188,31 @@ "value": 1, "raw": "1.0", "range": [ - 8177, - 8180 + 8266, + 8269 ], "loc": { "start": { - "line": 350, + "line": 356, "column": 47 }, "end": { - "line": 350, + "line": 356, "column": 50 } } }, "range": [ - 8158, - 8180 + 8247, + 8269 ], "loc": { "start": { - "line": 350, + "line": 356, "column": 28 }, "end": { - "line": 350, + "line": 356, "column": 50 } } @@ -13075,31 +13222,31 @@ "value": 0.5, "raw": "0.5", "range": [ - 8184, - 8187 + 8273, + 8276 ], "loc": { "start": { - "line": 350, + "line": 356, "column": 54 }, "end": { - "line": 350, + "line": 356, "column": 57 } } }, "range": [ - 8157, - 8187 + 8246, + 8276 ], "loc": { "start": { - "line": 350, + "line": 356, "column": 27 }, "end": { - "line": 350, + "line": 356, "column": 57 } } @@ -13109,16 +13256,16 @@ "value": 0, "raw": "0.0", "range": [ - 8189, - 8192 + 8278, + 8281 ], "loc": { "start": { - "line": 350, + "line": 356, "column": 59 }, "end": { - "line": 350, + "line": 356, "column": 62 } } @@ -13128,62 +13275,62 @@ "value": 1, "raw": "1.0", "range": [ - 8194, - 8197 + 8283, + 8286 ], "loc": { "start": { - "line": 350, + "line": 356, "column": 64 }, "end": { - "line": 350, + "line": 356, "column": 67 } } } ], "range": [ - 8151, - 8198 + 8240, + 8287 ], "loc": { "start": { - "line": 350, + "line": 356, "column": 21 }, "end": { - "line": 350, + "line": 356, "column": 68 } } }, "range": [ - 8132, - 8198 + 8221, + 8287 ], "loc": { "start": { - "line": 350, + "line": 356, "column": 2 }, "end": { - "line": 350, + "line": 356, "column": 68 } } }, "range": [ - 8132, - 8199 + 8221, + 8288 ], "loc": { "start": { - "line": 350, + "line": 356, "column": 2 }, "end": { - "line": 350, + "line": 356, "column": 69 } } @@ -13200,16 +13347,16 @@ "type": "Identifier", "name": "screenPosition", "range": [ - 8203, - 8217 + 8292, + 8306 ], "loc": { "start": { - "line": 351, + "line": 357, "column": 2 }, "end": { - "line": 351, + "line": 357, "column": 16 } } @@ -13218,31 +13365,31 @@ "type": "Identifier", "name": "y", "range": [ - 8218, - 8219 + 8307, + 8308 ], "loc": { "start": { - "line": 351, + "line": 357, "column": 17 }, "end": { - "line": 351, + "line": 357, "column": 18 } } }, "range": [ - 8203, - 8219 + 8292, + 8308 ], "loc": { "start": { - "line": 351, + "line": 357, "column": 2 }, "end": { - "line": 351, + "line": 357, "column": 18 } } @@ -13253,16 +13400,16 @@ "type": "Identifier", "name": "clamp", "range": [ - 8222, - 8227 + 8311, + 8316 ], "loc": { "start": { - "line": 351, + "line": 357, "column": 21 }, "end": { - "line": 351, + "line": 357, "column": 26 } } @@ -13281,16 +13428,16 @@ "type": "Identifier", "name": "screenPosition", "range": [ - 8229, - 8243 + 8318, + 8332 ], "loc": { "start": { - "line": 351, + "line": 357, "column": 28 }, "end": { - "line": 351, + "line": 357, "column": 42 } } @@ -13299,31 +13446,31 @@ "type": "Identifier", "name": "y", "range": [ - 8244, - 8245 + 8333, + 8334 ], "loc": { "start": { - "line": 351, + "line": 357, "column": 43 }, "end": { - "line": 351, + "line": 357, "column": 44 } } }, "range": [ - 8229, - 8245 + 8318, + 8334 ], "loc": { "start": { - "line": 351, + "line": 357, "column": 28 }, "end": { - "line": 351, + "line": 357, "column": 44 } } @@ -13333,31 +13480,31 @@ "value": 1, "raw": "1.0", "range": [ - 8248, - 8251 + 8337, + 8340 ], "loc": { "start": { - "line": 351, + "line": 357, "column": 47 }, "end": { - "line": 351, + "line": 357, "column": 50 } } }, "range": [ - 8229, - 8251 + 8318, + 8340 ], "loc": { "start": { - "line": 351, + "line": 357, "column": 28 }, "end": { - "line": 351, + "line": 357, "column": 50 } } @@ -13367,31 +13514,31 @@ "value": 0.5, "raw": "0.5", "range": [ - 8255, - 8258 + 8344, + 8347 ], "loc": { "start": { - "line": 351, + "line": 357, "column": 54 }, "end": { - "line": 351, + "line": 357, "column": 57 } } }, "range": [ - 8228, - 8258 + 8317, + 8347 ], "loc": { "start": { - "line": 351, + "line": 357, "column": 27 }, "end": { - "line": 351, + "line": 357, "column": 57 } } @@ -13401,16 +13548,16 @@ "value": 0, "raw": "0.0", "range": [ - 8260, - 8263 + 8349, + 8352 ], "loc": { "start": { - "line": 351, + "line": 357, "column": 59 }, "end": { - "line": 351, + "line": 357, "column": 62 } } @@ -13420,62 +13567,62 @@ "value": 1, "raw": "1.0", "range": [ - 8265, - 8268 + 8354, + 8357 ], "loc": { "start": { - "line": 351, + "line": 357, "column": 64 }, "end": { - "line": 351, + "line": 357, "column": 67 } } } ], "range": [ - 8222, - 8269 + 8311, + 8358 ], "loc": { "start": { - "line": 351, + "line": 357, "column": 21 }, "end": { - "line": 351, + "line": 357, "column": 68 } } }, "range": [ - 8203, - 8269 + 8292, + 8358 ], "loc": { "start": { - "line": 351, + "line": 357, "column": 2 }, "end": { - "line": 351, + "line": 357, "column": 68 } } }, "range": [ - 8203, - 8270 + 8292, + 8359 ], "loc": { "start": { - "line": 351, + "line": 357, "column": 2 }, "end": { - "line": 351, + "line": 357, "column": 69 } }, @@ -13484,16 +13631,16 @@ "type": "Line", "value": " Render the masked scene.", "range": [ - 8276, - 8303 + 8365, + 8392 ], "loc": { "start": { - "line": 353, + "line": 359, "column": 2 }, "end": { - "line": 353, + "line": 359, "column": 29 } } @@ -13509,16 +13656,16 @@ "type": "Identifier", "name": "parent", "range": [ - 8307, - 8313 + 8396, + 8402 ], "loc": { "start": { - "line": 354, + "line": 360, "column": 2 }, "end": { - "line": 354, + "line": 360, "column": 8 } } @@ -13530,16 +13677,16 @@ "type": "Identifier", "name": "lightSource", "range": [ - 8316, - 8327 + 8405, + 8416 ], "loc": { "start": { - "line": 354, + "line": 360, "column": 11 }, "end": { - "line": 354, + "line": 360, "column": 22 } } @@ -13548,61 +13695,61 @@ "type": "Identifier", "name": "parent", "range": [ - 8328, - 8334 + 8417, + 8423 ], "loc": { "start": { - "line": 354, + "line": 360, "column": 23 }, "end": { - "line": 354, + "line": 360, "column": 29 } } }, "range": [ - 8316, - 8334 + 8405, + 8423 ], "loc": { "start": { - "line": 354, + "line": 360, "column": 11 }, "end": { - "line": 354, + "line": 360, "column": 29 } } }, "range": [ - 8307, - 8334 + 8396, + 8423 ], "loc": { "start": { - "line": 354, + "line": 360, "column": 2 }, "end": { - "line": 354, + "line": 360, "column": 29 } } }, "range": [ - 8307, - 8335 + 8396, + 8424 ], "loc": { "start": { - "line": 354, + "line": 360, "column": 2 }, "end": { - "line": 354, + "line": 360, "column": 30 } }, @@ -13611,16 +13758,16 @@ "type": "Line", "value": " Render the masked scene.", "range": [ - 8276, - 8303 + 8365, + 8392 ], "loc": { "start": { - "line": 353, + "line": 359, "column": 2 }, "end": { - "line": 353, + "line": 359, "column": 29 } } @@ -13636,16 +13783,16 @@ "type": "Identifier", "name": "background", "range": [ - 8339, - 8349 + 8428, + 8438 ], "loc": { "start": { - "line": 355, + "line": 361, "column": 2 }, "end": { - "line": 355, + "line": 361, "column": 12 } } @@ -13657,16 +13804,16 @@ "type": "Identifier", "name": "mainScene", "range": [ - 8352, - 8361 + 8441, + 8450 ], "loc": { "start": { - "line": 355, + "line": 361, "column": 15 }, "end": { - "line": 355, + "line": 361, "column": 24 } } @@ -13675,61 +13822,61 @@ "type": "Identifier", "name": "background", "range": [ - 8362, - 8372 + 8451, + 8461 ], "loc": { "start": { - "line": 355, + "line": 361, "column": 25 }, "end": { - "line": 355, + "line": 361, "column": 35 } } }, "range": [ - 8352, - 8372 + 8441, + 8461 ], "loc": { "start": { - "line": 355, + "line": 361, "column": 15 }, "end": { - "line": 355, + "line": 361, "column": 35 } } }, "range": [ - 8339, - 8372 + 8428, + 8461 ], "loc": { "start": { - "line": 355, + "line": 361, "column": 2 }, "end": { - "line": 355, + "line": 361, "column": 35 } } }, "range": [ - 8339, - 8373 + 8428, + 8462 ], "loc": { "start": { - "line": 355, + "line": 361, "column": 2 }, "end": { - "line": 355, + "line": 361, "column": 36 } } @@ -13746,16 +13893,16 @@ "type": "Identifier", "name": "mainScene", "range": [ - 8377, - 8386 + 8466, + 8475 ], "loc": { "start": { - "line": 356, + "line": 362, "column": 2 }, "end": { - "line": 356, + "line": 362, "column": 11 } } @@ -13764,31 +13911,31 @@ "type": "Identifier", "name": "background", "range": [ - 8387, - 8397 + 8476, + 8486 ], "loc": { "start": { - "line": 356, + "line": 362, "column": 12 }, "end": { - "line": 356, + "line": 362, "column": 22 } } }, "range": [ - 8377, - 8397 + 8466, + 8486 ], "loc": { "start": { - "line": 356, + "line": 362, "column": 2 }, "end": { - "line": 356, + "line": 362, "column": 22 } } @@ -13798,46 +13945,46 @@ "value": null, "raw": "null", "range": [ - 8400, - 8404 + 8489, + 8493 ], "loc": { "start": { - "line": 356, + "line": 362, "column": 25 }, "end": { - "line": 356, + "line": 362, "column": 29 } } }, "range": [ - 8377, - 8404 + 8466, + 8493 ], "loc": { "start": { - "line": 356, + "line": 362, "column": 2 }, "end": { - "line": 356, + "line": 362, "column": 29 } } }, "range": [ - 8377, - 8405 + 8466, + 8494 ], "loc": { "start": { - "line": 356, + "line": 362, "column": 2 }, "end": { - "line": 356, + "line": 362, "column": 30 } } @@ -13855,16 +14002,16 @@ "object": { "type": "ThisExpression", "range": [ - 8409, - 8413 + 8498, + 8502 ], "loc": { "start": { - "line": 357, + "line": 363, "column": 2 }, "end": { - "line": 357, + "line": 363, "column": 6 } } @@ -13873,31 +14020,31 @@ "type": "Identifier", "name": "lightScene", "range": [ - 8414, - 8424 + 8503, + 8513 ], "loc": { "start": { - "line": 357, + "line": 363, "column": 7 }, "end": { - "line": 357, + "line": 363, "column": 17 } } }, "range": [ - 8409, - 8424 + 8498, + 8513 ], "loc": { "start": { - "line": 357, + "line": 363, "column": 2 }, "end": { - "line": 357, + "line": 363, "column": 17 } } @@ -13906,31 +14053,31 @@ "type": "Identifier", "name": "add", "range": [ - 8425, - 8428 + 8514, + 8517 ], "loc": { "start": { - "line": 357, + "line": 363, "column": 18 }, "end": { - "line": 357, + "line": 363, "column": 21 } } }, "range": [ - 8409, - 8428 + 8498, + 8517 ], "loc": { "start": { - "line": 357, + "line": 363, "column": 2 }, "end": { - "line": 357, + "line": 363, "column": 21 } } @@ -13940,47 +14087,47 @@ "type": "Identifier", "name": "lightSource", "range": [ - 8429, - 8440 + 8518, + 8529 ], "loc": { "start": { - "line": 357, + "line": 363, "column": 22 }, "end": { - "line": 357, + "line": 363, "column": 33 } } } ], "range": [ - 8409, - 8441 + 8498, + 8530 ], "loc": { "start": { - "line": 357, + "line": 363, "column": 2 }, "end": { - "line": 357, + "line": 363, "column": 34 } } }, "range": [ - 8409, - 8442 + 8498, + 8531 ], "loc": { "start": { - "line": 357, + "line": 363, "column": 2 }, "end": { - "line": 357, + "line": 363, "column": 35 } } @@ -13998,16 +14145,16 @@ "object": { "type": "ThisExpression", "range": [ - 8448, - 8452 + 8537, + 8541 ], "loc": { "start": { - "line": 359, + "line": 365, "column": 2 }, "end": { - "line": 359, + "line": 365, "column": 6 } } @@ -14016,31 +14163,31 @@ "type": "Identifier", "name": "renderPassLight", "range": [ - 8453, - 8468 + 8542, + 8557 ], "loc": { "start": { - "line": 359, + "line": 365, "column": 7 }, "end": { - "line": 359, + "line": 365, "column": 22 } } }, "range": [ - 8448, - 8468 + 8537, + 8557 ], "loc": { "start": { - "line": 359, + "line": 365, "column": 2 }, "end": { - "line": 359, + "line": 365, "column": 22 } } @@ -14049,31 +14196,31 @@ "type": "Identifier", "name": "render", "range": [ - 8469, - 8475 + 8558, + 8564 ], "loc": { "start": { - "line": 359, + "line": 365, "column": 23 }, "end": { - "line": 359, + "line": 365, "column": 29 } } }, "range": [ - 8448, - 8475 + 8537, + 8564 ], "loc": { "start": { - "line": 359, + "line": 365, "column": 2 }, "end": { - "line": 359, + "line": 365, "column": 29 } } @@ -14083,16 +14230,16 @@ "type": "Identifier", "name": "renderer", "range": [ - 8476, - 8484 + 8565, + 8573 ], "loc": { "start": { - "line": 359, + "line": 365, "column": 30 }, "end": { - "line": 359, + "line": 365, "column": 38 } } @@ -14101,47 +14248,47 @@ "type": "Identifier", "name": "renderTargetMask", "range": [ - 8486, - 8502 + 8575, + 8591 ], "loc": { "start": { - "line": 359, + "line": 365, "column": 40 }, "end": { - "line": 359, + "line": 365, "column": 56 } } } ], "range": [ - 8448, - 8503 + 8537, + 8592 ], "loc": { "start": { - "line": 359, + "line": 365, "column": 2 }, "end": { - "line": 359, + "line": 365, "column": 57 } } }, "range": [ - 8448, - 8504 + 8537, + 8593 ], "loc": { "start": { - "line": 359, + "line": 365, "column": 2 }, "end": { - "line": 359, + "line": 365, "column": 58 } } @@ -14159,16 +14306,16 @@ "object": { "type": "ThisExpression", "range": [ - 8508, - 8512 + 8597, + 8601 ], "loc": { "start": { - "line": 360, + "line": 366, "column": 2 }, "end": { - "line": 360, + "line": 366, "column": 6 } } @@ -14177,31 +14324,31 @@ "type": "Identifier", "name": "renderPassMask", "range": [ - 8513, - 8527 + 8602, + 8616 ], "loc": { "start": { - "line": 360, + "line": 366, "column": 7 }, "end": { - "line": 360, + "line": 366, "column": 21 } } }, "range": [ - 8508, - 8527 + 8597, + 8616 ], "loc": { "start": { - "line": 360, + "line": 366, "column": 2 }, "end": { - "line": 360, + "line": 366, "column": 21 } } @@ -14210,31 +14357,31 @@ "type": "Identifier", "name": "render", "range": [ - 8528, - 8534 + 8617, + 8623 ], "loc": { "start": { - "line": 360, + "line": 366, "column": 22 }, "end": { - "line": 360, + "line": 366, "column": 28 } } }, "range": [ - 8508, - 8534 + 8597, + 8623 ], "loc": { "start": { - "line": 360, + "line": 366, "column": 2 }, "end": { - "line": 360, + "line": 366, "column": 28 } } @@ -14244,16 +14391,16 @@ "type": "Identifier", "name": "renderer", "range": [ - 8535, - 8543 + 8624, + 8632 ], "loc": { "start": { - "line": 360, + "line": 366, "column": 29 }, "end": { - "line": 360, + "line": 366, "column": 37 } } @@ -14262,47 +14409,47 @@ "type": "Identifier", "name": "renderTargetMask", "range": [ - 8545, - 8561 + 8634, + 8650 ], "loc": { "start": { - "line": 360, + "line": 366, "column": 39 }, "end": { - "line": 360, + "line": 366, "column": 55 } } } ], "range": [ - 8508, - 8562 + 8597, + 8651 ], "loc": { "start": { - "line": 360, + "line": 366, "column": 2 }, "end": { - "line": 360, + "line": 366, "column": 56 } } }, "range": [ - 8508, - 8563 + 8597, + 8652 ], "loc": { "start": { - "line": 360, + "line": 366, "column": 2 }, "end": { - "line": 360, + "line": 366, "column": 57 } } @@ -14316,16 +14463,16 @@ "type": "Identifier", "name": "parent", "range": [ - 8572, - 8578 + 8661, + 8667 ], "loc": { "start": { - "line": 362, + "line": 368, "column": 5 }, "end": { - "line": 362, + "line": 368, "column": 11 } } @@ -14335,31 +14482,31 @@ "value": null, "raw": "null", "range": [ - 8583, - 8587 + 8672, + 8676 ], "loc": { "start": { - "line": 362, + "line": 368, "column": 16 }, "end": { - "line": 362, + "line": 368, "column": 20 } } }, "range": [ - 8572, - 8587 + 8661, + 8676 ], "loc": { "start": { - "line": 362, + "line": 368, "column": 5 }, "end": { - "line": 362, + "line": 368, "column": 20 } } @@ -14378,16 +14525,16 @@ "type": "Identifier", "name": "parent", "range": [ - 8597, - 8603 + 8686, + 8692 ], "loc": { "start": { - "line": 364, + "line": 370, "column": 3 }, "end": { - "line": 364, + "line": 370, "column": 9 } } @@ -14396,31 +14543,31 @@ "type": "Identifier", "name": "add", "range": [ - 8604, - 8607 + 8693, + 8696 ], "loc": { "start": { - "line": 364, + "line": 370, "column": 10 }, "end": { - "line": 364, + "line": 370, "column": 13 } } }, "range": [ - 8597, - 8607 + 8686, + 8696 ], "loc": { "start": { - "line": 364, + "line": 370, "column": 3 }, "end": { - "line": 364, + "line": 370, "column": 13 } } @@ -14430,79 +14577,79 @@ "type": "Identifier", "name": "lightSource", "range": [ - 8608, - 8619 + 8697, + 8708 ], "loc": { "start": { - "line": 364, + "line": 370, "column": 14 }, "end": { - "line": 364, + "line": 370, "column": 25 } } } ], "range": [ - 8597, - 8620 + 8686, + 8709 ], "loc": { "start": { - "line": 364, + "line": 370, "column": 3 }, "end": { - "line": 364, + "line": 370, "column": 26 } } }, "range": [ - 8597, - 8621 + 8686, + 8710 ], "loc": { "start": { - "line": 364, + "line": 370, "column": 3 }, "end": { - "line": 364, + "line": 370, "column": 27 } } } ], "range": [ - 8589, - 8628 + 8678, + 8717 ], "loc": { "start": { - "line": 362, + "line": 368, "column": 22 }, "end": { - "line": 366, + "line": 372, "column": 3 } } }, "alternate": null, "range": [ - 8569, - 8628 + 8658, + 8717 ], "loc": { "start": { - "line": 362, + "line": 368, "column": 2 }, "end": { - "line": 366, + "line": 372, "column": 3 } } @@ -14519,16 +14666,16 @@ "type": "Identifier", "name": "mainScene", "range": [ - 8634, - 8643 + 8723, + 8732 ], "loc": { "start": { - "line": 368, + "line": 374, "column": 2 }, "end": { - "line": 368, + "line": 374, "column": 11 } } @@ -14537,31 +14684,31 @@ "type": "Identifier", "name": "background", "range": [ - 8644, - 8654 + 8733, + 8743 ], "loc": { "start": { - "line": 368, + "line": 374, "column": 12 }, "end": { - "line": 368, + "line": 374, "column": 22 } } }, "range": [ - 8634, - 8654 + 8723, + 8743 ], "loc": { "start": { - "line": 368, + "line": 374, "column": 2 }, "end": { - "line": 368, + "line": 374, "column": 22 } } @@ -14570,46 +14717,46 @@ "type": "Identifier", "name": "background", "range": [ - 8657, - 8667 + 8746, + 8756 ], "loc": { "start": { - "line": 368, + "line": 374, "column": 25 }, "end": { - "line": 368, + "line": 374, "column": 35 } } }, "range": [ - 8634, - 8667 + 8723, + 8756 ], "loc": { "start": { - "line": 368, + "line": 374, "column": 2 }, "end": { - "line": 368, + "line": 374, "column": 35 } } }, "range": [ - 8634, - 8668 + 8723, + 8757 ], "loc": { "start": { - "line": 368, + "line": 374, "column": 2 }, "end": { - "line": 368, + "line": 374, "column": 36 } }, @@ -14618,16 +14765,16 @@ "type": "Line", "value": " Convolution phase.", "range": [ - 8674, - 8695 + 8763, + 8784 ], "loc": { "start": { - "line": 370, + "line": 376, "column": 2 }, "end": { - "line": 370, + "line": 376, "column": 23 } } @@ -14647,16 +14794,16 @@ "object": { "type": "ThisExpression", "range": [ - 8699, - 8703 + 8788, + 8792 ], "loc": { "start": { - "line": 371, + "line": 377, "column": 2 }, "end": { - "line": 371, + "line": 377, "column": 6 } } @@ -14665,31 +14812,31 @@ "type": "Identifier", "name": "blurPass", "range": [ - 8704, - 8712 + 8793, + 8801 ], "loc": { "start": { - "line": 371, + "line": 377, "column": 7 }, "end": { - "line": 371, + "line": 377, "column": 15 } } }, "range": [ - 8699, - 8712 + 8788, + 8801 ], "loc": { "start": { - "line": 371, + "line": 377, "column": 2 }, "end": { - "line": 371, + "line": 377, "column": 15 } } @@ -14698,31 +14845,31 @@ "type": "Identifier", "name": "render", "range": [ - 8713, - 8719 + 8802, + 8808 ], "loc": { "start": { - "line": 371, + "line": 377, "column": 16 }, "end": { - "line": 371, + "line": 377, "column": 22 } } }, "range": [ - 8699, - 8719 + 8788, + 8808 ], "loc": { "start": { - "line": 371, + "line": 377, "column": 2 }, "end": { - "line": 371, + "line": 377, "column": 22 } } @@ -14732,16 +14879,16 @@ "type": "Identifier", "name": "renderer", "range": [ - 8720, - 8728 + 8809, + 8817 ], "loc": { "start": { - "line": 371, + "line": 377, "column": 23 }, "end": { - "line": 371, + "line": 377, "column": 31 } } @@ -14750,16 +14897,16 @@ "type": "Identifier", "name": "renderTargetMask", "range": [ - 8730, - 8746 + 8819, + 8835 ], "loc": { "start": { - "line": 371, + "line": 377, "column": 33 }, "end": { - "line": 371, + "line": 377, "column": 49 } } @@ -14768,47 +14915,47 @@ "type": "Identifier", "name": "renderTargetX", "range": [ - 8748, - 8761 + 8837, + 8850 ], "loc": { "start": { - "line": 371, + "line": 377, "column": 51 }, "end": { - "line": 371, + "line": 377, "column": 64 } } } ], "range": [ - 8699, - 8762 + 8788, + 8851 ], "loc": { "start": { - "line": 371, + "line": 377, "column": 2 }, "end": { - "line": 371, + "line": 377, "column": 65 } } }, "range": [ - 8699, - 8763 + 8788, + 8852 ], "loc": { "start": { - "line": 371, + "line": 377, "column": 2 }, "end": { - "line": 371, + "line": 377, "column": 66 } }, @@ -14817,16 +14964,16 @@ "type": "Line", "value": " Convolution phase.", "range": [ - 8674, - 8695 + 8763, + 8784 ], "loc": { "start": { - "line": 370, + "line": 376, "column": 2 }, "end": { - "line": 370, + "line": 376, "column": 23 } } @@ -14837,16 +14984,16 @@ "type": "Line", "value": " God rays pass.", "range": [ - 8769, - 8786 + 8858, + 8875 ], "loc": { "start": { - "line": 373, + "line": 379, "column": 2 }, "end": { - "line": 373, + "line": 379, "column": 19 } } @@ -14865,16 +15012,16 @@ "type": "Identifier", "name": "quad", "range": [ - 8790, - 8794 + 8879, + 8883 ], "loc": { "start": { - "line": 374, + "line": 380, "column": 2 }, "end": { - "line": 374, + "line": 380, "column": 6 } } @@ -14883,31 +15030,31 @@ "type": "Identifier", "name": "material", "range": [ - 8795, - 8803 + 8884, + 8892 ], "loc": { "start": { - "line": 374, + "line": 380, "column": 7 }, "end": { - "line": 374, + "line": 380, "column": 15 } } }, "range": [ - 8790, - 8803 + 8879, + 8892 ], "loc": { "start": { - "line": 374, + "line": 380, "column": 2 }, "end": { - "line": 374, + "line": 380, "column": 15 } } @@ -14916,46 +15063,46 @@ "type": "Identifier", "name": "godRaysMaterial", "range": [ - 8806, - 8821 + 8895, + 8910 ], "loc": { "start": { - "line": 374, + "line": 380, "column": 18 }, "end": { - "line": 374, + "line": 380, "column": 33 } } }, "range": [ - 8790, - 8821 + 8879, + 8910 ], "loc": { "start": { - "line": 374, + "line": 380, "column": 2 }, "end": { - "line": 374, + "line": 380, "column": 33 } } }, "range": [ - 8790, - 8822 + 8879, + 8911 ], "loc": { "start": { - "line": 374, + "line": 380, "column": 2 }, "end": { - "line": 374, + "line": 380, "column": 34 } }, @@ -14964,16 +15111,16 @@ "type": "Line", "value": " God rays pass.", "range": [ - 8769, - 8786 + 8858, + 8875 ], "loc": { "start": { - "line": 373, + "line": 379, "column": 2 }, "end": { - "line": 373, + "line": 379, "column": 19 } } @@ -14998,16 +15145,16 @@ "type": "Identifier", "name": "godRaysMaterial", "range": [ - 8826, - 8841 + 8915, + 8930 ], "loc": { "start": { - "line": 375, + "line": 381, "column": 2 }, "end": { - "line": 375, + "line": 381, "column": 17 } } @@ -15016,31 +15163,31 @@ "type": "Identifier", "name": "uniforms", "range": [ - 8842, - 8850 + 8931, + 8939 ], "loc": { "start": { - "line": 375, + "line": 381, "column": 18 }, "end": { - "line": 375, + "line": 381, "column": 26 } } }, "range": [ - 8826, - 8850 + 8915, + 8939 ], "loc": { "start": { - "line": 375, + "line": 381, "column": 2 }, "end": { - "line": 375, + "line": 381, "column": 26 } } @@ -15049,31 +15196,31 @@ "type": "Identifier", "name": "tDiffuse", "range": [ - 8851, - 8859 + 8940, + 8948 ], "loc": { "start": { - "line": 375, + "line": 381, "column": 27 }, "end": { - "line": 375, + "line": 381, "column": 35 } } }, "range": [ - 8826, - 8859 + 8915, + 8948 ], "loc": { "start": { - "line": 375, + "line": 381, "column": 2 }, "end": { - "line": 375, + "line": 381, "column": 35 } } @@ -15082,31 +15229,31 @@ "type": "Identifier", "name": "value", "range": [ - 8860, - 8865 + 8949, + 8954 ], "loc": { "start": { - "line": 375, + "line": 381, "column": 36 }, "end": { - "line": 375, + "line": 381, "column": 41 } } }, "range": [ - 8826, - 8865 + 8915, + 8954 ], "loc": { "start": { - "line": 375, + "line": 381, "column": 2 }, "end": { - "line": 375, + "line": 381, "column": 41 } } @@ -15118,16 +15265,16 @@ "type": "Identifier", "name": "renderTargetX", "range": [ - 8868, - 8881 + 8957, + 8970 ], "loc": { "start": { - "line": 375, + "line": 381, "column": 44 }, "end": { - "line": 375, + "line": 381, "column": 57 } } @@ -15136,61 +15283,61 @@ "type": "Identifier", "name": "texture", "range": [ - 8882, - 8889 + 8971, + 8978 ], "loc": { "start": { - "line": 375, + "line": 381, "column": 58 }, "end": { - "line": 375, + "line": 381, "column": 65 } } }, "range": [ - 8868, - 8889 + 8957, + 8978 ], "loc": { "start": { - "line": 375, + "line": 381, "column": 44 }, "end": { - "line": 375, + "line": 381, "column": 65 } } }, "range": [ - 8826, - 8889 + 8915, + 8978 ], "loc": { "start": { - "line": 375, + "line": 381, "column": 2 }, "end": { - "line": 375, + "line": 381, "column": 65 } } }, "range": [ - 8826, - 8890 + 8915, + 8979 ], "loc": { "start": { - "line": 375, + "line": 381, "column": 2 }, "end": { - "line": 375, + "line": 381, "column": 66 } } @@ -15206,16 +15353,16 @@ "type": "Identifier", "name": "renderer", "range": [ - 8894, - 8902 + 8983, + 8991 ], "loc": { "start": { - "line": 376, + "line": 382, "column": 2 }, "end": { - "line": 376, + "line": 382, "column": 10 } } @@ -15224,31 +15371,31 @@ "type": "Identifier", "name": "render", "range": [ - 8903, - 8909 + 8992, + 8998 ], "loc": { "start": { - "line": 376, + "line": 382, "column": 11 }, "end": { - "line": 376, + "line": 382, "column": 17 } } }, "range": [ - 8894, - 8909 + 8983, + 8998 ], "loc": { "start": { - "line": 376, + "line": 382, "column": 2 }, "end": { - "line": 376, + "line": 382, "column": 17 } } @@ -15258,16 +15405,16 @@ "type": "Identifier", "name": "scene", "range": [ - 8910, - 8915 + 8999, + 9004 ], "loc": { "start": { - "line": 376, + "line": 382, "column": 18 }, "end": { - "line": 376, + "line": 382, "column": 23 } } @@ -15276,16 +15423,16 @@ "type": "Identifier", "name": "camera", "range": [ - 8917, - 8923 + 9006, + 9012 ], "loc": { "start": { - "line": 376, + "line": 382, "column": 25 }, "end": { - "line": 376, + "line": 382, "column": 31 } } @@ -15294,47 +15441,47 @@ "type": "Identifier", "name": "renderTargetY", "range": [ - 8925, - 8938 + 9014, + 9027 ], "loc": { "start": { - "line": 376, + "line": 382, "column": 33 }, "end": { - "line": 376, + "line": 382, "column": 46 } } } ], "range": [ - 8894, - 8939 + 8983, + 9028 ], "loc": { "start": { - "line": 376, + "line": 382, "column": 2 }, "end": { - "line": 376, + "line": 382, "column": 47 } } }, "range": [ - 8894, - 8940 + 8983, + 9029 ], "loc": { "start": { - "line": 376, + "line": 382, "column": 2 }, "end": { - "line": 376, + "line": 382, "column": 48 } }, @@ -15343,16 +15490,16 @@ "type": "Line", "value": " Final pass - composite god rays onto colours.", "range": [ - 8946, - 8994 + 9035, + 9083 ], "loc": { "start": { - "line": 378, + "line": 384, "column": 2 }, "end": { - "line": 378, + "line": 384, "column": 50 } } @@ -15371,16 +15518,16 @@ "type": "Identifier", "name": "quad", "range": [ - 8998, - 9002 + 9087, + 9091 ], "loc": { "start": { - "line": 379, + "line": 385, "column": 2 }, "end": { - "line": 379, + "line": 385, "column": 6 } } @@ -15389,31 +15536,31 @@ "type": "Identifier", "name": "material", "range": [ - 9003, - 9011 + 9092, + 9100 ], "loc": { "start": { - "line": 379, + "line": 385, "column": 7 }, "end": { - "line": 379, + "line": 385, "column": 15 } } }, "range": [ - 8998, - 9011 + 9087, + 9100 ], "loc": { "start": { - "line": 379, + "line": 385, "column": 2 }, "end": { - "line": 379, + "line": 385, "column": 15 } } @@ -15422,46 +15569,46 @@ "type": "Identifier", "name": "combineMaterial", "range": [ - 9014, - 9029 + 9103, + 9118 ], "loc": { "start": { - "line": 379, + "line": 385, "column": 18 }, "end": { - "line": 379, + "line": 385, "column": 33 } } }, "range": [ - 8998, - 9029 + 9087, + 9118 ], "loc": { "start": { - "line": 379, + "line": 385, "column": 2 }, "end": { - "line": 379, + "line": 385, "column": 33 } } }, "range": [ - 8998, - 9030 + 9087, + 9119 ], "loc": { "start": { - "line": 379, + "line": 385, "column": 2 }, "end": { - "line": 379, + "line": 385, "column": 34 } }, @@ -15470,16 +15617,16 @@ "type": "Line", "value": " Final pass - composite god rays onto colours.", "range": [ - 8946, - 8994 + 9035, + 9083 ], "loc": { "start": { - "line": 378, + "line": 384, "column": 2 }, "end": { - "line": 378, + "line": 384, "column": 50 } } @@ -15504,16 +15651,16 @@ "type": "Identifier", "name": "combineMaterial", "range": [ - 9034, - 9049 + 9123, + 9138 ], "loc": { "start": { - "line": 380, + "line": 386, "column": 2 }, "end": { - "line": 380, + "line": 386, "column": 17 } } @@ -15522,31 +15669,31 @@ "type": "Identifier", "name": "uniforms", "range": [ - 9050, - 9058 + 9139, + 9147 ], "loc": { "start": { - "line": 380, + "line": 386, "column": 18 }, "end": { - "line": 380, + "line": 386, "column": 26 } } }, "range": [ - 9034, - 9058 + 9123, + 9147 ], "loc": { "start": { - "line": 380, + "line": 386, "column": 2 }, "end": { - "line": 380, + "line": 386, "column": 26 } } @@ -15555,31 +15702,31 @@ "type": "Identifier", "name": "texture1", "range": [ - 9059, - 9067 + 9148, + 9156 ], "loc": { "start": { - "line": 380, + "line": 386, "column": 27 }, "end": { - "line": 380, + "line": 386, "column": 35 } } }, "range": [ - 9034, - 9067 + 9123, + 9156 ], "loc": { "start": { - "line": 380, + "line": 386, "column": 2 }, "end": { - "line": 380, + "line": 386, "column": 35 } } @@ -15588,31 +15735,31 @@ "type": "Identifier", "name": "value", "range": [ - 9068, - 9073 + 9157, + 9162 ], "loc": { "start": { - "line": 380, + "line": 386, "column": 36 }, "end": { - "line": 380, + "line": 386, "column": 41 } } }, "range": [ - 9034, - 9073 + 9123, + 9162 ], "loc": { "start": { - "line": 380, + "line": 386, "column": 2 }, "end": { - "line": 380, + "line": 386, "column": 41 } } @@ -15624,16 +15771,16 @@ "type": "Identifier", "name": "readBuffer", "range": [ - 9076, - 9086 + 9165, + 9175 ], "loc": { "start": { - "line": 380, + "line": 386, "column": 44 }, "end": { - "line": 380, + "line": 386, "column": 54 } } @@ -15642,61 +15789,61 @@ "type": "Identifier", "name": "texture", "range": [ - 9087, - 9094 + 9176, + 9183 ], "loc": { "start": { - "line": 380, + "line": 386, "column": 55 }, "end": { - "line": 380, + "line": 386, "column": 62 } } }, "range": [ - 9076, - 9094 + 9165, + 9183 ], "loc": { "start": { - "line": 380, + "line": 386, "column": 44 }, "end": { - "line": 380, + "line": 386, "column": 62 } } }, "range": [ - 9034, - 9094 + 9123, + 9183 ], "loc": { "start": { - "line": 380, + "line": 386, "column": 2 }, "end": { - "line": 380, + "line": 386, "column": 62 } } }, "range": [ - 9034, - 9095 + 9123, + 9184 ], "loc": { "start": { - "line": 380, + "line": 386, "column": 2 }, "end": { - "line": 380, + "line": 386, "column": 63 } } @@ -15719,16 +15866,16 @@ "type": "Identifier", "name": "combineMaterial", "range": [ - 9099, - 9114 + 9188, + 9203 ], "loc": { "start": { - "line": 381, + "line": 387, "column": 2 }, "end": { - "line": 381, + "line": 387, "column": 17 } } @@ -15737,31 +15884,31 @@ "type": "Identifier", "name": "uniforms", "range": [ - 9115, - 9123 + 9204, + 9212 ], "loc": { "start": { - "line": 381, + "line": 387, "column": 18 }, "end": { - "line": 381, + "line": 387, "column": 26 } } }, "range": [ - 9099, - 9123 + 9188, + 9212 ], "loc": { "start": { - "line": 381, + "line": 387, "column": 2 }, "end": { - "line": 381, + "line": 387, "column": 26 } } @@ -15770,31 +15917,31 @@ "type": "Identifier", "name": "texture2", "range": [ - 9124, - 9132 + 9213, + 9221 ], "loc": { "start": { - "line": 381, + "line": 387, "column": 27 }, "end": { - "line": 381, + "line": 387, "column": 35 } } }, "range": [ - 9099, - 9132 + 9188, + 9221 ], "loc": { "start": { - "line": 381, + "line": 387, "column": 2 }, "end": { - "line": 381, + "line": 387, "column": 35 } } @@ -15803,31 +15950,31 @@ "type": "Identifier", "name": "value", "range": [ - 9133, - 9138 + 9222, + 9227 ], "loc": { "start": { - "line": 381, + "line": 387, "column": 36 }, "end": { - "line": 381, + "line": 387, "column": 41 } } }, "range": [ - 9099, - 9138 + 9188, + 9227 ], "loc": { "start": { - "line": 381, + "line": 387, "column": 2 }, "end": { - "line": 381, + "line": 387, "column": 41 } } @@ -15839,16 +15986,16 @@ "type": "Identifier", "name": "renderTargetY", "range": [ - 9141, - 9154 + 9230, + 9243 ], "loc": { "start": { - "line": 381, + "line": 387, "column": 44 }, "end": { - "line": 381, + "line": 387, "column": 57 } } @@ -15857,61 +16004,61 @@ "type": "Identifier", "name": "texture", "range": [ - 9155, - 9162 + 9244, + 9251 ], "loc": { "start": { - "line": 381, + "line": 387, "column": 58 }, "end": { - "line": 381, + "line": 387, "column": 65 } } }, "range": [ - 9141, - 9162 + 9230, + 9251 ], "loc": { "start": { - "line": 381, + "line": 387, "column": 44 }, "end": { - "line": 381, + "line": 387, "column": 65 } } }, "range": [ - 9099, - 9162 + 9188, + 9251 ], "loc": { "start": { - "line": 381, + "line": 387, "column": 2 }, "end": { - "line": 381, + "line": 387, "column": 65 } } }, "range": [ - 9099, - 9163 + 9188, + 9252 ], "loc": { "start": { - "line": 381, + "line": 387, "column": 2 }, "end": { - "line": 381, + "line": 387, "column": 66 } } @@ -15927,16 +16074,16 @@ "type": "Identifier", "name": "renderer", "range": [ - 9169, - 9177 + 9258, + 9266 ], "loc": { "start": { - "line": 383, + "line": 389, "column": 2 }, "end": { - "line": 383, + "line": 389, "column": 10 } } @@ -15945,31 +16092,31 @@ "type": "Identifier", "name": "render", "range": [ - 9178, - 9184 + 9267, + 9273 ], "loc": { "start": { - "line": 383, + "line": 389, "column": 11 }, "end": { - "line": 383, + "line": 389, "column": 17 } } }, "range": [ - 9169, - 9184 + 9258, + 9273 ], "loc": { "start": { - "line": 383, + "line": 389, "column": 2 }, "end": { - "line": 383, + "line": 389, "column": 17 } } @@ -15979,16 +16126,16 @@ "type": "Identifier", "name": "scene", "range": [ - 9185, - 9190 + 9274, + 9279 ], "loc": { "start": { - "line": 383, + "line": 389, "column": 18 }, "end": { - "line": 383, + "line": 389, "column": 23 } } @@ -15997,16 +16144,16 @@ "type": "Identifier", "name": "camera", "range": [ - 9192, - 9198 + 9281, + 9287 ], "loc": { "start": { - "line": 383, + "line": 389, "column": 25 }, "end": { - "line": 383, + "line": 389, "column": 31 } } @@ -16019,16 +16166,16 @@ "object": { "type": "ThisExpression", "range": [ - 9200, - 9204 + 9289, + 9293 ], "loc": { "start": { - "line": 383, + "line": 389, "column": 33 }, "end": { - "line": 383, + "line": 389, "column": 37 } } @@ -16037,31 +16184,31 @@ "type": "Identifier", "name": "renderToScreen", "range": [ - 9205, - 9219 + 9294, + 9308 ], "loc": { "start": { - "line": 383, + "line": 389, "column": 38 }, "end": { - "line": 383, + "line": 389, "column": 52 } } }, "range": [ - 9200, - 9219 + 9289, + 9308 ], "loc": { "start": { - "line": 383, + "line": 389, "column": 33 }, "end": { - "line": 383, + "line": 389, "column": 52 } } @@ -16071,16 +16218,16 @@ "value": null, "raw": "null", "range": [ - 9222, - 9226 + 9311, + 9315 ], "loc": { "start": { - "line": 383, + "line": 389, "column": 55 }, "end": { - "line": 383, + "line": 389, "column": 59 } } @@ -16089,78 +16236,78 @@ "type": "Identifier", "name": "writeBuffer", "range": [ - 9229, - 9240 + 9318, + 9329 ], "loc": { "start": { - "line": 383, + "line": 389, "column": 62 }, "end": { - "line": 383, + "line": 389, "column": 73 } } }, "range": [ - 9200, - 9240 + 9289, + 9329 ], "loc": { "start": { - "line": 383, + "line": 389, "column": 33 }, "end": { - "line": 383, + "line": 389, "column": 73 } } } ], "range": [ - 9169, - 9241 + 9258, + 9330 ], "loc": { "start": { - "line": 383, + "line": 389, "column": 2 }, "end": { - "line": 383, + "line": 389, "column": 74 } } }, "range": [ - 9169, - 9242 + 9258, + 9331 ], "loc": { "start": { - "line": 383, + "line": 389, "column": 2 }, "end": { - "line": 383, + "line": 389, "column": 75 } } } ], "range": [ - 7498, - 9248 + 7587, + 9337 ], "loc": { "start": { - "line": 329, + "line": 335, "column": 43 }, "end": { - "line": 385, + "line": 391, "column": 2 } } @@ -16168,16 +16315,16 @@ "generator": false, "expression": false, "range": [ - 7462, - 9248 + 7551, + 9337 ], "loc": { "start": { - "line": 329, + "line": 335, "column": 7 }, "end": { - "line": 385, + "line": 391, "column": 2 } } @@ -16185,16 +16332,16 @@ "kind": "method", "computed": false, "range": [ - 7456, - 9248 + 7545, + 9337 ], "loc": { "start": { - "line": 329, + "line": 335, "column": 1 }, "end": { - "line": 385, + "line": 391, "column": 2 } }, @@ -16203,16 +16350,16 @@ "type": "Block", "value": "*\r\n\t * Renders the scene.\r\n\t *\r\n\t * The god rays pass has four phases:\r\n\t *\r\n\t * Mask Phase:\r\n\t * First, the light source is rendered. Then the scene is rendered into the\r\n\t * same buffer using a mask override material with depth test enabled.\r\n\t *\r\n\t * Preliminary Blur Phase:\r\n\t * The masked scene is blurred.\r\n\t *\r\n\t * God Rays Phase:\r\n\t * The blurred scene is blurred again, but this time along radial lines\r\n\t * towards the light source.\r\n\t *\r\n\t * Composite Phase:\r\n\t * The final result is combined with the read buffer.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {WebGLRenderTarget} readBuffer - The read buffer.\r\n\t * @param {WebGLRenderTarget} writeBuffer - The write buffer.\r\n\t ", "range": [ - 6728, - 7451 + 6817, + 7540 ], "loc": { "start": { - "line": 305, + "line": 311, "column": 1 }, "end": { - "line": 327, + "line": 333, "column": 4 } } @@ -16223,16 +16370,16 @@ "type": "Block", "value": "*\r\n\t * Adjusts the format of the render targets.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {Boolean} alpha - Whether the renderer uses the alpha channel or not.\r\n\t ", "range": [ - 9253, - 9449 + 9342, + 9538 ], "loc": { "start": { - "line": 387, + "line": 393, "column": 1 }, "end": { - "line": 392, + "line": 398, "column": 4 } } @@ -16246,16 +16393,16 @@ "type": "Identifier", "name": "initialise", "range": [ - 9454, - 9464 + 9543, + 9553 ], "loc": { "start": { - "line": 394, + "line": 400, "column": 1 }, "end": { - "line": 394, + "line": 400, "column": 11 } } @@ -16268,16 +16415,16 @@ "type": "Identifier", "name": "renderer", "range": [ - 9465, - 9473 + 9554, + 9562 ], "loc": { "start": { - "line": 394, + "line": 400, "column": 12 }, "end": { - "line": 394, + "line": 400, "column": 20 } } @@ -16286,16 +16433,16 @@ "type": "Identifier", "name": "alpha", "range": [ - 9475, - 9480 + 9564, + 9569 ], "loc": { "start": { - "line": 394, + "line": 400, "column": 22 }, "end": { - "line": 394, + "line": 400, "column": 27 } } @@ -16317,16 +16464,16 @@ "object": { "type": "ThisExpression", "range": [ - 9489, - 9493 + 9578, + 9582 ], "loc": { "start": { - "line": 396, + "line": 402, "column": 2 }, "end": { - "line": 396, + "line": 402, "column": 6 } } @@ -16335,31 +16482,31 @@ "type": "Identifier", "name": "renderPassLight", "range": [ - 9494, - 9509 + 9583, + 9598 ], "loc": { "start": { - "line": 396, + "line": 402, "column": 7 }, "end": { - "line": 396, + "line": 402, "column": 22 } } }, "range": [ - 9489, - 9509 + 9578, + 9598 ], "loc": { "start": { - "line": 396, + "line": 402, "column": 2 }, "end": { - "line": 396, + "line": 402, "column": 22 } } @@ -16368,31 +16515,31 @@ "type": "Identifier", "name": "initialise", "range": [ - 9510, - 9520 + 9599, + 9609 ], "loc": { "start": { - "line": 396, + "line": 402, "column": 23 }, "end": { - "line": 396, + "line": 402, "column": 33 } } }, "range": [ - 9489, - 9520 + 9578, + 9609 ], "loc": { "start": { - "line": 396, + "line": 402, "column": 2 }, "end": { - "line": 396, + "line": 402, "column": 33 } } @@ -16402,16 +16549,16 @@ "type": "Identifier", "name": "renderer", "range": [ - 9521, - 9529 + 9610, + 9618 ], "loc": { "start": { - "line": 396, + "line": 402, "column": 34 }, "end": { - "line": 396, + "line": 402, "column": 42 } } @@ -16420,47 +16567,47 @@ "type": "Identifier", "name": "alpha", "range": [ - 9531, - 9536 + 9620, + 9625 ], "loc": { "start": { - "line": 396, + "line": 402, "column": 44 }, "end": { - "line": 396, + "line": 402, "column": 49 } } } ], "range": [ - 9489, - 9537 + 9578, + 9626 ], "loc": { "start": { - "line": 396, + "line": 402, "column": 2 }, "end": { - "line": 396, + "line": 402, "column": 50 } } }, "range": [ - 9489, - 9538 + 9578, + 9627 ], "loc": { "start": { - "line": 396, + "line": 402, "column": 2 }, "end": { - "line": 396, + "line": 402, "column": 51 } } @@ -16478,16 +16625,16 @@ "object": { "type": "ThisExpression", "range": [ - 9542, - 9546 + 9631, + 9635 ], "loc": { "start": { - "line": 397, + "line": 403, "column": 2 }, "end": { - "line": 397, + "line": 403, "column": 6 } } @@ -16496,31 +16643,31 @@ "type": "Identifier", "name": "renderPassMask", "range": [ - 9547, - 9561 + 9636, + 9650 ], "loc": { "start": { - "line": 397, + "line": 403, "column": 7 }, "end": { - "line": 397, + "line": 403, "column": 21 } } }, "range": [ - 9542, - 9561 + 9631, + 9650 ], "loc": { "start": { - "line": 397, + "line": 403, "column": 2 }, "end": { - "line": 397, + "line": 403, "column": 21 } } @@ -16529,31 +16676,31 @@ "type": "Identifier", "name": "initialise", "range": [ - 9562, - 9572 + 9651, + 9661 ], "loc": { "start": { - "line": 397, + "line": 403, "column": 22 }, "end": { - "line": 397, + "line": 403, "column": 32 } } }, "range": [ - 9542, - 9572 + 9631, + 9661 ], "loc": { "start": { - "line": 397, + "line": 403, "column": 2 }, "end": { - "line": 397, + "line": 403, "column": 32 } } @@ -16563,16 +16710,16 @@ "type": "Identifier", "name": "renderer", "range": [ - 9573, - 9581 + 9662, + 9670 ], "loc": { "start": { - "line": 397, + "line": 403, "column": 33 }, "end": { - "line": 397, + "line": 403, "column": 41 } } @@ -16581,47 +16728,47 @@ "type": "Identifier", "name": "alpha", "range": [ - 9583, - 9588 + 9672, + 9677 ], "loc": { "start": { - "line": 397, + "line": 403, "column": 43 }, "end": { - "line": 397, + "line": 403, "column": 48 } } } ], "range": [ - 9542, - 9589 + 9631, + 9678 ], "loc": { "start": { - "line": 397, + "line": 403, "column": 2 }, "end": { - "line": 397, + "line": 403, "column": 49 } } }, "range": [ - 9542, - 9590 + 9631, + 9679 ], "loc": { "start": { - "line": 397, + "line": 403, "column": 2 }, "end": { - "line": 397, + "line": 403, "column": 50 } } @@ -16639,16 +16786,16 @@ "object": { "type": "ThisExpression", "range": [ - 9594, - 9598 + 9683, + 9687 ], "loc": { "start": { - "line": 398, + "line": 404, "column": 2 }, "end": { - "line": 398, + "line": 404, "column": 6 } } @@ -16657,31 +16804,31 @@ "type": "Identifier", "name": "blurPass", "range": [ - 9599, - 9607 + 9688, + 9696 ], "loc": { "start": { - "line": 398, + "line": 404, "column": 7 }, "end": { - "line": 398, + "line": 404, "column": 15 } } }, "range": [ - 9594, - 9607 + 9683, + 9696 ], "loc": { "start": { - "line": 398, + "line": 404, "column": 2 }, "end": { - "line": 398, + "line": 404, "column": 15 } } @@ -16690,31 +16837,31 @@ "type": "Identifier", "name": "initialise", "range": [ - 9608, - 9618 + 9697, + 9707 ], "loc": { "start": { - "line": 398, + "line": 404, "column": 16 }, "end": { - "line": 398, + "line": 404, "column": 26 } } }, "range": [ - 9594, - 9618 + 9683, + 9707 ], "loc": { "start": { - "line": 398, + "line": 404, "column": 2 }, "end": { - "line": 398, + "line": 404, "column": 26 } } @@ -16724,16 +16871,16 @@ "type": "Identifier", "name": "renderer", "range": [ - 9619, - 9627 + 9708, + 9716 ], "loc": { "start": { - "line": 398, + "line": 404, "column": 27 }, "end": { - "line": 398, + "line": 404, "column": 35 } } @@ -16742,47 +16889,47 @@ "type": "Identifier", "name": "alpha", "range": [ - 9629, - 9634 + 9718, + 9723 ], "loc": { "start": { - "line": 398, + "line": 404, "column": 37 }, "end": { - "line": 398, + "line": 404, "column": 42 } } } ], "range": [ - 9594, - 9635 + 9683, + 9724 ], "loc": { "start": { - "line": 398, + "line": 404, "column": 2 }, "end": { - "line": 398, + "line": 404, "column": 43 } } }, "range": [ - 9594, - 9636 + 9683, + 9725 ], "loc": { "start": { - "line": 398, + "line": 404, "column": 2 }, "end": { - "line": 398, + "line": 404, "column": 44 } } @@ -16796,32 +16943,32 @@ "type": "Identifier", "name": "alpha", "range": [ - 9646, - 9651 + 9735, + 9740 ], "loc": { "start": { - "line": 400, + "line": 406, "column": 6 }, "end": { - "line": 400, + "line": 406, "column": 11 } } }, "prefix": true, "range": [ - 9645, - 9651 + 9734, + 9740 ], "loc": { "start": { - "line": 400, + "line": 406, "column": 5 }, "end": { - "line": 400, + "line": 406, "column": 11 } } @@ -16846,16 +16993,16 @@ "object": { "type": "ThisExpression", "range": [ - 9661, - 9665 + 9750, + 9754 ], "loc": { "start": { - "line": 402, + "line": 408, "column": 3 }, "end": { - "line": 402, + "line": 408, "column": 7 } } @@ -16864,31 +17011,31 @@ "type": "Identifier", "name": "renderTargetMask", "range": [ - 9666, - 9682 + 9755, + 9771 ], "loc": { "start": { - "line": 402, + "line": 408, "column": 8 }, "end": { - "line": 402, + "line": 408, "column": 24 } } }, "range": [ - 9661, - 9682 + 9750, + 9771 ], "loc": { "start": { - "line": 402, + "line": 408, "column": 3 }, "end": { - "line": 402, + "line": 408, "column": 24 } } @@ -16897,31 +17044,31 @@ "type": "Identifier", "name": "texture", "range": [ - 9683, - 9690 + 9772, + 9779 ], "loc": { "start": { - "line": 402, + "line": 408, "column": 25 }, "end": { - "line": 402, + "line": 408, "column": 32 } } }, "range": [ - 9661, - 9690 + 9750, + 9779 ], "loc": { "start": { - "line": 402, + "line": 408, "column": 3 }, "end": { - "line": 402, + "line": 408, "column": 32 } } @@ -16930,31 +17077,31 @@ "type": "Identifier", "name": "format", "range": [ - 9691, - 9697 + 9780, + 9786 ], "loc": { "start": { - "line": 402, + "line": 408, "column": 33 }, "end": { - "line": 402, + "line": 408, "column": 39 } } }, "range": [ - 9661, - 9697 + 9750, + 9786 ], "loc": { "start": { - "line": 402, + "line": 408, "column": 3 }, "end": { - "line": 402, + "line": 408, "column": 39 } } @@ -16963,46 +17110,46 @@ "type": "Identifier", "name": "RGBFormat", "range": [ - 9700, - 9709 + 9789, + 9798 ], "loc": { "start": { - "line": 402, + "line": 408, "column": 42 }, "end": { - "line": 402, + "line": 408, "column": 51 } } }, "range": [ - 9661, - 9709 + 9750, + 9798 ], "loc": { "start": { - "line": 402, + "line": 408, "column": 3 }, "end": { - "line": 402, + "line": 408, "column": 51 } } }, "range": [ - 9661, - 9710 + 9750, + 9799 ], "loc": { "start": { - "line": 402, + "line": 408, "column": 3 }, "end": { - "line": 402, + "line": 408, "column": 52 } } @@ -17024,16 +17171,16 @@ "object": { "type": "ThisExpression", "range": [ - 9715, - 9719 + 9804, + 9808 ], "loc": { "start": { - "line": 403, + "line": 409, "column": 3 }, "end": { - "line": 403, + "line": 409, "column": 7 } } @@ -17042,31 +17189,31 @@ "type": "Identifier", "name": "renderTargetX", "range": [ - 9720, - 9733 + 9809, + 9822 ], "loc": { "start": { - "line": 403, + "line": 409, "column": 8 }, "end": { - "line": 403, + "line": 409, "column": 21 } } }, "range": [ - 9715, - 9733 + 9804, + 9822 ], "loc": { "start": { - "line": 403, + "line": 409, "column": 3 }, "end": { - "line": 403, + "line": 409, "column": 21 } } @@ -17075,31 +17222,31 @@ "type": "Identifier", "name": "texture", "range": [ - 9734, - 9741 + 9823, + 9830 ], "loc": { "start": { - "line": 403, + "line": 409, "column": 22 }, "end": { - "line": 403, + "line": 409, "column": 29 } } }, "range": [ - 9715, - 9741 + 9804, + 9830 ], "loc": { "start": { - "line": 403, + "line": 409, "column": 3 }, "end": { - "line": 403, + "line": 409, "column": 29 } } @@ -17108,31 +17255,31 @@ "type": "Identifier", "name": "format", "range": [ - 9742, - 9748 + 9831, + 9837 ], "loc": { "start": { - "line": 403, + "line": 409, "column": 30 }, "end": { - "line": 403, + "line": 409, "column": 36 } } }, "range": [ - 9715, - 9748 + 9804, + 9837 ], "loc": { "start": { - "line": 403, + "line": 409, "column": 3 }, "end": { - "line": 403, + "line": 409, "column": 36 } } @@ -17141,46 +17288,46 @@ "type": "Identifier", "name": "RGBFormat", "range": [ - 9751, - 9760 + 9840, + 9849 ], "loc": { "start": { - "line": 403, + "line": 409, "column": 39 }, "end": { - "line": 403, + "line": 409, "column": 48 } } }, "range": [ - 9715, - 9760 + 9804, + 9849 ], "loc": { "start": { - "line": 403, + "line": 409, "column": 3 }, "end": { - "line": 403, + "line": 409, "column": 48 } } }, "range": [ - 9715, - 9761 + 9804, + 9850 ], "loc": { "start": { - "line": 403, + "line": 409, "column": 3 }, "end": { - "line": 403, + "line": 409, "column": 49 } } @@ -17202,16 +17349,16 @@ "object": { "type": "ThisExpression", "range": [ - 9766, - 9770 + 9855, + 9859 ], "loc": { "start": { - "line": 404, + "line": 410, "column": 3 }, "end": { - "line": 404, + "line": 410, "column": 7 } } @@ -17220,31 +17367,31 @@ "type": "Identifier", "name": "renderTargetY", "range": [ - 9771, - 9784 + 9860, + 9873 ], "loc": { "start": { - "line": 404, + "line": 410, "column": 8 }, "end": { - "line": 404, + "line": 410, "column": 21 } } }, "range": [ - 9766, - 9784 + 9855, + 9873 ], "loc": { "start": { - "line": 404, + "line": 410, "column": 3 }, "end": { - "line": 404, + "line": 410, "column": 21 } } @@ -17253,31 +17400,31 @@ "type": "Identifier", "name": "texture", "range": [ - 9785, - 9792 + 9874, + 9881 ], "loc": { "start": { - "line": 404, + "line": 410, "column": 22 }, "end": { - "line": 404, + "line": 410, "column": 29 } } }, "range": [ - 9766, - 9792 + 9855, + 9881 ], "loc": { "start": { - "line": 404, + "line": 410, "column": 3 }, "end": { - "line": 404, + "line": 410, "column": 29 } } @@ -17286,31 +17433,31 @@ "type": "Identifier", "name": "format", "range": [ - 9793, - 9799 + 9882, + 9888 ], "loc": { "start": { - "line": 404, + "line": 410, "column": 30 }, "end": { - "line": 404, + "line": 410, "column": 36 } } }, "range": [ - 9766, - 9799 + 9855, + 9888 ], "loc": { "start": { - "line": 404, + "line": 410, "column": 3 }, "end": { - "line": 404, + "line": 410, "column": 36 } } @@ -17319,94 +17466,94 @@ "type": "Identifier", "name": "RGBFormat", "range": [ - 9802, - 9811 + 9891, + 9900 ], "loc": { "start": { - "line": 404, + "line": 410, "column": 39 }, "end": { - "line": 404, + "line": 410, "column": 48 } } }, "range": [ - 9766, - 9811 + 9855, + 9900 ], "loc": { "start": { - "line": 404, + "line": 410, "column": 3 }, "end": { - "line": 404, + "line": 410, "column": 48 } } }, "range": [ - 9766, - 9812 + 9855, + 9901 ], "loc": { "start": { - "line": 404, + "line": 410, "column": 3 }, "end": { - "line": 404, + "line": 410, "column": 49 } } } ], "range": [ - 9653, - 9819 + 9742, + 9908 ], "loc": { "start": { - "line": 400, + "line": 406, "column": 13 }, "end": { - "line": 406, + "line": 412, "column": 3 } } }, "alternate": null, "range": [ - 9642, - 9819 + 9731, + 9908 ], "loc": { "start": { - "line": 400, + "line": 406, "column": 2 }, "end": { - "line": 406, + "line": 412, "column": 3 } } } ], "range": [ - 9482, - 9825 + 9571, + 9914 ], "loc": { "start": { - "line": 394, + "line": 400, "column": 29 }, "end": { - "line": 408, + "line": 414, "column": 2 } } @@ -17414,16 +17561,16 @@ "generator": false, "expression": false, "range": [ - 9464, - 9825 + 9553, + 9914 ], "loc": { "start": { - "line": 394, + "line": 400, "column": 11 }, "end": { - "line": 408, + "line": 414, "column": 2 } } @@ -17431,16 +17578,16 @@ "kind": "method", "computed": false, "range": [ - 9454, - 9825 + 9543, + 9914 ], "loc": { "start": { - "line": 394, + "line": 400, "column": 1 }, "end": { - "line": 408, + "line": 414, "column": 2 } }, @@ -17449,16 +17596,16 @@ "type": "Block", "value": "*\r\n\t * Adjusts the format of the render targets.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {Boolean} alpha - Whether the renderer uses the alpha channel or not.\r\n\t ", "range": [ - 9253, - 9449 + 9342, + 9538 ], "loc": { "start": { - "line": 387, + "line": 393, "column": 1 }, "end": { - "line": 392, + "line": 398, "column": 4 } } @@ -17469,16 +17616,16 @@ "type": "Block", "value": "*\r\n\t * Updates this pass with the renderer's size.\r\n\t *\r\n\t * @param {Number} width - The width.\r\n\t * @param {Number} height - The height.\r\n\t ", "range": [ - 9830, - 9975 + 9919, + 10064 ], "loc": { "start": { - "line": 410, + "line": 416, "column": 1 }, "end": { - "line": 415, + "line": 421, "column": 4 } } @@ -17492,16 +17639,16 @@ "type": "Identifier", "name": "setSize", "range": [ - 9980, - 9987 + 10069, + 10076 ], "loc": { "start": { - "line": 417, + "line": 423, "column": 1 }, "end": { - "line": 417, + "line": 423, "column": 8 } } @@ -17514,16 +17661,16 @@ "type": "Identifier", "name": "width", "range": [ - 9988, - 9993 + 10077, + 10082 ], "loc": { "start": { - "line": 417, + "line": 423, "column": 9 }, "end": { - "line": 417, + "line": 423, "column": 14 } } @@ -17532,16 +17679,16 @@ "type": "Identifier", "name": "height", "range": [ - 9995, - 10001 + 10084, + 10090 ], "loc": { "start": { - "line": 417, + "line": 423, "column": 16 }, "end": { - "line": 417, + "line": 423, "column": 22 } } @@ -17563,16 +17710,16 @@ "object": { "type": "ThisExpression", "range": [ - 10010, - 10014 + 10099, + 10103 ], "loc": { "start": { - "line": 419, + "line": 425, "column": 2 }, "end": { - "line": 419, + "line": 425, "column": 6 } } @@ -17581,31 +17728,31 @@ "type": "Identifier", "name": "renderPassLight", "range": [ - 10015, - 10030 + 10104, + 10119 ], "loc": { "start": { - "line": 419, + "line": 425, "column": 7 }, "end": { - "line": 419, + "line": 425, "column": 22 } } }, "range": [ - 10010, - 10030 + 10099, + 10119 ], "loc": { "start": { - "line": 419, + "line": 425, "column": 2 }, "end": { - "line": 419, + "line": 425, "column": 22 } } @@ -17614,31 +17761,31 @@ "type": "Identifier", "name": "setSize", "range": [ - 10031, - 10038 + 10120, + 10127 ], "loc": { "start": { - "line": 419, + "line": 425, "column": 23 }, "end": { - "line": 419, + "line": 425, "column": 30 } } }, "range": [ - 10010, - 10038 + 10099, + 10127 ], "loc": { "start": { - "line": 419, + "line": 425, "column": 2 }, "end": { - "line": 419, + "line": 425, "column": 30 } } @@ -17648,16 +17795,16 @@ "type": "Identifier", "name": "width", "range": [ - 10039, - 10044 + 10128, + 10133 ], "loc": { "start": { - "line": 419, + "line": 425, "column": 31 }, "end": { - "line": 419, + "line": 425, "column": 36 } } @@ -17666,47 +17813,47 @@ "type": "Identifier", "name": "height", "range": [ - 10046, - 10052 + 10135, + 10141 ], "loc": { "start": { - "line": 419, + "line": 425, "column": 38 }, "end": { - "line": 419, + "line": 425, "column": 44 } } } ], "range": [ - 10010, - 10053 + 10099, + 10142 ], "loc": { "start": { - "line": 419, + "line": 425, "column": 2 }, "end": { - "line": 419, + "line": 425, "column": 45 } } }, "range": [ - 10010, - 10054 + 10099, + 10143 ], "loc": { "start": { - "line": 419, + "line": 425, "column": 2 }, "end": { - "line": 419, + "line": 425, "column": 46 } } @@ -17724,16 +17871,16 @@ "object": { "type": "ThisExpression", "range": [ - 10058, - 10062 + 10147, + 10151 ], "loc": { "start": { - "line": 420, + "line": 426, "column": 2 }, "end": { - "line": 420, + "line": 426, "column": 6 } } @@ -17742,31 +17889,31 @@ "type": "Identifier", "name": "renderPassMask", "range": [ - 10063, - 10077 + 10152, + 10166 ], "loc": { "start": { - "line": 420, + "line": 426, "column": 7 }, "end": { - "line": 420, + "line": 426, "column": 21 } } }, "range": [ - 10058, - 10077 + 10147, + 10166 ], "loc": { "start": { - "line": 420, + "line": 426, "column": 2 }, "end": { - "line": 420, + "line": 426, "column": 21 } } @@ -17775,31 +17922,31 @@ "type": "Identifier", "name": "setSize", "range": [ - 10078, - 10085 + 10167, + 10174 ], "loc": { "start": { - "line": 420, + "line": 426, "column": 22 }, "end": { - "line": 420, + "line": 426, "column": 29 } } }, "range": [ - 10058, - 10085 + 10147, + 10174 ], "loc": { "start": { - "line": 420, + "line": 426, "column": 2 }, "end": { - "line": 420, + "line": 426, "column": 29 } } @@ -17809,16 +17956,16 @@ "type": "Identifier", "name": "width", "range": [ - 10086, - 10091 + 10175, + 10180 ], "loc": { "start": { - "line": 420, + "line": 426, "column": 30 }, "end": { - "line": 420, + "line": 426, "column": 35 } } @@ -17827,47 +17974,47 @@ "type": "Identifier", "name": "height", "range": [ - 10093, - 10099 + 10182, + 10188 ], "loc": { "start": { - "line": 420, + "line": 426, "column": 37 }, "end": { - "line": 420, + "line": 426, "column": 43 } } } ], "range": [ - 10058, - 10100 + 10147, + 10189 ], "loc": { "start": { - "line": 420, + "line": 426, "column": 2 }, "end": { - "line": 420, + "line": 426, "column": 44 } } }, "range": [ - 10058, - 10101 + 10147, + 10190 ], "loc": { "start": { - "line": 420, + "line": 426, "column": 2 }, "end": { - "line": 420, + "line": 426, "column": 45 } } @@ -17885,16 +18032,16 @@ "object": { "type": "ThisExpression", "range": [ - 10105, - 10109 + 10194, + 10198 ], "loc": { "start": { - "line": 421, + "line": 427, "column": 2 }, "end": { - "line": 421, + "line": 427, "column": 6 } } @@ -17903,31 +18050,31 @@ "type": "Identifier", "name": "blurPass", "range": [ - 10110, - 10118 + 10199, + 10207 ], "loc": { "start": { - "line": 421, + "line": 427, "column": 7 }, "end": { - "line": 421, + "line": 427, "column": 15 } } }, "range": [ - 10105, - 10118 + 10194, + 10207 ], "loc": { "start": { - "line": 421, + "line": 427, "column": 2 }, "end": { - "line": 421, + "line": 427, "column": 15 } } @@ -17936,31 +18083,31 @@ "type": "Identifier", "name": "setSize", "range": [ - 10119, - 10126 + 10208, + 10215 ], "loc": { "start": { - "line": 421, + "line": 427, "column": 16 }, "end": { - "line": 421, + "line": 427, "column": 23 } } }, "range": [ - 10105, - 10126 + 10194, + 10215 ], "loc": { "start": { - "line": 421, + "line": 427, "column": 2 }, "end": { - "line": 421, + "line": 427, "column": 23 } } @@ -17970,16 +18117,16 @@ "type": "Identifier", "name": "width", "range": [ - 10127, - 10132 + 10216, + 10221 ], "loc": { "start": { - "line": 421, + "line": 427, "column": 24 }, "end": { - "line": 421, + "line": 427, "column": 29 } } @@ -17988,47 +18135,47 @@ "type": "Identifier", "name": "height", "range": [ - 10134, - 10140 + 10223, + 10229 ], "loc": { "start": { - "line": 421, + "line": 427, "column": 31 }, "end": { - "line": 421, + "line": 427, "column": 37 } } } ], "range": [ - 10105, - 10141 + 10194, + 10230 ], "loc": { "start": { - "line": 421, + "line": 427, "column": 2 }, "end": { - "line": 421, + "line": 427, "column": 38 } } }, "range": [ - 10105, - 10142 + 10194, + 10231 ], "loc": { "start": { - "line": 421, + "line": 427, "column": 2 }, "end": { - "line": 421, + "line": 427, "column": 39 } } @@ -18042,16 +18189,16 @@ "type": "Identifier", "name": "width", "range": [ - 10148, - 10153 + 10237, + 10242 ], "loc": { "start": { - "line": 423, + "line": 429, "column": 2 }, "end": { - "line": 423, + "line": 429, "column": 7 } } @@ -18068,16 +18215,16 @@ "object": { "type": "ThisExpression", "range": [ - 10156, - 10160 + 10245, + 10249 ], "loc": { "start": { - "line": 423, + "line": 429, "column": 10 }, "end": { - "line": 423, + "line": 429, "column": 14 } } @@ -18086,31 +18233,31 @@ "type": "Identifier", "name": "blurPass", "range": [ - 10161, - 10169 + 10250, + 10258 ], "loc": { "start": { - "line": 423, + "line": 429, "column": 15 }, "end": { - "line": 423, + "line": 429, "column": 23 } } }, "range": [ - 10156, - 10169 + 10245, + 10258 ], "loc": { "start": { - "line": 423, + "line": 429, "column": 10 }, "end": { - "line": 423, + "line": 429, "column": 23 } } @@ -18119,31 +18266,31 @@ "type": "Identifier", "name": "renderTargetX", "range": [ - 10170, - 10183 + 10259, + 10272 ], "loc": { "start": { - "line": 423, + "line": 429, "column": 24 }, "end": { - "line": 423, + "line": 429, "column": 37 } } }, "range": [ - 10156, - 10183 + 10245, + 10272 ], "loc": { "start": { - "line": 423, + "line": 429, "column": 10 }, "end": { - "line": 423, + "line": 429, "column": 37 } } @@ -18152,61 +18299,61 @@ "type": "Identifier", "name": "width", "range": [ - 10184, - 10189 + 10273, + 10278 ], "loc": { "start": { - "line": 423, + "line": 429, "column": 38 }, "end": { - "line": 423, + "line": 429, "column": 43 } } }, "range": [ - 10156, - 10189 + 10245, + 10278 ], "loc": { "start": { - "line": 423, + "line": 429, "column": 10 }, "end": { - "line": 423, + "line": 429, "column": 43 } } }, "range": [ - 10148, - 10189 + 10237, + 10278 ], "loc": { "start": { - "line": 423, + "line": 429, "column": 2 }, "end": { - "line": 423, + "line": 429, "column": 43 } } }, "range": [ - 10148, - 10190 + 10237, + 10279 ], "loc": { "start": { - "line": 423, + "line": 429, "column": 2 }, "end": { - "line": 423, + "line": 429, "column": 44 } } @@ -18220,16 +18367,16 @@ "type": "Identifier", "name": "height", "range": [ - 10194, - 10200 + 10283, + 10289 ], "loc": { "start": { - "line": 424, + "line": 430, "column": 2 }, "end": { - "line": 424, + "line": 430, "column": 8 } } @@ -18246,16 +18393,16 @@ "object": { "type": "ThisExpression", "range": [ - 10203, - 10207 + 10292, + 10296 ], "loc": { "start": { - "line": 424, + "line": 430, "column": 11 }, "end": { - "line": 424, + "line": 430, "column": 15 } } @@ -18264,31 +18411,31 @@ "type": "Identifier", "name": "blurPass", "range": [ - 10208, - 10216 + 10297, + 10305 ], "loc": { "start": { - "line": 424, + "line": 430, "column": 16 }, "end": { - "line": 424, + "line": 430, "column": 24 } } }, "range": [ - 10203, - 10216 + 10292, + 10305 ], "loc": { "start": { - "line": 424, + "line": 430, "column": 11 }, "end": { - "line": 424, + "line": 430, "column": 24 } } @@ -18297,31 +18444,31 @@ "type": "Identifier", "name": "renderTargetX", "range": [ - 10217, - 10230 + 10306, + 10319 ], "loc": { "start": { - "line": 424, + "line": 430, "column": 25 }, "end": { - "line": 424, + "line": 430, "column": 38 } } }, "range": [ - 10203, - 10230 + 10292, + 10319 ], "loc": { "start": { - "line": 424, + "line": 430, "column": 11 }, "end": { - "line": 424, + "line": 430, "column": 38 } } @@ -18330,61 +18477,61 @@ "type": "Identifier", "name": "height", "range": [ - 10231, - 10237 + 10320, + 10326 ], "loc": { "start": { - "line": 424, + "line": 430, "column": 39 }, "end": { - "line": 424, + "line": 430, "column": 45 } } }, "range": [ - 10203, - 10237 + 10292, + 10326 ], "loc": { "start": { - "line": 424, + "line": 430, "column": 11 }, "end": { - "line": 424, + "line": 430, "column": 45 } } }, "range": [ - 10194, - 10237 + 10283, + 10326 ], "loc": { "start": { - "line": 424, + "line": 430, "column": 2 }, "end": { - "line": 424, + "line": 430, "column": 45 } } }, "range": [ - 10194, - 10238 + 10283, + 10327 ], "loc": { "start": { - "line": 424, + "line": 430, "column": 2 }, "end": { - "line": 424, + "line": 430, "column": 46 } } @@ -18402,16 +18549,16 @@ "object": { "type": "ThisExpression", "range": [ - 10244, - 10248 + 10333, + 10337 ], "loc": { "start": { - "line": 426, + "line": 432, "column": 2 }, "end": { - "line": 426, + "line": 432, "column": 6 } } @@ -18420,31 +18567,31 @@ "type": "Identifier", "name": "renderTargetMask", "range": [ - 10249, - 10265 + 10338, + 10354 ], "loc": { "start": { - "line": 426, + "line": 432, "column": 7 }, "end": { - "line": 426, + "line": 432, "column": 23 } } }, "range": [ - 10244, - 10265 + 10333, + 10354 ], "loc": { "start": { - "line": 426, + "line": 432, "column": 2 }, "end": { - "line": 426, + "line": 432, "column": 23 } } @@ -18453,31 +18600,31 @@ "type": "Identifier", "name": "setSize", "range": [ - 10266, - 10273 + 10355, + 10362 ], "loc": { "start": { - "line": 426, + "line": 432, "column": 24 }, "end": { - "line": 426, + "line": 432, "column": 31 } } }, "range": [ - 10244, - 10273 + 10333, + 10362 ], "loc": { "start": { - "line": 426, + "line": 432, "column": 2 }, "end": { - "line": 426, + "line": 432, "column": 31 } } @@ -18487,16 +18634,16 @@ "type": "Identifier", "name": "width", "range": [ - 10274, - 10279 + 10363, + 10368 ], "loc": { "start": { - "line": 426, + "line": 432, "column": 32 }, "end": { - "line": 426, + "line": 432, "column": 37 } } @@ -18505,47 +18652,47 @@ "type": "Identifier", "name": "height", "range": [ - 10281, - 10287 + 10370, + 10376 ], "loc": { "start": { - "line": 426, + "line": 432, "column": 39 }, "end": { - "line": 426, + "line": 432, "column": 45 } } } ], "range": [ - 10244, - 10288 + 10333, + 10377 ], "loc": { "start": { - "line": 426, + "line": 432, "column": 2 }, "end": { - "line": 426, + "line": 432, "column": 46 } } }, "range": [ - 10244, - 10289 + 10333, + 10378 ], "loc": { "start": { - "line": 426, + "line": 432, "column": 2 }, "end": { - "line": 426, + "line": 432, "column": 47 } } @@ -18563,16 +18710,16 @@ "object": { "type": "ThisExpression", "range": [ - 10293, - 10297 + 10382, + 10386 ], "loc": { "start": { - "line": 427, + "line": 433, "column": 2 }, "end": { - "line": 427, + "line": 433, "column": 6 } } @@ -18581,31 +18728,31 @@ "type": "Identifier", "name": "renderTargetX", "range": [ - 10298, - 10311 + 10387, + 10400 ], "loc": { "start": { - "line": 427, + "line": 433, "column": 7 }, "end": { - "line": 427, + "line": 433, "column": 20 } } }, "range": [ - 10293, - 10311 + 10382, + 10400 ], "loc": { "start": { - "line": 427, + "line": 433, "column": 2 }, "end": { - "line": 427, + "line": 433, "column": 20 } } @@ -18614,31 +18761,31 @@ "type": "Identifier", "name": "setSize", "range": [ - 10312, - 10319 + 10401, + 10408 ], "loc": { "start": { - "line": 427, + "line": 433, "column": 21 }, "end": { - "line": 427, + "line": 433, "column": 28 } } }, "range": [ - 10293, - 10319 + 10382, + 10408 ], "loc": { "start": { - "line": 427, + "line": 433, "column": 2 }, "end": { - "line": 427, + "line": 433, "column": 28 } } @@ -18648,16 +18795,16 @@ "type": "Identifier", "name": "width", "range": [ - 10320, - 10325 + 10409, + 10414 ], "loc": { "start": { - "line": 427, + "line": 433, "column": 29 }, "end": { - "line": 427, + "line": 433, "column": 34 } } @@ -18666,47 +18813,47 @@ "type": "Identifier", "name": "height", "range": [ - 10327, - 10333 + 10416, + 10422 ], "loc": { "start": { - "line": 427, + "line": 433, "column": 36 }, "end": { - "line": 427, + "line": 433, "column": 42 } } } ], "range": [ - 10293, - 10334 + 10382, + 10423 ], "loc": { "start": { - "line": 427, + "line": 433, "column": 2 }, "end": { - "line": 427, + "line": 433, "column": 43 } } }, "range": [ - 10293, - 10335 + 10382, + 10424 ], "loc": { "start": { - "line": 427, + "line": 433, "column": 2 }, "end": { - "line": 427, + "line": 433, "column": 44 } } @@ -18724,16 +18871,16 @@ "object": { "type": "ThisExpression", "range": [ - 10339, - 10343 + 10428, + 10432 ], "loc": { "start": { - "line": 428, + "line": 434, "column": 2 }, "end": { - "line": 428, + "line": 434, "column": 6 } } @@ -18742,31 +18889,31 @@ "type": "Identifier", "name": "renderTargetY", "range": [ - 10344, - 10357 + 10433, + 10446 ], "loc": { "start": { - "line": 428, + "line": 434, "column": 7 }, "end": { - "line": 428, + "line": 434, "column": 20 } } }, "range": [ - 10339, - 10357 + 10428, + 10446 ], "loc": { "start": { - "line": 428, + "line": 434, "column": 2 }, "end": { - "line": 428, + "line": 434, "column": 20 } } @@ -18775,31 +18922,31 @@ "type": "Identifier", "name": "setSize", "range": [ - 10358, - 10365 + 10447, + 10454 ], "loc": { "start": { - "line": 428, + "line": 434, "column": 21 }, "end": { - "line": 428, + "line": 434, "column": 28 } } }, "range": [ - 10339, - 10365 + 10428, + 10454 ], "loc": { "start": { - "line": 428, + "line": 434, "column": 2 }, "end": { - "line": 428, + "line": 434, "column": 28 } } @@ -18809,16 +18956,16 @@ "type": "Identifier", "name": "width", "range": [ - 10366, - 10371 + 10455, + 10460 ], "loc": { "start": { - "line": 428, + "line": 434, "column": 29 }, "end": { - "line": 428, + "line": 434, "column": 34 } } @@ -18827,63 +18974,63 @@ "type": "Identifier", "name": "height", "range": [ - 10373, - 10379 + 10462, + 10468 ], "loc": { "start": { - "line": 428, + "line": 434, "column": 36 }, "end": { - "line": 428, + "line": 434, "column": 42 } } } ], "range": [ - 10339, - 10380 + 10428, + 10469 ], "loc": { "start": { - "line": 428, + "line": 434, "column": 2 }, "end": { - "line": 428, + "line": 434, "column": 43 } } }, "range": [ - 10339, - 10381 + 10428, + 10470 ], "loc": { "start": { - "line": 428, + "line": 434, "column": 2 }, "end": { - "line": 428, + "line": 434, "column": 44 } } } ], "range": [ - 10003, - 10387 + 10092, + 10476 ], "loc": { "start": { - "line": 417, + "line": 423, "column": 24 }, "end": { - "line": 430, + "line": 436, "column": 2 } } @@ -18891,16 +19038,16 @@ "generator": false, "expression": false, "range": [ - 9987, - 10387 + 10076, + 10476 ], "loc": { "start": { - "line": 417, + "line": 423, "column": 8 }, "end": { - "line": 430, + "line": 436, "column": 2 } } @@ -18908,16 +19055,16 @@ "kind": "method", "computed": false, "range": [ - 9980, - 10387 + 10069, + 10476 ], "loc": { "start": { - "line": 417, + "line": 423, "column": 1 }, "end": { - "line": 430, + "line": 436, "column": 2 } }, @@ -18926,16 +19073,16 @@ "type": "Block", "value": "*\r\n\t * Updates this pass with the renderer's size.\r\n\t *\r\n\t * @param {Number} width - The width.\r\n\t * @param {Number} height - The height.\r\n\t ", "range": [ - 9830, - 9975 + 9919, + 10064 ], "loc": { "start": { - "line": 410, + "line": 416, "column": 1 }, "end": { - "line": 415, + "line": 421, "column": 4 } } @@ -18946,7 +19093,7 @@ ], "range": [ 744, - 10392 + 10481 ], "loc": { "start": { @@ -18954,14 +19101,14 @@ "column": 38 }, "end": { - "line": 432, + "line": 438, "column": 1 } } }, "range": [ 713, - 10392 + 10481 ], "loc": { "start": { @@ -18969,7 +19116,7 @@ "column": 7 }, "end": { - "line": 432, + "line": 438, "column": 1 } }, @@ -18999,7 +19146,7 @@ "source": null, "range": [ 706, - 10392 + 10481 ], "loc": { "start": { @@ -19007,7 +19154,7 @@ "column": 0 }, "end": { - "line": 432, + "line": 438, "column": 1 } }, @@ -19036,7 +19183,7 @@ "sourceType": "module", "range": [ 0, - 10392 + 10481 ], "loc": { "start": { @@ -19044,7 +19191,7 @@ "column": 0 }, "end": { - "line": 432, + "line": 438, "column": 1 } }, @@ -19123,10 +19270,10 @@ }, { "type": "Block", - "value": "*\r\n\t\t * A scene that only contains the light source.\r\n\t\t *\r\n\t\t * @type {Scene}\r\n\t\t * @private\r\n\t\t ", + "value": "*\r\n\t\t * This pass renders to the write buffer.\r\n\t\t ", "range": [ 2088, - 2190 + 2143 ], "loc": { "start": { @@ -19134,7 +19281,25 @@ "column": 2 }, "end": { - "line": 73, + "line": 70, + "column": 5 + } + } + }, + { + "type": "Block", + "value": "*\r\n\t\t * A scene that only contains the light source.\r\n\t\t *\r\n\t\t * @type {Scene}\r\n\t\t * @private\r\n\t\t ", + "range": [ + 2177, + 2279 + ], + "loc": { + "start": { + "line": 74, + "column": 2 + }, + "end": { + "line": 79, "column": 5 } } @@ -19143,16 +19308,16 @@ "type": "Block", "value": "*\r\n\t\t * The main scene.\r\n\t\t *\r\n\t\t * @type {Scene}\r\n\t\t * @private\r\n\t\t ", "range": [ - 2232, - 2305 + 2321, + 2394 ], "loc": { "start": { - "line": 77, + "line": 83, "column": 2 }, "end": { - "line": 82, + "line": 88, "column": 5 } } @@ -19161,16 +19326,16 @@ "type": "Block", "value": "*\r\n\t\t * The main camera.\r\n\t\t *\r\n\t\t * @type {Camera}\r\n\t\t * @private\r\n\t\t ", "range": [ - 2340, - 2415 + 2429, + 2504 ], "loc": { "start": { - "line": 86, + "line": 92, "column": 2 }, "end": { - "line": 91, + "line": 97, "column": 5 } } @@ -19179,16 +19344,16 @@ "type": "Block", "value": "*\r\n\t\t * A pass that only renders the light source.\r\n\t\t *\r\n\t\t * @type {RenderPass}\r\n\t\t * @private\r\n\t\t ", "range": [ - 2452, - 2557 + 2541, + 2646 ], "loc": { "start": { - "line": 95, + "line": 101, "column": 2 }, "end": { - "line": 100, + "line": 106, "column": 5 } } @@ -19197,16 +19362,16 @@ "type": "Block", "value": "*\r\n\t\t * A pass that renders the masked scene over the light.\r\n\t\t *\r\n\t\t * @type {RenderPass}\r\n\t\t * @private\r\n\t\t ", "range": [ - 2641, - 2756 + 2730, + 2845 ], "loc": { "start": { - "line": 104, + "line": 110, "column": 2 }, "end": { - "line": 109, + "line": 115, "column": 5 } } @@ -19215,16 +19380,16 @@ "type": "Block", "value": "*\r\n\t\t * A blur pass.\r\n\t\t *\r\n\t\t * @type {BlurPass}\r\n\t\t * @private\r\n\t\t ", "range": [ - 2988, - 3061 + 3077, + 3150 ], "loc": { "start": { - "line": 118, + "line": 124, "column": 2 }, "end": { - "line": 123, + "line": 129, "column": 5 } } @@ -19233,16 +19398,16 @@ "type": "Block", "value": "*\r\n\t\t * A render target.\r\n\t\t *\r\n\t\t * @type {WebGLRenderTarget}\r\n\t\t * @private\r\n\t\t ", "range": [ - 3111, - 3197 + 3200, + 3286 ], "loc": { "start": { - "line": 127, + "line": 133, "column": 2 }, "end": { - "line": 132, + "line": 138, "column": 5 } } @@ -19251,16 +19416,16 @@ "type": "Block", "value": "*\r\n\t\t * A second render target.\r\n\t\t *\r\n\t\t * @type {WebGLRenderTarget}\r\n\t\t * @private\r\n\t\t ", "range": [ - 3324, - 3417 + 3413, + 3506 ], "loc": { "start": { - "line": 138, + "line": 144, "column": 2 }, "end": { - "line": 143, + "line": 149, "column": 5 } } @@ -19269,16 +19434,16 @@ "type": "Block", "value": "*\r\n\t\t * A render target for the masked light scene.\r\n\t\t *\r\n\t\t * @type {WebGLRenderTarget}\r\n\t\t * @private\r\n\t\t ", "range": [ - 3544, - 3657 + 3633, + 3746 ], "loc": { "start": { - "line": 149, + "line": 155, "column": 2 }, "end": { - "line": 154, + "line": 160, "column": 5 } } @@ -19287,16 +19452,16 @@ "type": "Block", "value": "*\r\n\t\t * The light source.\r\n\t\t *\r\n\t\t * @type {Object3D}\r\n\t\t ", "range": [ - 3902, - 3965 + 3991, + 4054 ], "loc": { "start": { - "line": 164, + "line": 170, "column": 2 }, "end": { - "line": 168, + "line": 174, "column": 5 } } @@ -19305,16 +19470,16 @@ "type": "Block", "value": "*\r\n\t\t * The light position in screen space.\r\n\t\t *\r\n\t\t * @type {Vector3}\r\n\t\t * @private\r\n\t\t ", "range": [ - 4008, - 4103 + 4097, + 4192 ], "loc": { "start": { - "line": 172, + "line": 178, "column": 2 }, "end": { - "line": 177, + "line": 183, "column": 5 } } @@ -19323,16 +19488,16 @@ "type": "Block", "value": "*\r\n\t\t * A god rays shader material.\r\n\t\t *\r\n\t\t * @type {GodRaysMaterial}\r\n\t\t * @private\r\n\t\t ", "range": [ - 4151, - 4246 + 4240, + 4335 ], "loc": { "start": { - "line": 181, + "line": 187, "column": 2 }, "end": { - "line": 186, + "line": 192, "column": 5 } } @@ -19341,16 +19506,16 @@ "type": "Block", "value": "*\r\n\t\t * A combine shader material.\r\n\t\t *\r\n\t\t * @type {CombineMaterial}\r\n\t\t * @private\r\n\t\t ", "range": [ - 4935, - 5029 + 5024, + 5118 ], "loc": { "start": { - "line": 199, + "line": 205, "column": 2 }, "end": { - "line": 204, + "line": 210, "column": 5 } } @@ -19359,16 +19524,16 @@ "type": "Block", "value": "*\r\n\t * The resolution scale.\r\n\t *\r\n\t * @type {Number}\r\n\t * @default 0.5\r\n\t ", "range": [ - 5194, - 5273 + 5283, + 5362 ], "loc": { "start": { - "line": 212, + "line": 218, "column": 1 }, "end": { - "line": 217, + "line": 223, "column": 4 } } @@ -19377,16 +19542,16 @@ "type": "Block", "value": "*\r\n\t * You need to call {@link EffectComposer#setSize} after changing this value.\r\n\t *\r\n\t * @type {Number}\r\n\t ", "range": [ - 5346, - 5460 + 5435, + 5549 ], "loc": { "start": { - "line": 221, + "line": 227, "column": 1 }, "end": { - "line": 225, + "line": 231, "column": 4 } } @@ -19395,16 +19560,16 @@ "type": "Block", "value": "*\r\n\t * The blur kernel size.\r\n\t *\r\n\t * @type {KernelSize}\r\n\t * @default KernelSize.LARGE\r\n\t ", "range": [ - 5540, - 5636 + 5629, + 5725 ], "loc": { "start": { - "line": 233, + "line": 239, "column": 1 }, "end": { - "line": 238, + "line": 244, "column": 4 } } @@ -19413,16 +19578,16 @@ "type": "Block", "value": "*\r\n\t * @type {KernelSize}\r\n\t ", "range": [ - 5699, - 5732 + 5788, + 5821 ], "loc": { "start": { - "line": 242, + "line": 248, "column": 1 }, "end": { - "line": 244, + "line": 250, "column": 4 } } @@ -19431,16 +19596,16 @@ "type": "Block", "value": "*\r\n\t * The overall intensity of the effect.\r\n\t *\r\n\t * @type {Number}\r\n\t * @default 1.0\r\n\t ", "range": [ - 5802, - 5896 + 5891, + 5985 ], "loc": { "start": { - "line": 252, + "line": 258, "column": 1 }, "end": { - "line": 257, + "line": 263, "column": 4 } } @@ -19449,16 +19614,16 @@ "type": "Block", "value": "*\r\n\t * @type {Number}\r\n\t ", "range": [ - 5978, - 6007 + 6067, + 6096 ], "loc": { "start": { - "line": 261, + "line": 267, "column": 1 }, "end": { - "line": 263, + "line": 269, "column": 4 } } @@ -19467,16 +19632,16 @@ "type": "Block", "value": "*\r\n\t * The number of samples per pixel.\r\n\t *\r\n\t * @type {Number}\r\n\t * @default 60\r\n\t ", "range": [ - 6137, - 6226 + 6226, + 6315 ], "loc": { "start": { - "line": 275, + "line": 281, "column": 1 }, "end": { - "line": 280, + "line": 286, "column": 4 } } @@ -19485,16 +19650,16 @@ "type": "Block", "value": "*\r\n\t * This value must be carefully chosen. A higher value directly increases the\r\n\t * GPU load.\r\n\t *\r\n\t * @type {Number}\r\n\t ", "range": [ - 6323, - 6452 + 6412, + 6541 ], "loc": { "start": { - "line": 284, + "line": 290, "column": 1 }, "end": { - "line": 289, + "line": 295, "column": 4 } } @@ -19503,16 +19668,16 @@ "type": "Block", "value": "*\r\n\t * Renders the scene.\r\n\t *\r\n\t * The god rays pass has four phases:\r\n\t *\r\n\t * Mask Phase:\r\n\t * First, the light source is rendered. Then the scene is rendered into the\r\n\t * same buffer using a mask override material with depth test enabled.\r\n\t *\r\n\t * Preliminary Blur Phase:\r\n\t * The masked scene is blurred.\r\n\t *\r\n\t * God Rays Phase:\r\n\t * The blurred scene is blurred again, but this time along radial lines\r\n\t * towards the light source.\r\n\t *\r\n\t * Composite Phase:\r\n\t * The final result is combined with the read buffer.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {WebGLRenderTarget} readBuffer - The read buffer.\r\n\t * @param {WebGLRenderTarget} writeBuffer - The write buffer.\r\n\t ", "range": [ - 6728, - 7451 + 6817, + 7540 ], "loc": { "start": { - "line": 305, + "line": 311, "column": 1 }, "end": { - "line": 327, + "line": 333, "column": 4 } } @@ -19521,16 +19686,16 @@ "type": "Line", "value": " Compute the screen light position and translate it to [0, 1].", "range": [ - 7993, - 8057 + 8082, + 8146 ], "loc": { "start": { - "line": 348, + "line": 354, "column": 2 }, "end": { - "line": 348, + "line": 354, "column": 66 } } @@ -19539,16 +19704,16 @@ "type": "Line", "value": " Render the masked scene.", "range": [ - 8276, - 8303 + 8365, + 8392 ], "loc": { "start": { - "line": 353, + "line": 359, "column": 2 }, "end": { - "line": 353, + "line": 359, "column": 29 } } @@ -19557,16 +19722,16 @@ "type": "Line", "value": " Convolution phase.", "range": [ - 8674, - 8695 + 8763, + 8784 ], "loc": { "start": { - "line": 370, + "line": 376, "column": 2 }, "end": { - "line": 370, + "line": 376, "column": 23 } } @@ -19575,16 +19740,16 @@ "type": "Line", "value": " God rays pass.", "range": [ - 8769, - 8786 + 8858, + 8875 ], "loc": { "start": { - "line": 373, + "line": 379, "column": 2 }, "end": { - "line": 373, + "line": 379, "column": 19 } } @@ -19593,16 +19758,16 @@ "type": "Line", "value": " Final pass - composite god rays onto colours.", "range": [ - 8946, - 8994 + 9035, + 9083 ], "loc": { "start": { - "line": 378, + "line": 384, "column": 2 }, "end": { - "line": 378, + "line": 384, "column": 50 } } @@ -19611,16 +19776,16 @@ "type": "Block", "value": "*\r\n\t * Adjusts the format of the render targets.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {Boolean} alpha - Whether the renderer uses the alpha channel or not.\r\n\t ", "range": [ - 9253, - 9449 + 9342, + 9538 ], "loc": { "start": { - "line": 387, + "line": 393, "column": 1 }, "end": { - "line": 392, + "line": 398, "column": 4 } } @@ -19629,16 +19794,16 @@ "type": "Block", "value": "*\r\n\t * Updates this pass with the renderer's size.\r\n\t *\r\n\t * @param {Number} width - The width.\r\n\t * @param {Number} height - The height.\r\n\t ", "range": [ - 9830, - 9975 + 9919, + 10064 ], "loc": { "start": { - "line": 410, + "line": 416, "column": 1 }, "end": { - "line": 415, + "line": 421, "column": 4 } } diff --git a/docs/class/src/passes/bloom.js~BloomPass.html b/docs/class/src/passes/bloom.js~BloomPass.html index 4d471d901..ba85ec2ca 100644 --- a/docs/class/src/passes/bloom.js~BloomPass.html +++ b/docs/class/src/passes/bloom.js~BloomPass.html @@ -335,6 +335,32 @@

BloomPass

+ + + + + public + + + + + + +
+

+ needsSwap: boolean +

+
+
+ + +

This pass renders to the write buffer.

+
+
+ + + + @@ -894,7 +920,7 @@

- source + source

@@ -935,7 +961,7 @@

- source + source

@@ -975,7 +1001,7 @@

- source + source

@@ -1016,7 +1042,7 @@

- source + source

@@ -1056,7 +1082,7 @@

- source + source

@@ -1097,7 +1123,7 @@

- source + source

@@ -1166,6 +1192,47 @@

+ +
+

+ public + + + + + needsSwap: boolean + + + + source + +

+ + + + +

This pass renders to the write buffer.

+
+ +

Override:

Pass#needsSwap
+ +
+
+ + + + + + + + + + + + + + +

@@ -1178,7 +1245,7 @@

- source + source

@@ -1219,7 +1286,7 @@

- source + source

@@ -1263,7 +1330,7 @@

- source + source

@@ -1328,7 +1395,7 @@

- source + source

@@ -1402,7 +1469,7 @@

- source + source

diff --git a/docs/class/src/passes/glitch.js~GlitchPass.html b/docs/class/src/passes/glitch.js~GlitchPass.html index 35a4cf07d..c4d162d32 100644 --- a/docs/class/src/passes/glitch.js~GlitchPass.html +++ b/docs/class/src/passes/glitch.js~GlitchPass.html @@ -310,7 +310,7 @@

GlitchPass

-

Destroys the current perturbation map and creates a new one.

+

Destroys the current perturbation map and replaces it with a new one.

@@ -955,7 +955,7 @@

-

Destroys the current perturbation map and creates a new one.

+

Destroys the current perturbation map and replaces it with a new one.

diff --git a/docs/class/src/passes/god-rays.js~GodRaysPass.html b/docs/class/src/passes/god-rays.js~GodRaysPass.html index 03dfeaadd..5fbff5fa6 100644 --- a/docs/class/src/passes/god-rays.js~GodRaysPass.html +++ b/docs/class/src/passes/god-rays.js~GodRaysPass.html @@ -160,21 +160,20 @@

GodRaysPass

public - get + set
-

The overall intensity of the effect.

-
+
@@ -186,20 +185,21 @@

GodRaysPass

public - set + get
- +

The overall intensity of the effect.

+
@@ -314,20 +314,20 @@

GodRaysPass

public - get +
-

The resolution scale.

+

This pass renders to the write buffer.

@@ -360,6 +360,32 @@

GodRaysPass

+ + + + + public + + get + + + + + +
+ + +

The resolution scale.

+
+
+ + + + @@ -970,25 +996,24 @@

Params:

Public Members

-

+

public - get + set intensity: Number - source + source

-

The overall intensity of the effect.

-
+ @@ -1011,10 +1036,10 @@

-

+

public - set + get intensity: Number @@ -1028,7 +1053,8 @@

- +

The overall intensity of the effect.

+
@@ -1061,7 +1087,7 @@

- source + source

@@ -1102,7 +1128,7 @@

- source + source

@@ -1142,7 +1168,7 @@

- source + source

@@ -1214,27 +1240,27 @@

-

+

public - get - resolutionScale: Number + + needsSwap: boolean - source + source

-

The resolution scale.

+

This pass renders to the write buffer.

- +
@@ -1265,7 +1291,7 @@

- source + source

@@ -1294,6 +1320,47 @@

+

+
+

+ public + + get + + + resolutionScale: Number + + + + source + +

+ + + + +

The resolution scale.

+
+ + + +
+
+ + + + + + + + + + + + + + +

@@ -1306,7 +1373,7 @@

- source + source

@@ -1347,7 +1414,7 @@

- source + source

@@ -1392,7 +1459,7 @@

- source + source

@@ -1457,7 +1524,7 @@

- source + source

@@ -1540,7 +1607,7 @@

- source + source

diff --git a/docs/coverage.json b/docs/coverage.json index 23a6e0bd6..23ac2fe9b 100644 --- a/docs/coverage.json +++ b/docs/coverage.json @@ -1,7 +1,7 @@ { "coverage": "100%", - "expectCount": 235, - "actualCount": 235, + "expectCount": 237, + "actualCount": 237, "files": { "src/materials/adaptive-luminosity.js": { "expectCount": 2, @@ -9,8 +9,8 @@ "undocumentLines": [] }, "src/passes/bloom.js": { - "expectCount": 14, - "actualCount": 14, + "expectCount": 15, + "actualCount": 15, "undocumentLines": [] }, "src/passes/blur.js": { @@ -114,8 +114,8 @@ "undocumentLines": [] }, "src/passes/god-rays.js": { - "expectCount": 15, - "actualCount": 15, + "expectCount": 16, + "actualCount": 16, "undocumentLines": [] }, "src/materials/luminosity.js": { diff --git a/docs/dump.json b/docs/dump.json index 87ed96b4a..6dcd68952 100644 --- a/docs/dump.json +++ b/docs/dump.json @@ -2441,7 +2441,7 @@ "access": null, "description": null, "lineNumber": 1, - "content": "import { RGBFormat } from \"three\";\r\nimport { CombineMaterial, LuminosityMaterial } from \"../materials\";\r\nimport { BlurPass } from \"./blur.js\";\r\nimport { Pass } from \"./pass.js\";\r\n\r\n/**\r\n * A bloom pass.\r\n *\r\n * This pass renders a scene with superimposed blur by utilising the fast Kawase\r\n * convolution approach.\r\n */\r\n\r\nexport class BloomPass extends Pass {\r\n\r\n\t/**\r\n\t * Constructs a new bloom pass.\r\n\t *\r\n\t * @param {Object} [options] - The options.\r\n\t * @param {Number} [options.resolutionScale=0.5] - The render texture resolution scale, relative to the screen render size.\r\n\t * @param {Number} [options.kernelSize=KernelSize.LARGE] - The blur kernel size.\r\n\t * @param {Number} [options.intensity=1.0] - The strength of the bloom effect.\r\n\t * @param {Number} [options.distinction=1.0] - The luminance distinction factor. Raise this value to bring out the brighter elements in the scene.\r\n\t * @param {Number} [options.screenMode=true] - Whether the screen blend mode should be used for combining the bloom texture with the scene colors.\r\n\t */\r\n\r\n\tconstructor(options = {}) {\r\n\r\n\t\tsuper();\r\n\r\n\t\t/**\r\n\t\t * The name of this pass.\r\n\t\t */\r\n\r\n\t\tthis.name = \"BloomPass\";\r\n\r\n\t\t/**\r\n\t\t * A blur pass.\r\n\t\t *\r\n\t\t * @type {BlurPass}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.blurPass = new BlurPass(options);\r\n\r\n\t\t/**\r\n\t\t * A render target.\r\n\t\t *\r\n\t\t * @type {WebGLRenderTarget}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.renderTargetX = this.blurPass.renderTargetX.clone();\r\n\r\n\t\tthis.renderTargetX.texture.name = \"Bloom.TargetX\";\r\n\r\n\t\t/**\r\n\t\t * A second render target.\r\n\t\t *\r\n\t\t * @type {WebGLRenderTarget}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.renderTargetY = this.blurPass.renderTargetY.clone();\r\n\r\n\t\tthis.renderTargetY.texture.name = \"Bloom.TargetY\";\r\n\r\n\t\t/**\r\n\t\t * A combine shader material.\r\n\t\t *\r\n\t\t * @type {CombineMaterial}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.combineMaterial = new CombineMaterial((options.screenMode !== undefined) ? options.screenMode : true);\r\n\r\n\t\tthis.intensity = options.intensity;\r\n\r\n\t\t/**\r\n\t\t * A luminosity shader material.\r\n\t\t *\r\n\t\t * @type {LuminosityMaterial}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.luminosityMaterial = new LuminosityMaterial(true);\r\n\r\n\t\tthis.distinction = options.distinction;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * The resolution scale.\r\n\t *\r\n\t * @type {Number}\r\n\t * @default 0.5\r\n\t */\r\n\r\n\tget resolutionScale() { return this.blurPass.resolutionScale; }\r\n\r\n\t/**\r\n\t * You need to call {@link EffectComposer#setSize} after changing this value.\r\n\t *\r\n\t * @type {Number}\r\n\t */\r\n\r\n\tset resolutionScale(x) {\r\n\r\n\t\tthis.blurPass.resolutionScale = x;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * The blur kernel size.\r\n\t *\r\n\t * @type {KernelSize}\r\n\t * @default KernelSize.LARGE\r\n\t */\r\n\r\n\tget kernelSize() { return this.blurPass.kernelSize; }\r\n\r\n\t/**\r\n\t * @type {KernelSize}\r\n\t */\r\n\r\n\tset kernelSize(x) {\r\n\r\n\t\tthis.blurPass.kernelSize = x;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * The overall intensity of the effect.\r\n\t *\r\n\t * @type {Number}\r\n\t * @default 1.0\r\n\t */\r\n\r\n\tget intensity() { return this.combineMaterial.uniforms.opacity2.value; }\r\n\r\n\t/**\r\n\t * @type {Number}\r\n\t */\r\n\r\n\tset intensity(x) {\r\n\r\n\t\tif(typeof x === \"number\") {\r\n\r\n\t\t\tthis.combineMaterial.uniforms.opacity2.value = x;\r\n\r\n\t\t}\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * The luminance distinction factor.\r\n\t *\r\n\t * @type {Number}\r\n\t * @default 1.0\r\n\t */\r\n\r\n\tget distinction() { return this.luminosityMaterial.uniforms.distinction.value; }\r\n\r\n\t/**\r\n\t * @type {Number}\r\n\t */\r\n\r\n\tset distinction(x) {\r\n\r\n\t\tif(typeof x === \"number\") {\r\n\r\n\t\t\tthis.luminosityMaterial.uniforms.distinction.value = x;\r\n\r\n\t\t}\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Renders the effect.\r\n\t *\r\n\t * Extracts a luminance map from the read buffer, blurs it and combines it\r\n\t * with the read buffer.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {WebGLRenderTarget} readBuffer - The read buffer.\r\n\t * @param {WebGLRenderTarget} writeBuffer - The write buffer.\r\n\t */\r\n\r\n\trender(renderer, readBuffer, writeBuffer) {\r\n\r\n\t\tconst quad = this.quad;\r\n\t\tconst scene = this.scene;\r\n\t\tconst camera = this.camera;\r\n\t\tconst blurPass = this.blurPass;\r\n\r\n\t\tconst luminosityMaterial = this.luminosityMaterial;\r\n\t\tconst combineMaterial = this.combineMaterial;\r\n\r\n\t\tconst renderTargetX = this.renderTargetX;\r\n\t\tconst renderTargetY = this.renderTargetY;\r\n\r\n\t\t// Luminance filter.\r\n\t\tquad.material = luminosityMaterial;\r\n\t\tluminosityMaterial.uniforms.tDiffuse.value = readBuffer.texture;\r\n\t\trenderer.render(scene, camera, renderTargetX);\r\n\r\n\t\t// Convolution phase.\r\n\t\tblurPass.render(renderer, renderTargetX, renderTargetY);\r\n\r\n\t\t// Render the original scene with superimposed blur.\r\n\t\tquad.material = combineMaterial;\r\n\t\tcombineMaterial.uniforms.texture1.value = readBuffer.texture;\r\n\t\tcombineMaterial.uniforms.texture2.value = renderTargetY.texture;\r\n\r\n\t\trenderer.render(scene, camera, this.renderToScreen ? null : writeBuffer);\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Adjusts the format of the render targets.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {Boolean} alpha - Whether the renderer uses the alpha channel or not.\r\n\t */\r\n\r\n\tinitialise(renderer, alpha) {\r\n\r\n\t\tthis.blurPass.initialise(renderer, alpha);\r\n\r\n\t\tif(!alpha) {\r\n\r\n\t\t\tthis.renderTargetX.texture.format = RGBFormat;\r\n\t\t\tthis.renderTargetY.texture.format = RGBFormat;\r\n\r\n\t\t}\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Updates this pass with the renderer's size.\r\n\t *\r\n\t * @param {Number} width - The width.\r\n\t * @param {Number} height - The height.\r\n\t */\r\n\r\n\tsetSize(width, height) {\r\n\r\n\t\tthis.blurPass.setSize(width, height);\r\n\r\n\t\twidth = this.blurPass.renderTargetX.width;\r\n\t\theight = this.blurPass.renderTargetX.height;\r\n\r\n\t\tthis.renderTargetX.setSize(width, height);\r\n\t\tthis.renderTargetY.setSize(width, height);\r\n\r\n\t}\r\n\r\n}\r\n" + "content": "import { RGBFormat } from \"three\";\r\nimport { CombineMaterial, LuminosityMaterial } from \"../materials\";\r\nimport { BlurPass } from \"./blur.js\";\r\nimport { Pass } from \"./pass.js\";\r\n\r\n/**\r\n * A bloom pass.\r\n *\r\n * This pass renders a scene with superimposed blur by utilising the fast Kawase\r\n * convolution approach.\r\n */\r\n\r\nexport class BloomPass extends Pass {\r\n\r\n\t/**\r\n\t * Constructs a new bloom pass.\r\n\t *\r\n\t * @param {Object} [options] - The options.\r\n\t * @param {Number} [options.resolutionScale=0.5] - The render texture resolution scale, relative to the screen render size.\r\n\t * @param {Number} [options.kernelSize=KernelSize.LARGE] - The blur kernel size.\r\n\t * @param {Number} [options.intensity=1.0] - The strength of the bloom effect.\r\n\t * @param {Number} [options.distinction=1.0] - The luminance distinction factor. Raise this value to bring out the brighter elements in the scene.\r\n\t * @param {Number} [options.screenMode=true] - Whether the screen blend mode should be used for combining the bloom texture with the scene colors.\r\n\t */\r\n\r\n\tconstructor(options = {}) {\r\n\r\n\t\tsuper();\r\n\r\n\t\t/**\r\n\t\t * The name of this pass.\r\n\t\t */\r\n\r\n\t\tthis.name = \"BloomPass\";\r\n\r\n\t\t/**\r\n\t\t * This pass renders to the write buffer.\r\n\t\t */\r\n\r\n\t\tthis.needsSwap = true;\r\n\r\n\t\t/**\r\n\t\t * A blur pass.\r\n\t\t *\r\n\t\t * @type {BlurPass}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.blurPass = new BlurPass(options);\r\n\r\n\t\t/**\r\n\t\t * A render target.\r\n\t\t *\r\n\t\t * @type {WebGLRenderTarget}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.renderTargetX = this.blurPass.renderTargetX.clone();\r\n\r\n\t\tthis.renderTargetX.texture.name = \"Bloom.TargetX\";\r\n\r\n\t\t/**\r\n\t\t * A second render target.\r\n\t\t *\r\n\t\t * @type {WebGLRenderTarget}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.renderTargetY = this.blurPass.renderTargetY.clone();\r\n\r\n\t\tthis.renderTargetY.texture.name = \"Bloom.TargetY\";\r\n\r\n\t\t/**\r\n\t\t * A combine shader material.\r\n\t\t *\r\n\t\t * @type {CombineMaterial}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.combineMaterial = new CombineMaterial((options.screenMode !== undefined) ? options.screenMode : true);\r\n\r\n\t\tthis.intensity = options.intensity;\r\n\r\n\t\t/**\r\n\t\t * A luminosity shader material.\r\n\t\t *\r\n\t\t * @type {LuminosityMaterial}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.luminosityMaterial = new LuminosityMaterial(true);\r\n\r\n\t\tthis.distinction = options.distinction;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * The resolution scale.\r\n\t *\r\n\t * @type {Number}\r\n\t * @default 0.5\r\n\t */\r\n\r\n\tget resolutionScale() { return this.blurPass.resolutionScale; }\r\n\r\n\t/**\r\n\t * You need to call {@link EffectComposer#setSize} after changing this value.\r\n\t *\r\n\t * @type {Number}\r\n\t */\r\n\r\n\tset resolutionScale(x) {\r\n\r\n\t\tthis.blurPass.resolutionScale = x;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * The blur kernel size.\r\n\t *\r\n\t * @type {KernelSize}\r\n\t * @default KernelSize.LARGE\r\n\t */\r\n\r\n\tget kernelSize() { return this.blurPass.kernelSize; }\r\n\r\n\t/**\r\n\t * @type {KernelSize}\r\n\t */\r\n\r\n\tset kernelSize(x) {\r\n\r\n\t\tthis.blurPass.kernelSize = x;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * The overall intensity of the effect.\r\n\t *\r\n\t * @type {Number}\r\n\t * @default 1.0\r\n\t */\r\n\r\n\tget intensity() { return this.combineMaterial.uniforms.opacity2.value; }\r\n\r\n\t/**\r\n\t * @type {Number}\r\n\t */\r\n\r\n\tset intensity(x) {\r\n\r\n\t\tif(typeof x === \"number\") {\r\n\r\n\t\t\tthis.combineMaterial.uniforms.opacity2.value = x;\r\n\r\n\t\t}\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * The luminance distinction factor.\r\n\t *\r\n\t * @type {Number}\r\n\t * @default 1.0\r\n\t */\r\n\r\n\tget distinction() { return this.luminosityMaterial.uniforms.distinction.value; }\r\n\r\n\t/**\r\n\t * @type {Number}\r\n\t */\r\n\r\n\tset distinction(x) {\r\n\r\n\t\tif(typeof x === \"number\") {\r\n\r\n\t\t\tthis.luminosityMaterial.uniforms.distinction.value = x;\r\n\r\n\t\t}\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Renders the effect.\r\n\t *\r\n\t * Extracts a luminance map from the read buffer, blurs it and combines it\r\n\t * with the read buffer.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {WebGLRenderTarget} readBuffer - The read buffer.\r\n\t * @param {WebGLRenderTarget} writeBuffer - The write buffer.\r\n\t */\r\n\r\n\trender(renderer, readBuffer, writeBuffer) {\r\n\r\n\t\tconst quad = this.quad;\r\n\t\tconst scene = this.scene;\r\n\t\tconst camera = this.camera;\r\n\t\tconst blurPass = this.blurPass;\r\n\r\n\t\tconst luminosityMaterial = this.luminosityMaterial;\r\n\t\tconst combineMaterial = this.combineMaterial;\r\n\r\n\t\tconst renderTargetX = this.renderTargetX;\r\n\t\tconst renderTargetY = this.renderTargetY;\r\n\r\n\t\t// Luminance filter.\r\n\t\tquad.material = luminosityMaterial;\r\n\t\tluminosityMaterial.uniforms.tDiffuse.value = readBuffer.texture;\r\n\t\trenderer.render(scene, camera, renderTargetX);\r\n\r\n\t\t// Convolution phase.\r\n\t\tblurPass.render(renderer, renderTargetX, renderTargetY);\r\n\r\n\t\t// Render the original scene with superimposed blur.\r\n\t\tquad.material = combineMaterial;\r\n\t\tcombineMaterial.uniforms.texture1.value = readBuffer.texture;\r\n\t\tcombineMaterial.uniforms.texture2.value = renderTargetY.texture;\r\n\r\n\t\trenderer.render(scene, camera, this.renderToScreen ? null : writeBuffer);\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Adjusts the format of the render targets.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {Boolean} alpha - Whether the renderer uses the alpha channel or not.\r\n\t */\r\n\r\n\tinitialise(renderer, alpha) {\r\n\r\n\t\tthis.blurPass.initialise(renderer, alpha);\r\n\r\n\t\tif(!alpha) {\r\n\r\n\t\t\tthis.renderTargetX.texture.format = RGBFormat;\r\n\t\t\tthis.renderTargetY.texture.format = RGBFormat;\r\n\r\n\t\t}\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Updates this pass with the renderer's size.\r\n\t *\r\n\t * @param {Number} width - The width.\r\n\t * @param {Number} height - The height.\r\n\t */\r\n\r\n\tsetSize(width, height) {\r\n\r\n\t\tthis.blurPass.setSize(width, height);\r\n\r\n\t\twidth = this.blurPass.renderTargetX.width;\r\n\t\theight = this.blurPass.renderTargetX.height;\r\n\r\n\t\tthis.renderTargetX.setSize(width, height);\r\n\t\tthis.renderTargetY.setSize(width, height);\r\n\r\n\t}\r\n\r\n}\r\n" }, { "__docId__": 100, @@ -2569,12 +2569,29 @@ "kind": "member", "static": false, "variation": null, + "name": "needsSwap", + "memberof": "src/passes/bloom.js~BloomPass", + "longname": "src/passes/bloom.js~BloomPass#needsSwap", + "access": null, + "description": "This pass renders to the write buffer.", + "lineNumber": 40, + "type": { + "types": [ + "boolean" + ] + } + }, + { + "__docId__": 104, + "kind": "member", + "static": false, + "variation": null, "name": "blurPass", "memberof": "src/passes/bloom.js~BloomPass", "longname": "src/passes/bloom.js~BloomPass#blurPass", "access": "private", "description": "A blur pass.", - "lineNumber": 43, + "lineNumber": 49, "type": { "nullable": null, "types": [ @@ -2585,7 +2602,7 @@ } }, { - "__docId__": 104, + "__docId__": 105, "kind": "member", "static": false, "variation": null, @@ -2594,7 +2611,7 @@ "longname": "src/passes/bloom.js~BloomPass#renderTargetX", "access": "private", "description": "A render target.", - "lineNumber": 52, + "lineNumber": 58, "type": { "nullable": null, "types": [ @@ -2605,7 +2622,7 @@ } }, { - "__docId__": 105, + "__docId__": 106, "kind": "member", "static": false, "variation": null, @@ -2614,7 +2631,7 @@ "longname": "src/passes/bloom.js~BloomPass#renderTargetY", "access": "private", "description": "A second render target.", - "lineNumber": 63, + "lineNumber": 69, "type": { "nullable": null, "types": [ @@ -2625,7 +2642,7 @@ } }, { - "__docId__": 106, + "__docId__": 107, "kind": "member", "static": false, "variation": null, @@ -2634,7 +2651,7 @@ "longname": "src/passes/bloom.js~BloomPass#combineMaterial", "access": "private", "description": "A combine shader material.", - "lineNumber": 74, + "lineNumber": 80, "type": { "nullable": null, "types": [ @@ -2645,7 +2662,7 @@ } }, { - "__docId__": 107, + "__docId__": 108, "kind": "member", "static": false, "variation": null, @@ -2654,7 +2671,7 @@ "longname": "src/passes/bloom.js~BloomPass#intensity", "access": null, "description": null, - "lineNumber": 76, + "lineNumber": 82, "undocument": true, "type": { "types": [ @@ -2663,7 +2680,7 @@ } }, { - "__docId__": 108, + "__docId__": 109, "kind": "member", "static": false, "variation": null, @@ -2672,7 +2689,7 @@ "longname": "src/passes/bloom.js~BloomPass#luminosityMaterial", "access": "private", "description": "A luminosity shader material.", - "lineNumber": 85, + "lineNumber": 91, "type": { "nullable": null, "types": [ @@ -2683,7 +2700,7 @@ } }, { - "__docId__": 109, + "__docId__": 110, "kind": "member", "static": false, "variation": null, @@ -2692,7 +2709,7 @@ "longname": "src/passes/bloom.js~BloomPass#distinction", "access": null, "description": null, - "lineNumber": 87, + "lineNumber": 93, "undocument": true, "type": { "types": [ @@ -2701,7 +2718,7 @@ } }, { - "__docId__": 110, + "__docId__": 111, "kind": "get", "static": false, "variation": null, @@ -2710,7 +2727,7 @@ "longname": "src/passes/bloom.js~BloomPass#resolutionScale", "access": null, "description": "The resolution scale.", - "lineNumber": 98, + "lineNumber": 104, "unknown": [ { "tagName": "@default", @@ -2728,7 +2745,7 @@ "generator": false }, { - "__docId__": 111, + "__docId__": 112, "kind": "set", "static": false, "variation": null, @@ -2737,7 +2754,7 @@ "longname": "src/passes/bloom.js~BloomPass#resolutionScale", "access": null, "description": "You need to call {@link EffectComposer#setSize} after changing this value.", - "lineNumber": 106, + "lineNumber": 112, "type": { "nullable": null, "types": [ @@ -2749,7 +2766,7 @@ "generator": false }, { - "__docId__": 112, + "__docId__": 113, "kind": "get", "static": false, "variation": null, @@ -2758,7 +2775,7 @@ "longname": "src/passes/bloom.js~BloomPass#kernelSize", "access": null, "description": "The blur kernel size.", - "lineNumber": 119, + "lineNumber": 125, "unknown": [ { "tagName": "@default", @@ -2776,7 +2793,7 @@ "generator": false }, { - "__docId__": 113, + "__docId__": 114, "kind": "set", "static": false, "variation": null, @@ -2785,7 +2802,7 @@ "longname": "src/passes/bloom.js~BloomPass#kernelSize", "access": null, "description": "", - "lineNumber": 125, + "lineNumber": 131, "type": { "nullable": null, "types": [ @@ -2797,7 +2814,7 @@ "generator": false }, { - "__docId__": 114, + "__docId__": 115, "kind": "get", "static": false, "variation": null, @@ -2806,7 +2823,7 @@ "longname": "src/passes/bloom.js~BloomPass#intensity", "access": null, "description": "The overall intensity of the effect.", - "lineNumber": 138, + "lineNumber": 144, "unknown": [ { "tagName": "@default", @@ -2824,7 +2841,7 @@ "generator": false }, { - "__docId__": 115, + "__docId__": 116, "kind": "set", "static": false, "variation": null, @@ -2833,7 +2850,7 @@ "longname": "src/passes/bloom.js~BloomPass#intensity", "access": null, "description": "", - "lineNumber": 144, + "lineNumber": 150, "type": { "nullable": null, "types": [ @@ -2845,7 +2862,7 @@ "generator": false }, { - "__docId__": 116, + "__docId__": 117, "kind": "get", "static": false, "variation": null, @@ -2854,7 +2871,7 @@ "longname": "src/passes/bloom.js~BloomPass#distinction", "access": null, "description": "The luminance distinction factor.", - "lineNumber": 161, + "lineNumber": 167, "unknown": [ { "tagName": "@default", @@ -2872,7 +2889,7 @@ "generator": false }, { - "__docId__": 117, + "__docId__": 118, "kind": "set", "static": false, "variation": null, @@ -2881,7 +2898,7 @@ "longname": "src/passes/bloom.js~BloomPass#distinction", "access": null, "description": "", - "lineNumber": 167, + "lineNumber": 173, "type": { "nullable": null, "types": [ @@ -2893,7 +2910,7 @@ "generator": false }, { - "__docId__": 118, + "__docId__": 119, "kind": "method", "static": false, "variation": null, @@ -2902,7 +2919,7 @@ "longname": "src/passes/bloom.js~BloomPass#render", "access": null, "description": "Renders the effect.\n\nExtracts a luminance map from the read buffer, blurs it and combines it\nwith the read buffer.", - "lineNumber": 188, + "lineNumber": 194, "params": [ { "nullable": null, @@ -2938,7 +2955,7 @@ "generator": false }, { - "__docId__": 119, + "__docId__": 120, "kind": "method", "static": false, "variation": null, @@ -2947,7 +2964,7 @@ "longname": "src/passes/bloom.js~BloomPass#initialise", "access": null, "description": "Adjusts the format of the render targets.", - "lineNumber": 225, + "lineNumber": 231, "params": [ { "nullable": null, @@ -2973,7 +2990,7 @@ "generator": false }, { - "__docId__": 120, + "__docId__": 121, "kind": "method", "static": false, "variation": null, @@ -2982,7 +2999,7 @@ "longname": "src/passes/bloom.js~BloomPass#setSize", "access": null, "description": "Updates this pass with the renderer's size.", - "lineNumber": 245, + "lineNumber": 251, "params": [ { "nullable": null, @@ -3008,7 +3025,7 @@ "generator": false }, { - "__docId__": 121, + "__docId__": 122, "kind": "file", "static": true, "variation": null, @@ -3021,7 +3038,7 @@ "content": "import { LinearFilter, RGBFormat, WebGLRenderTarget } from \"three\";\r\nimport { ConvolutionMaterial } from \"../materials\";\r\nimport { Pass } from \"./pass.js\";\r\n\r\n/**\r\n * A blur pass.\r\n */\r\n\r\nexport class BlurPass extends Pass {\r\n\r\n\t/**\r\n\t * Constructs a new blur pass.\r\n\t *\r\n\t * @param {Object} [options] - The options.\r\n\t * @param {Number} [options.resolutionScale=0.5] - The render texture resolution scale, relative to the screen render size.\r\n\t * @param {Number} [options.kernelSize=KernelSize.LARGE] - The blur kernel size.\r\n\t */\r\n\r\n\tconstructor(options = {}) {\r\n\r\n\t\tsuper();\r\n\r\n\t\t/**\r\n\t\t * The name of this pass.\r\n\t\t */\r\n\r\n\t\tthis.name = \"BlurPass\";\r\n\r\n\t\t/**\r\n\t\t * This pass renders to the write buffer.\r\n\t\t */\r\n\r\n\t\tthis.needsSwap = true;\r\n\r\n\t\t/**\r\n\t\t * A render target.\r\n\t\t *\r\n\t\t * @type {WebGLRenderTarget}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.renderTargetX = new WebGLRenderTarget(1, 1, {\r\n\t\t\tminFilter: LinearFilter,\r\n\t\t\tmagFilter: LinearFilter,\r\n\t\t\tstencilBuffer: false,\r\n\t\t\tdepthBuffer: false\r\n\t\t});\r\n\r\n\t\tthis.renderTargetX.texture.name = \"Blur.TargetX\";\r\n\t\tthis.renderTargetX.texture.generateMipmaps = false;\r\n\r\n\t\t/**\r\n\t\t * A second render target.\r\n\t\t *\r\n\t\t * @type {WebGLRenderTarget}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.renderTargetY = this.renderTargetX.clone();\r\n\r\n\t\tthis.renderTargetY.texture.name = \"Blur.TargetY\";\r\n\r\n\t\t/**\r\n\t\t * The resolution scale.\r\n\t\t *\r\n\t\t * You need to call {@link EffectComposer#setSize} after changing this value.\r\n\t\t *\r\n\t\t * @type {Number}\r\n\t\t * @default 0.5\r\n\t\t */\r\n\r\n\t\tthis.resolutionScale = (options.resolutionScale !== undefined) ? options.resolutionScale : 0.5;\r\n\r\n\t\t/**\r\n\t\t * A convolution shader material.\r\n\t\t *\r\n\t\t * @type {ConvolutionMaterial}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.convolutionMaterial = new ConvolutionMaterial();\r\n\r\n\t\tthis.kernelSize = options.kernelSize;\r\n\r\n\t\tthis.quad.material = this.convolutionMaterial;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * The kernel size.\r\n\t *\r\n\t * @type {KernelSize}\r\n\t * @default KernelSize.LARGE\r\n\t */\r\n\r\n\tget kernelSize() { return this.convolutionMaterial.kernelSize; }\r\n\r\n\t/**\r\n\t * @type {KernelSize}\r\n\t */\r\n\r\n\tset kernelSize(x) {\r\n\r\n\t\tif(typeof x === \"number\") {\r\n\r\n\t\t\tthis.convolutionMaterial.kernelSize = x;\r\n\r\n\t\t}\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Blurs the read buffer.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {WebGLRenderTarget} readBuffer - The read buffer.\r\n\t * @param {WebGLRenderTarget} writeBuffer - The write buffer.\r\n\t */\r\n\r\n\trender(renderer, readBuffer, writeBuffer) {\r\n\r\n\t\tconst scene = this.scene;\r\n\t\tconst camera = this.camera;\r\n\r\n\t\tconst renderTargetX = this.renderTargetX;\r\n\t\tconst renderTargetY = this.renderTargetY;\r\n\r\n\t\tconst material = this.convolutionMaterial;\r\n\t\tconst uniforms = material.uniforms;\r\n\t\tconst kernel = material.getKernel();\r\n\r\n\t\tlet lastRT = readBuffer;\r\n\t\tlet destRT;\r\n\t\tlet i, l;\r\n\r\n\t\t// Apply the multi-pass blur.\r\n\t\tfor(i = 0, l = kernel.length - 1; i < l; ++i) {\r\n\r\n\t\t\t// Alternate between targets.\r\n\t\t\tdestRT = ((i % 2) === 0) ? renderTargetX : renderTargetY;\r\n\r\n\t\t\tuniforms.kernel.value = kernel[i];\r\n\t\t\tuniforms.tDiffuse.value = lastRT.texture;\r\n\t\t\trenderer.render(scene, camera, destRT);\r\n\r\n\t\t\tlastRT = destRT;\r\n\r\n\t\t}\r\n\r\n\t\tuniforms.kernel.value = kernel[i];\r\n\t\tuniforms.tDiffuse.value = lastRT.texture;\r\n\t\trenderer.render(scene, camera, this.renderToScreen ? null : writeBuffer);\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Adjusts the format of the render targets.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {Boolean} alpha - Whether the renderer uses the alpha channel or not.\r\n\t */\r\n\r\n\tinitialise(renderer, alpha) {\r\n\r\n\t\tif(!alpha) {\r\n\r\n\t\t\tthis.renderTargetX.texture.format = RGBFormat;\r\n\t\t\tthis.renderTargetY.texture.format = RGBFormat;\r\n\r\n\t\t}\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Updates this pass with the renderer's size.\r\n\t *\r\n\t * @param {Number} width - The width.\r\n\t * @param {Number} height - The height.\r\n\t */\r\n\r\n\tsetSize(width, height) {\r\n\r\n\t\twidth = Math.max(1, Math.floor(width * this.resolutionScale));\r\n\t\theight = Math.max(1, Math.floor(height * this.resolutionScale));\r\n\r\n\t\tthis.renderTargetX.setSize(width, height);\r\n\t\tthis.renderTargetY.setSize(width, height);\r\n\r\n\t\tthis.convolutionMaterial.setTexelSize(1.0 / width, 1.0 / height);\r\n\r\n\t}\r\n\r\n}\r\n" }, { - "__docId__": 122, + "__docId__": 123, "kind": "class", "static": true, "variation": null, @@ -3040,7 +3057,7 @@ ] }, { - "__docId__": 123, + "__docId__": 124, "kind": "constructor", "static": false, "variation": null, @@ -3089,7 +3106,7 @@ "generator": false }, { - "__docId__": 124, + "__docId__": 125, "kind": "member", "static": false, "variation": null, @@ -3106,7 +3123,7 @@ } }, { - "__docId__": 125, + "__docId__": 126, "kind": "member", "static": false, "variation": null, @@ -3123,7 +3140,7 @@ } }, { - "__docId__": 126, + "__docId__": 127, "kind": "member", "static": false, "variation": null, @@ -3143,7 +3160,7 @@ } }, { - "__docId__": 127, + "__docId__": 128, "kind": "member", "static": false, "variation": null, @@ -3163,7 +3180,7 @@ } }, { - "__docId__": 128, + "__docId__": 129, "kind": "member", "static": false, "variation": null, @@ -3189,7 +3206,7 @@ } }, { - "__docId__": 129, + "__docId__": 130, "kind": "member", "static": false, "variation": null, @@ -3209,7 +3226,7 @@ } }, { - "__docId__": 130, + "__docId__": 131, "kind": "member", "static": false, "variation": null, @@ -3227,7 +3244,7 @@ } }, { - "__docId__": 131, + "__docId__": 132, "kind": "get", "static": false, "variation": null, @@ -3254,7 +3271,7 @@ "generator": false }, { - "__docId__": 132, + "__docId__": 133, "kind": "set", "static": false, "variation": null, @@ -3275,7 +3292,7 @@ "generator": false }, { - "__docId__": 133, + "__docId__": 134, "kind": "method", "static": false, "variation": null, @@ -3320,7 +3337,7 @@ "generator": false }, { - "__docId__": 134, + "__docId__": 135, "kind": "method", "static": false, "variation": null, @@ -3355,7 +3372,7 @@ "generator": false }, { - "__docId__": 135, + "__docId__": 136, "kind": "method", "static": false, "variation": null, @@ -3390,7 +3407,7 @@ "generator": false }, { - "__docId__": 136, + "__docId__": 137, "kind": "file", "static": true, "variation": null, @@ -3403,7 +3420,7 @@ "content": "import { BokehMaterial } from \"../materials\";\r\nimport { Pass } from \"./pass.js\";\r\n\r\n/**\r\n * A Depth of Field (DoF) pass using a bokeh shader.\r\n *\r\n * This pass requires a {@link EffectComposer#depthTexture}.\r\n */\r\n\r\nexport class BokehPass extends Pass {\r\n\r\n\t/**\r\n\t * Constructs a new bokeh pass.\r\n\t *\r\n\t * @param {PerspectiveCamera} camera - The main camera. Used to obtain the aspect ratio and the near and far plane settings.\r\n\t * @param {Object} [options] - Additional parameters.\r\n\t * @param {Number} [options.focus=1.0] - Focus distance.\r\n\t * @param {Number} [options.aperture=0.025] - Camera aperture scale. Bigger values for shallower depth of field.\r\n\t * @param {Number} [options.maxBlur=1.0] - Maximum blur strength.\r\n\t */\r\n\r\n\tconstructor(camera, options = {}) {\r\n\r\n\t\tsuper();\r\n\r\n\t\t/**\r\n\t\t * The name of this pass.\r\n\t\t */\r\n\r\n\t\tthis.name = \"BokehPass\";\r\n\r\n\t\t/**\r\n\t\t * This pass renders to the write buffer.\r\n\t\t */\r\n\r\n\t\tthis.needsSwap = true;\r\n\r\n\t\t/**\r\n\t\t * A bokeh shader material.\r\n\t\t *\r\n\t\t * @type {BokehMaterial}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.bokehMaterial = new BokehMaterial(camera, options);\r\n\r\n\t\tthis.quad.material = this.bokehMaterial;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Renders the effect.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {WebGLRenderTarget} readBuffer - The read buffer.\r\n\t * @param {WebGLRenderTarget} writeBuffer - The write buffer.\r\n\t */\r\n\r\n\trender(renderer, readBuffer, writeBuffer) {\r\n\r\n\t\tthis.bokehMaterial.uniforms.tDiffuse.value = readBuffer.texture;\r\n\t\tthis.bokehMaterial.uniforms.tDepth.value = readBuffer.depthTexture;\r\n\r\n\t\trenderer.render(this.scene, this.camera, this.renderToScreen ? null : writeBuffer);\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Updates this pass with the renderer's size.\r\n\t *\r\n\t * @param {Number} width - The width.\r\n\t * @param {Number} height - The height.\r\n\t */\r\n\r\n\tsetSize(width, height) {\r\n\r\n\t\tthis.bokehMaterial.uniforms.aspect.value = width / height;\r\n\r\n\t}\r\n\r\n}\r\n" }, { - "__docId__": 137, + "__docId__": 138, "kind": "class", "static": true, "variation": null, @@ -3422,7 +3439,7 @@ ] }, { - "__docId__": 138, + "__docId__": 139, "kind": "constructor", "static": false, "variation": null, @@ -3493,7 +3510,7 @@ "generator": false }, { - "__docId__": 139, + "__docId__": 140, "kind": "member", "static": false, "variation": null, @@ -3510,7 +3527,7 @@ } }, { - "__docId__": 140, + "__docId__": 141, "kind": "member", "static": false, "variation": null, @@ -3527,7 +3544,7 @@ } }, { - "__docId__": 141, + "__docId__": 142, "kind": "member", "static": false, "variation": null, @@ -3547,7 +3564,7 @@ } }, { - "__docId__": 142, + "__docId__": 143, "kind": "method", "static": false, "variation": null, @@ -3592,7 +3609,7 @@ "generator": false }, { - "__docId__": 143, + "__docId__": 144, "kind": "method", "static": false, "variation": null, @@ -3627,7 +3644,7 @@ "generator": false }, { - "__docId__": 144, + "__docId__": 145, "kind": "file", "static": true, "variation": null, @@ -3640,7 +3657,7 @@ "content": "import { Bokeh2Material } from \"../materials\";\r\nimport { Pass } from \"./pass.js\";\r\n\r\n/**\r\n * An advanced Depth of Field (DoF) pass.\r\n *\r\n * Yields more realistic results but is also more demanding.\r\n *\r\n * This pass requires a {@link EffectComposer#depthTexture}.\r\n */\r\n\r\nexport class Bokeh2Pass extends Pass {\r\n\r\n\t/**\r\n\t * Constructs a new bokeh2 pass.\r\n\t *\r\n\t * @param {PerspectiveCamera} camera - The main camera. Used to obtain the focal length and the near and far plane settings.\r\n\t * @param {Object} [options] - Additional parameters.\r\n\t * @param {Number} [options.rings=3] - The amount of blur rings.\r\n\t * @param {Number} [options.samples=4] - The amount of samples per ring.\r\n\t * @param {Boolean} [options.showFocus=false] - Whether the focus point should be highlighted.\r\n\t * @param {Boolean} [options.manualDoF=false] - Enables manual depth of field blur.\r\n\t * @param {Boolean} [options.vignette=false] - Enables a vignette effect.\r\n\t * @param {Boolean} [options.pentagon=false] - Enable to use a pentagonal shape to scale gathered texels.\r\n\t * @param {Boolean} [options.shaderFocus=true] - Disable if you compute your own focalDepth (in metres!).\r\n\t * @param {Boolean} [options.noise=true] - Disable if you don't want noise patterns for dithering.\r\n\t */\r\n\r\n\tconstructor(camera, options = {}) {\r\n\r\n\t\tsuper();\r\n\r\n\t\t/**\r\n\t\t * The name of this pass.\r\n\t\t */\r\n\r\n\t\tthis.name = \"Bokeh2Pass\";\r\n\r\n\t\t/**\r\n\t\t * This pass renders to the write buffer.\r\n\t\t */\r\n\r\n\t\tthis.needsSwap = true;\r\n\r\n\t\t/**\r\n\t\t * A bokeh shader material.\r\n\t\t *\r\n\t\t * @type {BokehMaterial}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.bokehMaterial = new Bokeh2Material(camera, options);\r\n\r\n\t\tthis.quad.material = this.bokehMaterial;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Renders the effect.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {WebGLRenderTarget} readBuffer - The read buffer.\r\n\t * @param {WebGLRenderTarget} writeBuffer - The write buffer.\r\n\t */\r\n\r\n\trender(renderer, readBuffer, writeBuffer) {\r\n\r\n\t\tthis.bokehMaterial.uniforms.tDiffuse.value = readBuffer.texture;\r\n\t\tthis.bokehMaterial.uniforms.tDepth.value = readBuffer.depthTexture;\r\n\r\n\t\trenderer.render(this.scene, this.camera, this.renderToScreen ? null : writeBuffer);\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Updates this pass with the renderer's size.\r\n\t *\r\n\t * @param {Number} width - The width.\r\n\t * @param {Number} height - The height.\r\n\t */\r\n\r\n\tsetSize(width, height) {\r\n\r\n\t\tthis.bokehMaterial.setTexelSize(1.0 / width, 1.0 / height);\r\n\r\n\t}\r\n\r\n}\r\n" }, { - "__docId__": 145, + "__docId__": 146, "kind": "class", "static": true, "variation": null, @@ -3659,7 +3676,7 @@ ] }, { - "__docId__": 146, + "__docId__": 147, "kind": "constructor", "static": false, "variation": null, @@ -3790,7 +3807,7 @@ "generator": false }, { - "__docId__": 147, + "__docId__": 148, "kind": "member", "static": false, "variation": null, @@ -3807,7 +3824,7 @@ } }, { - "__docId__": 148, + "__docId__": 149, "kind": "member", "static": false, "variation": null, @@ -3824,7 +3841,7 @@ } }, { - "__docId__": 149, + "__docId__": 150, "kind": "member", "static": false, "variation": null, @@ -3844,7 +3861,7 @@ } }, { - "__docId__": 150, + "__docId__": 151, "kind": "method", "static": false, "variation": null, @@ -3889,7 +3906,7 @@ "generator": false }, { - "__docId__": 151, + "__docId__": 152, "kind": "method", "static": false, "variation": null, @@ -3924,7 +3941,7 @@ "generator": false }, { - "__docId__": 152, + "__docId__": 153, "kind": "file", "static": true, "variation": null, @@ -3937,7 +3954,7 @@ "content": "import { Pass } from \"./pass.js\";\r\n\r\n/**\r\n * A pass that disables the stencil mask.\r\n */\r\n\r\nexport class ClearMaskPass extends Pass {\r\n\r\n\t/**\r\n\t * Constructs a new clear mask pass.\r\n\t */\r\n\r\n\tconstructor() {\r\n\r\n\t\tsuper(null, null, null);\r\n\r\n\t\t/**\r\n\t\t * The name of this pass.\r\n\t\t */\r\n\r\n\t\tthis.name = \"ClearMaskPass\";\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Disables the stencil test.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t */\r\n\r\n\trender(renderer) {\r\n\r\n\t\trenderer.state.buffers.stencil.setTest(false);\r\n\r\n\t}\r\n\r\n}\r\n" }, { - "__docId__": 153, + "__docId__": 154, "kind": "class", "static": true, "variation": null, @@ -3956,7 +3973,7 @@ ] }, { - "__docId__": 154, + "__docId__": 155, "kind": "constructor", "static": false, "variation": null, @@ -3970,7 +3987,7 @@ "generator": false }, { - "__docId__": 155, + "__docId__": 156, "kind": "member", "static": false, "variation": null, @@ -3987,7 +4004,7 @@ } }, { - "__docId__": 156, + "__docId__": 157, "kind": "method", "static": false, "variation": null, @@ -4012,7 +4029,7 @@ "generator": false }, { - "__docId__": 157, + "__docId__": 158, "kind": "file", "static": true, "variation": null, @@ -4025,7 +4042,7 @@ "content": "import { Color } from \"three\";\r\nimport { Pass } from \"./pass.js\";\r\n\r\n/**\r\n * Used for saving the original clear color of the renderer.\r\n *\r\n * @type Color\r\n * @private\r\n * @static\r\n */\r\n\r\nconst color = new Color();\r\n\r\n/**\r\n * A clear pass.\r\n *\r\n * You can prevent specific buffers from being cleared by setting either the\r\n * autoClearColor, autoClearStencil or autoClearDepth properties of the renderer\r\n * to false.\r\n */\r\n\r\nexport class ClearPass extends Pass {\r\n\r\n\t/**\r\n\t * Constructs a new clear pass.\r\n\t *\r\n\t * @param {Object} [options] - Additional options.\r\n\t * @param {Color} [options.clearColor=null] - An override clear color.\r\n\t * @param {Number} [options.clearAlpha=0.0] - An override clear alpha.\r\n\t */\r\n\r\n\tconstructor(options = {}) {\r\n\r\n\t\tsuper(null, null, null);\r\n\r\n\t\t/**\r\n\t\t * The name of this pass.\r\n\t\t */\r\n\r\n\t\tthis.name = \"ClearPass\";\r\n\r\n\t\t/**\r\n\t\t * Clear color.\r\n\t\t *\r\n\t\t * @type {Color}\r\n\t\t * @default null\r\n\t\t */\r\n\r\n\t\tthis.clearColor = (options.clearColor !== undefined) ? options.clearColor : null;\r\n\r\n\t\t/**\r\n\t\t * Clear alpha.\r\n\t\t *\r\n\t\t * @type {Number}\r\n\t\t * @default 0.0\r\n\t\t */\r\n\r\n\t\tthis.clearAlpha = (options.clearAlpha !== undefined) ? options.clearAlpha : 0.0;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Clears the read buffer or the screen.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {WebGLRenderTarget} readBuffer - The read buffer.\r\n\t */\r\n\r\n\trender(renderer, readBuffer) {\r\n\r\n\t\tconst clearColor = this.clearColor;\r\n\r\n\t\tlet clearAlpha;\r\n\r\n\t\tif(clearColor !== null) {\r\n\r\n\t\t\tcolor.copy(renderer.getClearColor());\r\n\t\t\tclearAlpha = renderer.getClearAlpha();\r\n\t\t\trenderer.setClearColor(clearColor, this.clearAlpha);\r\n\r\n\t\t}\r\n\r\n\t\trenderer.setRenderTarget(this.renderToScreen ? null : readBuffer);\r\n\t\trenderer.clear();\r\n\r\n\t\tif(clearColor !== null) {\r\n\r\n\t\t\trenderer.setClearColor(color, clearAlpha);\r\n\r\n\t\t}\r\n\r\n\t}\r\n\r\n}\r\n" }, { - "__docId__": 158, + "__docId__": 159, "kind": "variable", "static": true, "variation": null, @@ -4054,7 +4071,7 @@ } }, { - "__docId__": 159, + "__docId__": 160, "kind": "class", "static": true, "variation": null, @@ -4073,7 +4090,7 @@ ] }, { - "__docId__": 160, + "__docId__": 161, "kind": "constructor", "static": false, "variation": null, @@ -4122,7 +4139,7 @@ "generator": false }, { - "__docId__": 161, + "__docId__": 162, "kind": "member", "static": false, "variation": null, @@ -4139,7 +4156,7 @@ } }, { - "__docId__": 162, + "__docId__": 163, "kind": "member", "static": false, "variation": null, @@ -4165,7 +4182,7 @@ } }, { - "__docId__": 163, + "__docId__": 164, "kind": "member", "static": false, "variation": null, @@ -4191,7 +4208,7 @@ } }, { - "__docId__": 164, + "__docId__": 165, "kind": "method", "static": false, "variation": null, @@ -4226,7 +4243,7 @@ "generator": false }, { - "__docId__": 165, + "__docId__": 166, "kind": "file", "static": true, "variation": null, @@ -4239,7 +4256,7 @@ "content": "import { DepthMaterial } from \"../materials\";\r\nimport { Pass } from \"./pass.js\";\r\n\r\n/**\r\n * A depth pass.\r\n *\r\n * Reads the depth from a depth texture and renders it.\r\n *\r\n * This pass requires a {@link EffectComposer#depthTexture}.\r\n */\r\n\r\nexport class DepthPass extends Pass {\r\n\r\n\t/**\r\n\t * Constructs a new depth pass.\r\n\t *\r\n\t * @param {PerspectiveCamera} camera - The main camera. Used to obtain the near and far plane settings.\r\n\t */\r\n\r\n\tconstructor(camera) {\r\n\r\n\t\tsuper();\r\n\r\n\t\t/**\r\n\t\t * The name of this pass.\r\n\t\t */\r\n\r\n\t\tthis.name = \"DepthPass\";\r\n\r\n\t\t/**\r\n\t\t * This pass renders to the write buffer.\r\n\t\t */\r\n\r\n\t\tthis.needsSwap = true;\r\n\r\n\t\t/**\r\n\t\t * A depth shader material.\r\n\t\t *\r\n\t\t * @type {DepthMaterial}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.depthMaterial = new DepthMaterial(camera);\r\n\r\n\t\tthis.quad.material = this.depthMaterial;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Renders the effect.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {WebGLRenderTarget} readBuffer - The read buffer.\r\n\t * @param {WebGLRenderTarget} writeBuffer - The write buffer.\r\n\t */\r\n\r\n\trender(renderer, readBuffer, writeBuffer) {\r\n\r\n\t\tthis.depthMaterial.uniforms.tDepth.value = readBuffer.depthTexture;\r\n\r\n\t\trenderer.render(this.scene, this.camera, this.renderToScreen ? null : writeBuffer);\r\n\r\n\t}\r\n\r\n}\r\n" }, { - "__docId__": 166, + "__docId__": 167, "kind": "class", "static": true, "variation": null, @@ -4258,7 +4275,7 @@ ] }, { - "__docId__": 167, + "__docId__": 168, "kind": "constructor", "static": false, "variation": null, @@ -4283,7 +4300,7 @@ "generator": false }, { - "__docId__": 168, + "__docId__": 169, "kind": "member", "static": false, "variation": null, @@ -4300,7 +4317,7 @@ } }, { - "__docId__": 169, + "__docId__": 170, "kind": "member", "static": false, "variation": null, @@ -4317,7 +4334,7 @@ } }, { - "__docId__": 170, + "__docId__": 171, "kind": "member", "static": false, "variation": null, @@ -4337,7 +4354,7 @@ } }, { - "__docId__": 171, + "__docId__": 172, "kind": "method", "static": false, "variation": null, @@ -4382,7 +4399,7 @@ "generator": false }, { - "__docId__": 172, + "__docId__": 173, "kind": "file", "static": true, "variation": null, @@ -4395,7 +4412,7 @@ "content": "import { DotScreenMaterial } from \"../materials\";\r\nimport { Pass } from \"./pass.js\";\r\n\r\n/**\r\n * A dot screen pass.\r\n */\r\n\r\nexport class DotScreenPass extends Pass {\r\n\r\n\t/**\r\n\t * Constructs a new dot screen pass.\r\n\t *\r\n\t * @param {Object} [options] - The options.\r\n\t * @param {Number} [options.angle=1.57] - The angle of the pattern.\r\n\t * @param {Number} [options.scale=1.0] - The scale of the overall effect.\r\n\t * @param {Number} [options.intensity=1.0] - The intensity of the effect.\r\n\t * @param {Boolean} [options.average=false] - Whether the shader should output a colour average (black and white).\r\n\t */\r\n\r\n\tconstructor(options = {}) {\r\n\r\n\t\tsuper();\r\n\r\n\t\t/**\r\n\t\t * The name of this pass.\r\n\t\t */\r\n\r\n\t\tthis.name = \"DotScreenPass\";\r\n\r\n\t\t/**\r\n\t\t * This pass renders to the write buffer.\r\n\t\t */\r\n\r\n\t\tthis.needsSwap = true;\r\n\r\n\t\t/**\r\n\t\t * A dot screen shader material.\r\n\t\t *\r\n\t\t * @type {DotScreenMaterial}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.material = new DotScreenMaterial(options.average);\r\n\r\n\t\tif(options.angle !== undefined) { this.material.uniforms.angle.value = options.angle; }\r\n\t\tif(options.scale !== undefined) { this.material.uniforms.scale.value = options.scale; }\r\n\t\tif(options.intensity !== undefined) { this.material.uniforms.intensity.value = options.intensity; }\r\n\r\n\t\tthis.quad.material = this.material;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Renders the effect.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {WebGLRenderTarget} readBuffer - The read buffer.\r\n\t * @param {WebGLRenderTarget} writeBuffer - The write buffer.\r\n\t */\r\n\r\n\trender(renderer, readBuffer, writeBuffer) {\r\n\r\n\t\tthis.material.uniforms.tDiffuse.value = readBuffer.texture;\r\n\r\n\t\trenderer.render(this.scene, this.camera, this.renderToScreen ? null : writeBuffer);\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Updates this pass with the renderer's size.\r\n\t *\r\n\t * @param {Number} width - The width.\r\n\t * @param {Number} heght - The height.\r\n\t */\r\n\r\n\tsetSize(width, height) {\r\n\r\n\t\twidth = Math.max(1, width);\r\n\t\theight = Math.max(1, height);\r\n\r\n\t\tthis.material.uniforms.offsetRepeat.value.z = width;\r\n\t\tthis.material.uniforms.offsetRepeat.value.w = height;\r\n\r\n\t}\r\n\r\n}\r\n" }, { - "__docId__": 173, + "__docId__": 174, "kind": "class", "static": true, "variation": null, @@ -4414,7 +4431,7 @@ ] }, { - "__docId__": 174, + "__docId__": 175, "kind": "constructor", "static": false, "variation": null, @@ -4487,7 +4504,7 @@ "generator": false }, { - "__docId__": 175, + "__docId__": 176, "kind": "member", "static": false, "variation": null, @@ -4504,7 +4521,7 @@ } }, { - "__docId__": 176, + "__docId__": 177, "kind": "member", "static": false, "variation": null, @@ -4521,7 +4538,7 @@ } }, { - "__docId__": 177, + "__docId__": 178, "kind": "member", "static": false, "variation": null, @@ -4541,7 +4558,7 @@ } }, { - "__docId__": 178, + "__docId__": 179, "kind": "method", "static": false, "variation": null, @@ -4586,7 +4603,7 @@ "generator": false }, { - "__docId__": 179, + "__docId__": 180, "kind": "method", "static": false, "variation": null, @@ -4621,7 +4638,7 @@ "generator": false }, { - "__docId__": 180, + "__docId__": 181, "kind": "file", "static": true, "variation": null, @@ -4634,7 +4651,7 @@ "content": "import { FilmMaterial } from \"../materials\";\r\nimport { Pass } from \"./pass.js\";\r\n\r\n/**\r\n * A film pass.\r\n *\r\n * Provides various cinematic effects.\r\n */\r\n\r\nexport class FilmPass extends Pass {\r\n\r\n\t/**\r\n\t * Constructs a new film pass.\r\n\t *\r\n\t * @param {Object} [options] - The options. Disabled effects have no negative impact on performance.\r\n\t * @param {Boolean} [options.greyscale=false] - Enable greyscale effect. Greyscale and sepia are mutually exclusive.\r\n\t * @param {Boolean} [options.sepia=false] - Enable sepia effect. Greyscale and sepia are mutually exclusive.\r\n\t * @param {Boolean} [options.vignette=false] - Apply vignette effect.\r\n\t * @param {Boolean} [options.eskil=false] - Use Eskil's vignette approach. The default looks dusty while Eskil looks more burned out.\r\n\t * @param {Boolean} [options.screenMode=true] - Whether the screen blend mode should be used for noise and scanlines.\r\n\t * @param {Boolean} [options.scanlines=true] - Show scanlines.\r\n\t * @param {Boolean} [options.noise=true] - Show noise-based film grain.\r\n\t * @param {Number} [options.noiseIntensity=0.5] - The noise intensity. 0.0 to 1.0.\r\n\t * @param {Number} [options.scanlineIntensity=0.05] - The scanline intensity. 0.0 to 1.0.\r\n\t * @param {Number} [options.scanlineDensity=1.0] - The number of scanlines in percent, relative to the screen height.\r\n\t * @param {Number} [options.greyscaleIntensity=1.0] - The intensity of the greyscale effect.\r\n\t * @param {Number} [options.sepiaIntensity=1.0] - The intensity of the sepia effect.\r\n\t * @param {Number} [options.vignetteOffset=1.0] - The offset of the vignette effect.\r\n\t * @param {Number} [options.vignetteDarkness=1.0] - The darkness of the vignette effect.\r\n\t */\r\n\r\n\tconstructor(options = {}) {\r\n\r\n\t\tsuper();\r\n\r\n\t\t/**\r\n\t\t * The name of this pass.\r\n\t\t */\r\n\r\n\t\tthis.name = \"FilmPass\";\r\n\r\n\t\t/**\r\n\t\t * This pass renders to the write buffer.\r\n\t\t */\r\n\r\n\t\tthis.needsSwap = true;\r\n\r\n\t\t/**\r\n\t\t * Film shader material.\r\n\t\t *\r\n\t\t * @type {FilmMaterial}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.material = new FilmMaterial(options);\r\n\r\n\t\tthis.quad.material = this.material;\r\n\r\n\t\t/**\r\n\t\t * The amount of scanlines in percent, relative to the screen height.\r\n\t\t *\r\n\t\t * You need to call {@link EffectComposer#setSize} after changing this value.\r\n\t\t *\r\n\t\t * @type {Number}\r\n\t\t * @default 1.25\r\n\t\t */\r\n\r\n\t\tthis.scanlineDensity = (options.scanlineDensity === undefined) ? 1.25 : options.scanlineDensity;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Renders the effect.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {WebGLRenderTarget} readBuffer - The read buffer.\r\n\t * @param {WebGLRenderTarget} writeBuffer - The write buffer.\r\n\t * @param {Number} delta - The render delta time.\r\n\t */\r\n\r\n\trender(renderer, readBuffer, writeBuffer, delta) {\r\n\r\n\t\tthis.material.uniforms.tDiffuse.value = readBuffer.texture;\r\n\t\tthis.material.uniforms.time.value += delta;\r\n\r\n\t\trenderer.render(this.scene, this.camera, this.renderToScreen ? null : writeBuffer);\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Adjusts the scanline count using the renderer's height.\r\n\t *\r\n\t * @param {Number} width - The width.\r\n\t * @param {Number} height - The height.\r\n\t */\r\n\r\n\tsetSize(width, height) {\r\n\r\n\t\tthis.material.uniforms.scanlineCount.value = Math.round(height * this.scanlineDensity);\r\n\r\n\t}\r\n\r\n}\r\n" }, { - "__docId__": 181, + "__docId__": 182, "kind": "class", "static": true, "variation": null, @@ -4653,7 +4670,7 @@ ] }, { - "__docId__": 182, + "__docId__": 183, "kind": "constructor", "static": false, "variation": null, @@ -4846,7 +4863,7 @@ "generator": false }, { - "__docId__": 183, + "__docId__": 184, "kind": "member", "static": false, "variation": null, @@ -4863,7 +4880,7 @@ } }, { - "__docId__": 184, + "__docId__": 185, "kind": "member", "static": false, "variation": null, @@ -4880,7 +4897,7 @@ } }, { - "__docId__": 185, + "__docId__": 186, "kind": "member", "static": false, "variation": null, @@ -4900,7 +4917,7 @@ } }, { - "__docId__": 186, + "__docId__": 187, "kind": "member", "static": false, "variation": null, @@ -4926,7 +4943,7 @@ } }, { - "__docId__": 187, + "__docId__": 188, "kind": "method", "static": false, "variation": null, @@ -4981,7 +4998,7 @@ "generator": false }, { - "__docId__": 188, + "__docId__": 189, "kind": "method", "static": false, "variation": null, @@ -5016,7 +5033,7 @@ "generator": false }, { - "__docId__": 189, + "__docId__": 190, "kind": "file", "static": true, "variation": null, @@ -5026,10 +5043,10 @@ "access": null, "description": null, "lineNumber": 1, - "content": "import { DataTexture, RGBFormat, FloatType } from \"three\";\r\nimport { GlitchMaterial } from \"../materials\";\r\nimport { Pass } from \"./pass.js\";\r\n\r\n/**\r\n * Returns a random integer in the specified range.\r\n *\r\n * @private\r\n * @static\r\n * @param {Number} low - The lowest possible value.\r\n * @param {Number} high - The highest possible value.\r\n * @return {Number} The random value.\r\n */\r\n\r\nfunction randomInt(low, high) {\r\n\r\n\treturn low + Math.floor(Math.random() * (high - low + 1));\r\n\r\n}\r\n\r\n/**\r\n * Returns a random float in the specified range.\r\n *\r\n * @private\r\n * @static\r\n * @param {Number} low - The lowest possible value.\r\n * @param {Number} high - The highest possible value.\r\n * @return {Number} The random value.\r\n */\r\n\r\nfunction randomFloat(low, high) {\r\n\r\n\treturn low + Math.random() * (high - low);\r\n\r\n}\r\n\r\n/**\r\n * A glitch pass.\r\n */\r\n\r\nexport class GlitchPass extends Pass {\r\n\r\n\t/**\r\n\t * Constructs a new glitch pass.\r\n\t *\r\n\t * @param {Object} [options] - The options.\r\n\t * @param {Texture} [options.perturbMap] - A perturbation map. If none is provided, a noise texture will be created.\r\n\t * @param {Number} [options.dtSize=64] - The size of the generated noise map. Will be ignored if a perturbation map is provided.\r\n\t */\r\n\r\n\tconstructor(options = {}) {\r\n\r\n\t\tsuper();\r\n\r\n\t\t/**\r\n\t\t * The name of this pass.\r\n\t\t */\r\n\r\n\t\tthis.name = \"GlitchPass\";\r\n\r\n\t\t/**\r\n\t\t * This pass renders to the write buffer.\r\n\t\t */\r\n\r\n\t\tthis.needsSwap = true;\r\n\r\n\t\t/**\r\n\t\t * Glitch shader material.\r\n\t\t *\r\n\t\t * @type {GlitchMaterial}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.material = new GlitchMaterial();\r\n\r\n\t\tthis.quad.material = this.material;\r\n\r\n\t\t/**\r\n\t\t * A perturbation map.\r\n\t\t *\r\n\t\t * @type {Texture}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.texture = null;\r\n\r\n\t\tthis.perturbMap = (options.perturbMap !== undefined) ? options.perturbMap : this.generatePerturbMap(options.dtSize);\r\n\t\tthis.perturbMap.name = \"Glitch.Perturbation\";\r\n\t\tthis.perturbMap.generateMipmaps = false;\r\n\r\n\t\t/**\r\n\t\t * The effect mode.\r\n\t\t *\r\n\t\t * @type {GlitchMode}\r\n\t\t * @default GlitchMode.SPORADIC\r\n\t\t */\r\n\r\n\t\tthis.mode = GlitchMode.SPORADIC;\r\n\r\n\t\t/**\r\n\t\t * Counter for glitch activation and deactivation.\r\n\t\t *\r\n\t\t * @type {Number}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.counter = 0;\r\n\r\n\t\t/**\r\n\t\t * A random break point for the sporadic glitch activation.\r\n\t\t *\r\n\t\t * @type {Number}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.breakPoint = randomInt(120, 240);\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * The current perturbation map.\r\n\t *\r\n\t * @type {Texture}\r\n\t */\r\n\r\n\tget perturbMap() { return this.texture; }\r\n\r\n\t/**\r\n\t * Assigning a new perturbation map does not destroy the current one!\r\n\t *\r\n\t * @type {Texture}\r\n\t */\r\n\r\n\tset perturbMap(x) {\r\n\r\n\t\tthis.texture = x;\r\n\t\tthis.material.uniforms.tPerturb.value = x;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Destroys the current perturbation map and creates a new one.\r\n\t *\r\n\t * @param {Number} [size=64] - The texture size.\r\n\t * @return {DataTexture} The perturbation texture.\r\n\t */\r\n\r\n\tgeneratePerturbMap(size = 64) {\r\n\r\n\t\tconst pixels = size * size;\r\n\t\tconst data = new Float32Array(pixels * 3);\r\n\r\n\t\tlet dt = this.perturbMap;\r\n\t\tlet i, x;\r\n\r\n\t\tfor(i = 0; i < pixels; ++i) {\r\n\r\n\t\t\tx = Math.random();\r\n\r\n\t\t\tdata[i * 3] = x;\r\n\t\t\tdata[i * 3 + 1] = x;\r\n\t\t\tdata[i * 3 + 2] = x;\r\n\r\n\t\t}\r\n\r\n\t\tif(dt !== null) {\r\n\r\n\t\t\tdt.dispose();\r\n\r\n\t\t}\r\n\r\n\t\tdt = new DataTexture(data, size, size, RGBFormat, FloatType);\r\n\t\tdt.needsUpdate = true;\r\n\r\n\t\tthis.perturbMap = dt;\r\n\r\n\t\treturn dt;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Renders the effect.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {WebGLRenderTarget} readBuffer - The read buffer.\r\n\t * @param {WebGLRenderTarget} writeBuffer - The write buffer.\r\n\t */\r\n\r\n\trender(renderer, readBuffer, writeBuffer) {\r\n\r\n\t\tconst mode = this.mode;\r\n\t\tconst counter = this.counter;\r\n\t\tconst breakPoint = this.breakPoint;\r\n\t\tconst uniforms = this.material.uniforms;\r\n\r\n\t\tuniforms.tDiffuse.value = readBuffer.texture;\r\n\t\tuniforms.seed.value = Math.random();\r\n\t\tuniforms.active.value = true;\r\n\r\n\t\tif(counter % breakPoint === 0 || mode === GlitchMode.CONSTANT_WILD) {\r\n\r\n\t\t\tuniforms.amount.value = Math.random() / 30.0;\r\n\t\t\tuniforms.angle.value = randomFloat(-Math.PI, Math.PI);\r\n\t\t\tuniforms.seedX.value = randomFloat(-1.0, 1.0);\r\n\t\t\tuniforms.seedY.value = randomFloat(-1.0, 1.0);\r\n\t\t\tuniforms.distortionX.value = randomFloat(0.0, 1.0);\r\n\t\t\tuniforms.distortionY.value = randomFloat(0.0, 1.0);\r\n\r\n\t\t\tthis.breakPoint = randomInt(120, 240);\r\n\t\t\tthis.counter = 0;\r\n\r\n\t\t} else {\r\n\r\n\t\t\tif(counter % breakPoint < breakPoint / 5 || mode === GlitchMode.CONSTANT_MILD) {\r\n\r\n\t\t\t\tuniforms.amount.value = Math.random() / 90.0;\r\n\t\t\t\tuniforms.angle.value = randomFloat(-Math.PI, Math.PI);\r\n\t\t\t\tuniforms.distortionX.value = randomFloat(0.0, 1.0);\r\n\t\t\t\tuniforms.distortionY.value = randomFloat(0.0, 1.0);\r\n\t\t\t\tuniforms.seedX.value = randomFloat(-0.3, 0.3);\r\n\t\t\t\tuniforms.seedY.value = randomFloat(-0.3, 0.3);\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\t// Sporadic.\r\n\t\t\t\tuniforms.active.value = false;\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\t++this.counter;\r\n\r\n\t\trenderer.render(this.scene, this.camera, this.renderToScreen ? null : writeBuffer);\r\n\r\n\t}\r\n\r\n}\r\n\r\n/**\r\n * A glitch mode enumeration.\r\n *\r\n * @type {Object}\r\n * @property {Number} SPORADIC - Sporadic glitches.\r\n * @property {Number} CONSTANT_MILD - Constant mild glitches.\r\n * @property {Number} CONSTANT_WILD - Constant wild glitches.\r\n */\r\n\r\nexport const GlitchMode = {\r\n\r\n\tSPORADIC: 0,\r\n\tCONSTANT_MILD: 1,\r\n\tCONSTANT_WILD: 2\r\n\r\n};\r\n" + "content": "import { DataTexture, RGBFormat, FloatType } from \"three\";\r\nimport { GlitchMaterial } from \"../materials\";\r\nimport { Pass } from \"./pass.js\";\r\n\r\n/**\r\n * Returns a random integer in the specified range.\r\n *\r\n * @private\r\n * @static\r\n * @param {Number} low - The lowest possible value.\r\n * @param {Number} high - The highest possible value.\r\n * @return {Number} The random value.\r\n */\r\n\r\nfunction randomInt(low, high) {\r\n\r\n\treturn low + Math.floor(Math.random() * (high - low + 1));\r\n\r\n}\r\n\r\n/**\r\n * Returns a random float in the specified range.\r\n *\r\n * @private\r\n * @static\r\n * @param {Number} low - The lowest possible value.\r\n * @param {Number} high - The highest possible value.\r\n * @return {Number} The random value.\r\n */\r\n\r\nfunction randomFloat(low, high) {\r\n\r\n\treturn low + Math.random() * (high - low);\r\n\r\n}\r\n\r\n/**\r\n * A glitch pass.\r\n */\r\n\r\nexport class GlitchPass extends Pass {\r\n\r\n\t/**\r\n\t * Constructs a new glitch pass.\r\n\t *\r\n\t * @param {Object} [options] - The options.\r\n\t * @param {Texture} [options.perturbMap] - A perturbation map. If none is provided, a noise texture will be created.\r\n\t * @param {Number} [options.dtSize=64] - The size of the generated noise map. Will be ignored if a perturbation map is provided.\r\n\t */\r\n\r\n\tconstructor(options = {}) {\r\n\r\n\t\tsuper();\r\n\r\n\t\t/**\r\n\t\t * The name of this pass.\r\n\t\t */\r\n\r\n\t\tthis.name = \"GlitchPass\";\r\n\r\n\t\t/**\r\n\t\t * This pass renders to the write buffer.\r\n\t\t */\r\n\r\n\t\tthis.needsSwap = true;\r\n\r\n\t\t/**\r\n\t\t * Glitch shader material.\r\n\t\t *\r\n\t\t * @type {GlitchMaterial}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.material = new GlitchMaterial();\r\n\r\n\t\tthis.quad.material = this.material;\r\n\r\n\t\t/**\r\n\t\t * A perturbation map.\r\n\t\t *\r\n\t\t * @type {Texture}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.texture = null;\r\n\r\n\t\tthis.perturbMap = (options.perturbMap !== undefined) ? options.perturbMap : this.generatePerturbMap(options.dtSize);\r\n\t\tthis.perturbMap.name = \"Glitch.Perturbation\";\r\n\t\tthis.perturbMap.generateMipmaps = false;\r\n\r\n\t\t/**\r\n\t\t * The effect mode.\r\n\t\t *\r\n\t\t * @type {GlitchMode}\r\n\t\t * @default GlitchMode.SPORADIC\r\n\t\t */\r\n\r\n\t\tthis.mode = GlitchMode.SPORADIC;\r\n\r\n\t\t/**\r\n\t\t * Counter for glitch activation and deactivation.\r\n\t\t *\r\n\t\t * @type {Number}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.counter = 0;\r\n\r\n\t\t/**\r\n\t\t * A random break point for the sporadic glitch activation.\r\n\t\t *\r\n\t\t * @type {Number}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.breakPoint = randomInt(120, 240);\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * The current perturbation map.\r\n\t *\r\n\t * @type {Texture}\r\n\t */\r\n\r\n\tget perturbMap() { return this.texture; }\r\n\r\n\t/**\r\n\t * Assigning a new perturbation map does not destroy the current one!\r\n\t *\r\n\t * @type {Texture}\r\n\t */\r\n\r\n\tset perturbMap(x) {\r\n\r\n\t\tthis.texture = x;\r\n\t\tthis.material.uniforms.tPerturb.value = x;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Destroys the current perturbation map and replaces it with a new one.\r\n\t *\r\n\t * @param {Number} [size=64] - The texture size.\r\n\t * @return {DataTexture} The perturbation texture.\r\n\t */\r\n\r\n\tgeneratePerturbMap(size = 64) {\r\n\r\n\t\tconst pixels = size * size;\r\n\t\tconst data = new Float32Array(pixels * 3);\r\n\r\n\t\tlet dt = this.perturbMap;\r\n\t\tlet i, x;\r\n\r\n\t\tfor(i = 0; i < pixels; ++i) {\r\n\r\n\t\t\tx = Math.random();\r\n\r\n\t\t\tdata[i * 3] = x;\r\n\t\t\tdata[i * 3 + 1] = x;\r\n\t\t\tdata[i * 3 + 2] = x;\r\n\r\n\t\t}\r\n\r\n\t\tif(dt !== null) {\r\n\r\n\t\t\tdt.dispose();\r\n\r\n\t\t}\r\n\r\n\t\tdt = new DataTexture(data, size, size, RGBFormat, FloatType);\r\n\t\tdt.needsUpdate = true;\r\n\r\n\t\tthis.perturbMap = dt;\r\n\r\n\t\treturn dt;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Renders the effect.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {WebGLRenderTarget} readBuffer - The read buffer.\r\n\t * @param {WebGLRenderTarget} writeBuffer - The write buffer.\r\n\t */\r\n\r\n\trender(renderer, readBuffer, writeBuffer) {\r\n\r\n\t\tconst mode = this.mode;\r\n\t\tconst counter = this.counter;\r\n\t\tconst breakPoint = this.breakPoint;\r\n\t\tconst uniforms = this.material.uniforms;\r\n\r\n\t\tuniforms.tDiffuse.value = readBuffer.texture;\r\n\t\tuniforms.seed.value = Math.random();\r\n\t\tuniforms.active.value = true;\r\n\r\n\t\tif(counter % breakPoint === 0 || mode === GlitchMode.CONSTANT_WILD) {\r\n\r\n\t\t\tuniforms.amount.value = Math.random() / 30.0;\r\n\t\t\tuniforms.angle.value = randomFloat(-Math.PI, Math.PI);\r\n\t\t\tuniforms.seedX.value = randomFloat(-1.0, 1.0);\r\n\t\t\tuniforms.seedY.value = randomFloat(-1.0, 1.0);\r\n\t\t\tuniforms.distortionX.value = randomFloat(0.0, 1.0);\r\n\t\t\tuniforms.distortionY.value = randomFloat(0.0, 1.0);\r\n\r\n\t\t\tthis.breakPoint = randomInt(120, 240);\r\n\t\t\tthis.counter = 0;\r\n\r\n\t\t} else {\r\n\r\n\t\t\tif(counter % breakPoint < breakPoint / 5 || mode === GlitchMode.CONSTANT_MILD) {\r\n\r\n\t\t\t\tuniforms.amount.value = Math.random() / 90.0;\r\n\t\t\t\tuniforms.angle.value = randomFloat(-Math.PI, Math.PI);\r\n\t\t\t\tuniforms.distortionX.value = randomFloat(0.0, 1.0);\r\n\t\t\t\tuniforms.distortionY.value = randomFloat(0.0, 1.0);\r\n\t\t\t\tuniforms.seedX.value = randomFloat(-0.3, 0.3);\r\n\t\t\t\tuniforms.seedY.value = randomFloat(-0.3, 0.3);\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\t// Sporadic.\r\n\t\t\t\tuniforms.active.value = false;\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\t++this.counter;\r\n\r\n\t\trenderer.render(this.scene, this.camera, this.renderToScreen ? null : writeBuffer);\r\n\r\n\t}\r\n\r\n}\r\n\r\n/**\r\n * A glitch mode enumeration.\r\n *\r\n * @type {Object}\r\n * @property {Number} SPORADIC - Sporadic glitches.\r\n * @property {Number} CONSTANT_MILD - Constant mild glitches.\r\n * @property {Number} CONSTANT_WILD - Constant wild glitches.\r\n */\r\n\r\nexport const GlitchMode = {\r\n\r\n\tSPORADIC: 0,\r\n\tCONSTANT_MILD: 1,\r\n\tCONSTANT_WILD: 2\r\n\r\n};\r\n" }, { - "__docId__": 190, + "__docId__": 191, "kind": "function", "static": true, "variation": null, @@ -5081,7 +5098,7 @@ "generator": false }, { - "__docId__": 191, + "__docId__": 192, "kind": "function", "static": true, "variation": null, @@ -5133,7 +5150,7 @@ "generator": false }, { - "__docId__": 192, + "__docId__": 193, "kind": "class", "static": true, "variation": null, @@ -5152,7 +5169,7 @@ ] }, { - "__docId__": 193, + "__docId__": 194, "kind": "constructor", "static": false, "variation": null, @@ -5199,7 +5216,7 @@ "generator": false }, { - "__docId__": 194, + "__docId__": 195, "kind": "member", "static": false, "variation": null, @@ -5216,7 +5233,7 @@ } }, { - "__docId__": 195, + "__docId__": 196, "kind": "member", "static": false, "variation": null, @@ -5233,7 +5250,7 @@ } }, { - "__docId__": 196, + "__docId__": 197, "kind": "member", "static": false, "variation": null, @@ -5253,7 +5270,7 @@ } }, { - "__docId__": 197, + "__docId__": 198, "kind": "member", "static": false, "variation": null, @@ -5273,7 +5290,7 @@ } }, { - "__docId__": 198, + "__docId__": 199, "kind": "member", "static": false, "variation": null, @@ -5291,7 +5308,7 @@ } }, { - "__docId__": 199, + "__docId__": 200, "kind": "member", "static": false, "variation": null, @@ -5317,7 +5334,7 @@ } }, { - "__docId__": 200, + "__docId__": 201, "kind": "member", "static": false, "variation": null, @@ -5337,7 +5354,7 @@ } }, { - "__docId__": 201, + "__docId__": 202, "kind": "member", "static": false, "variation": null, @@ -5357,7 +5374,7 @@ } }, { - "__docId__": 202, + "__docId__": 203, "kind": "get", "static": false, "variation": null, @@ -5378,7 +5395,7 @@ "generator": false }, { - "__docId__": 203, + "__docId__": 204, "kind": "set", "static": false, "variation": null, @@ -5399,7 +5416,7 @@ "generator": false }, { - "__docId__": 204, + "__docId__": 205, "kind": "member", "static": false, "variation": null, @@ -5417,7 +5434,7 @@ } }, { - "__docId__": 205, + "__docId__": 206, "kind": "method", "static": false, "variation": null, @@ -5425,7 +5442,7 @@ "memberof": "src/passes/glitch.js~GlitchPass", "longname": "src/passes/glitch.js~GlitchPass#generatePerturbMap", "access": null, - "description": "Destroys the current perturbation map and creates a new one.", + "description": "Destroys the current perturbation map and replaces it with a new one.", "lineNumber": 148, "params": [ { @@ -5452,7 +5469,7 @@ "generator": false }, { - "__docId__": 206, + "__docId__": 207, "kind": "member", "static": false, "variation": null, @@ -5470,7 +5487,7 @@ } }, { - "__docId__": 207, + "__docId__": 208, "kind": "method", "static": false, "variation": null, @@ -5515,7 +5532,7 @@ "generator": false }, { - "__docId__": 208, + "__docId__": 209, "kind": "member", "static": false, "variation": null, @@ -5533,7 +5550,7 @@ } }, { - "__docId__": 209, + "__docId__": 210, "kind": "member", "static": false, "variation": null, @@ -5551,7 +5568,7 @@ } }, { - "__docId__": 210, + "__docId__": 211, "kind": "variable", "static": true, "variation": null, @@ -5606,7 +5623,7 @@ } }, { - "__docId__": 211, + "__docId__": 212, "kind": "file", "static": true, "variation": null, @@ -5616,10 +5633,10 @@ "access": null, "description": null, "lineNumber": 1, - "content": "import {\r\n\tColor,\r\n\tLinearFilter,\r\n\tMeshBasicMaterial,\r\n\tRGBFormat,\r\n\tScene,\r\n\tVector3,\r\n\tWebGLRenderTarget\r\n} from \"three\";\r\n\r\nimport { CombineMaterial, GodRaysMaterial } from \"../materials\";\r\nimport { RenderPass } from \"./render.js\";\r\nimport { BlurPass } from \"./blur.js\";\r\nimport { Pass } from \"./pass.js\";\r\n\r\n/**\r\n * Clamps a given value.\r\n *\r\n * @private\r\n * @static\r\n * @param {Number} value - The value to clamp.\r\n * @param {Number} min - The lowest possible value.\r\n * @param {Number} max - The highest possible value.\r\n * @return {Number} The clamped value.\r\n */\r\n\r\nfunction clamp(value, min, max) {\r\n\r\n\treturn Math.max(min, Math.min(max, value));\r\n\r\n}\r\n\r\n/**\r\n * A crepuscular rays pass.\r\n */\r\n\r\nexport class GodRaysPass extends Pass {\r\n\r\n\t/**\r\n\t * Constructs a new god rays pass.\r\n\t *\r\n\t * @param {Scene} scene - The main scene.\r\n\t * @param {Camera} camera - The main camera.\r\n\t * @param {Object3D} lightSource - The main light source.\r\n\t * @param {Object} [options] - The options.\r\n\t * @param {Number} [options.density=0.96] - The density of the light rays.\r\n\t * @param {Number} [options.decay=0.93] - An illumination decay factor.\r\n\t * @param {Number} [options.weight=0.4] - A light ray weight factor.\r\n\t * @param {Number} [options.exposure=0.6] - A constant attenuation coefficient.\r\n\t * @param {Number} [options.clampMax=1.0] - An upper bound for the saturation of the overall effect.\r\n\t * @param {Number} [options.intensity=1.0] - A constant factor for additive blending.\r\n\t * @param {Number} [options.resolutionScale=0.5] - The render texture resolution scale, relative to the screen render size.\r\n\t * @param {Number} [options.kernelSize=KernelSize.LARGE] - The blur kernel size.\r\n\t * @param {Number} [options.samples=60] - The number of samples per pixel.\r\n\t * @param {Number} [options.screenMode=true] - Whether the screen blend mode should be used for combining the god rays texture with the scene colors.\r\n\t */\r\n\r\n\tconstructor(scene, camera, lightSource, options = {}) {\r\n\r\n\t\tsuper();\r\n\r\n\t\t/**\r\n\t\t * The name of this pass.\r\n\t\t */\r\n\r\n\t\tthis.name = \"GodRaysPass\";\r\n\r\n\t\t/**\r\n\t\t * A scene that only contains the light source.\r\n\t\t *\r\n\t\t * @type {Scene}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.lightScene = new Scene();\r\n\r\n\t\t/**\r\n\t\t * The main scene.\r\n\t\t *\r\n\t\t * @type {Scene}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.mainScene = scene;\r\n\r\n\t\t/**\r\n\t\t * The main camera.\r\n\t\t *\r\n\t\t * @type {Camera}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.mainCamera = camera;\r\n\r\n\t\t/**\r\n\t\t * A pass that only renders the light source.\r\n\t\t *\r\n\t\t * @type {RenderPass}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.renderPassLight = new RenderPass(this.lightScene, this.mainCamera);\r\n\r\n\t\t/**\r\n\t\t * A pass that renders the masked scene over the light.\r\n\t\t *\r\n\t\t * @type {RenderPass}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.renderPassMask = new RenderPass(this.mainScene, this.mainCamera, {\r\n\t\t\toverrideMaterial: new MeshBasicMaterial({ color: 0x000000 }),\r\n\t\t\tclearColor: new Color(0x000000)\r\n\t\t});\r\n\r\n\t\tthis.renderPassMask.clear = false;\r\n\r\n\t\t/**\r\n\t\t * A blur pass.\r\n\t\t *\r\n\t\t * @type {BlurPass}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.blurPass = new BlurPass(options);\r\n\r\n\t\t/**\r\n\t\t * A render target.\r\n\t\t *\r\n\t\t * @type {WebGLRenderTarget}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.renderTargetX = this.blurPass.renderTargetX.clone();\r\n\r\n\t\tthis.renderTargetX.texture.name = \"GodRays.TargetX\";\r\n\r\n\t\t/**\r\n\t\t * A second render target.\r\n\t\t *\r\n\t\t * @type {WebGLRenderTarget}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.renderTargetY = this.blurPass.renderTargetY.clone();\r\n\r\n\t\tthis.renderTargetY.texture.name = \"GodRays.TargetY\";\r\n\r\n\t\t/**\r\n\t\t * A render target for the masked light scene.\r\n\t\t *\r\n\t\t * @type {WebGLRenderTarget}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.renderTargetMask = new WebGLRenderTarget(1, 1, {\r\n\t\t\tminFilter: LinearFilter,\r\n\t\t\tmagFilter: LinearFilter\r\n\t\t});\r\n\r\n\t\tthis.renderTargetMask.texture.name = \"GodRays.Mask\";\r\n\t\tthis.renderTargetMask.texture.generateMipmaps = false;\r\n\r\n\t\t/**\r\n\t\t * The light source.\r\n\t\t *\r\n\t\t * @type {Object3D}\r\n\t\t */\r\n\r\n\t\tthis.lightSource = lightSource;\r\n\r\n\t\t/**\r\n\t\t * The light position in screen space.\r\n\t\t *\r\n\t\t * @type {Vector3}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.screenPosition = new Vector3();\r\n\r\n\t\t/**\r\n\t\t * A god rays shader material.\r\n\t\t *\r\n\t\t * @type {GodRaysMaterial}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.godRaysMaterial = new GodRaysMaterial();\r\n\t\tthis.godRaysMaterial.uniforms.lightPosition.value = this.screenPosition;\r\n\r\n\t\tif(options.exposure !== undefined) { this.godRaysMaterial.uniforms.exposure.value = options.exposure; }\r\n\t\tif(options.density !== undefined) { this.godRaysMaterial.uniforms.density.value = options.density; }\r\n\t\tif(options.decay !== undefined) { this.godRaysMaterial.uniforms.decay.value = options.decay; }\r\n\t\tif(options.weight !== undefined) { this.godRaysMaterial.uniforms.weight.value = options.weight; }\r\n\t\tif(options.clampMax !== undefined) { this.godRaysMaterial.uniforms.clampMax.value = options.clampMax; }\r\n\r\n\t\tthis.samples = options.samples;\r\n\r\n\t\t/**\r\n\t\t * A combine shader material.\r\n\t\t *\r\n\t\t * @type {CombineMaterial}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.combineMaterial = new CombineMaterial((options.screenMode !== undefined) ? options.screenMode : true);\r\n\r\n\t\tthis.intensity = options.intensity;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * The resolution scale.\r\n\t *\r\n\t * @type {Number}\r\n\t * @default 0.5\r\n\t */\r\n\r\n\tget resolutionScale() { return this.blurPass.resolutionScale; }\r\n\r\n\t/**\r\n\t * You need to call {@link EffectComposer#setSize} after changing this value.\r\n\t *\r\n\t * @type {Number}\r\n\t */\r\n\r\n\tset resolutionScale(x) {\r\n\r\n\t\tthis.blurPass.resolutionScale = x;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * The blur kernel size.\r\n\t *\r\n\t * @type {KernelSize}\r\n\t * @default KernelSize.LARGE\r\n\t */\r\n\r\n\tget kernelSize() { return this.blurPass.kernelSize; }\r\n\r\n\t/**\r\n\t * @type {KernelSize}\r\n\t */\r\n\r\n\tset kernelSize(x) {\r\n\r\n\t\tthis.blurPass.kernelSize = x;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * The overall intensity of the effect.\r\n\t *\r\n\t * @type {Number}\r\n\t * @default 1.0\r\n\t */\r\n\r\n\tget intensity() { return this.combineMaterial.uniforms.opacity2.value; }\r\n\r\n\t/**\r\n\t * @type {Number}\r\n\t */\r\n\r\n\tset intensity(x) {\r\n\r\n\t\tif(typeof x === \"number\") {\r\n\r\n\t\t\tthis.combineMaterial.uniforms.opacity2.value = x;\r\n\r\n\t\t}\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * The number of samples per pixel.\r\n\t *\r\n\t * @type {Number}\r\n\t * @default 60\r\n\t */\r\n\r\n\tget samples() { return Number.parseInt(this.godRaysMaterial.defines.NUM_SAMPLES_INT); }\r\n\r\n\t/**\r\n\t * This value must be carefully chosen. A higher value directly increases the\r\n\t * GPU load.\r\n\t *\r\n\t * @type {Number}\r\n\t */\r\n\r\n\tset samples(x) {\r\n\r\n\t\tif(typeof x === \"number\") {\r\n\r\n\t\t\tx = Math.floor(x);\r\n\r\n\t\t\tthis.godRaysMaterial.defines.NUM_SAMPLES_FLOAT = x.toFixed(1);\r\n\t\t\tthis.godRaysMaterial.defines.NUM_SAMPLES_INT = x.toFixed(0);\r\n\t\t\tthis.godRaysMaterial.needsUpdate = true;\r\n\r\n\t\t}\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Renders the scene.\r\n\t *\r\n\t * The god rays pass has four phases:\r\n\t *\r\n\t * Mask Phase:\r\n\t * First, the light source is rendered. Then the scene is rendered into the\r\n\t * same buffer using a mask override material with depth test enabled.\r\n\t *\r\n\t * Preliminary Blur Phase:\r\n\t * The masked scene is blurred.\r\n\t *\r\n\t * God Rays Phase:\r\n\t * The blurred scene is blurred again, but this time along radial lines\r\n\t * towards the light source.\r\n\t *\r\n\t * Composite Phase:\r\n\t * The final result is combined with the read buffer.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {WebGLRenderTarget} readBuffer - The read buffer.\r\n\t * @param {WebGLRenderTarget} writeBuffer - The write buffer.\r\n\t */\r\n\r\n\trender(renderer, readBuffer, writeBuffer) {\r\n\r\n\t\tconst quad = this.quad;\r\n\t\tconst scene = this.scene;\r\n\t\tconst camera = this.camera;\r\n\t\tconst mainScene = this.mainScene;\r\n\r\n\t\tconst lightSource = this.lightSource;\r\n\t\tconst screenPosition = this.screenPosition;\r\n\r\n\t\tconst godRaysMaterial = this.godRaysMaterial;\r\n\t\tconst combineMaterial = this.combineMaterial;\r\n\r\n\t\tconst renderTargetMask = this.renderTargetMask;\r\n\t\tconst renderTargetX = this.renderTargetX;\r\n\t\tconst renderTargetY = this.renderTargetY;\r\n\r\n\t\tlet background, parent;\r\n\r\n\t\t// Compute the screen light position and translate it to [0, 1].\r\n\t\tscreenPosition.copy(lightSource.position).project(this.mainCamera);\r\n\t\tscreenPosition.x = clamp((screenPosition.x + 1.0) * 0.5, 0.0, 1.0);\r\n\t\tscreenPosition.y = clamp((screenPosition.y + 1.0) * 0.5, 0.0, 1.0);\r\n\r\n\t\t// Render the masked scene.\r\n\t\tparent = lightSource.parent;\r\n\t\tbackground = mainScene.background;\r\n\t\tmainScene.background = null;\r\n\t\tthis.lightScene.add(lightSource);\r\n\r\n\t\tthis.renderPassLight.render(renderer, renderTargetMask);\r\n\t\tthis.renderPassMask.render(renderer, renderTargetMask);\r\n\r\n\t\tif(parent !== null) {\r\n\r\n\t\t\tparent.add(lightSource);\r\n\r\n\t\t}\r\n\r\n\t\tmainScene.background = background;\r\n\r\n\t\t// Convolution phase.\r\n\t\tthis.blurPass.render(renderer, renderTargetMask, renderTargetX);\r\n\r\n\t\t// God rays pass.\r\n\t\tquad.material = godRaysMaterial;\r\n\t\tgodRaysMaterial.uniforms.tDiffuse.value = renderTargetX.texture;\r\n\t\trenderer.render(scene, camera, renderTargetY);\r\n\r\n\t\t// Final pass - composite god rays onto colours.\r\n\t\tquad.material = combineMaterial;\r\n\t\tcombineMaterial.uniforms.texture1.value = readBuffer.texture;\r\n\t\tcombineMaterial.uniforms.texture2.value = renderTargetY.texture;\r\n\r\n\t\trenderer.render(scene, camera, this.renderToScreen ? null : writeBuffer);\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Adjusts the format of the render targets.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {Boolean} alpha - Whether the renderer uses the alpha channel or not.\r\n\t */\r\n\r\n\tinitialise(renderer, alpha) {\r\n\r\n\t\tthis.renderPassLight.initialise(renderer, alpha);\r\n\t\tthis.renderPassMask.initialise(renderer, alpha);\r\n\t\tthis.blurPass.initialise(renderer, alpha);\r\n\r\n\t\tif(!alpha) {\r\n\r\n\t\t\tthis.renderTargetMask.texture.format = RGBFormat;\r\n\t\t\tthis.renderTargetX.texture.format = RGBFormat;\r\n\t\t\tthis.renderTargetY.texture.format = RGBFormat;\r\n\r\n\t\t}\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Updates this pass with the renderer's size.\r\n\t *\r\n\t * @param {Number} width - The width.\r\n\t * @param {Number} height - The height.\r\n\t */\r\n\r\n\tsetSize(width, height) {\r\n\r\n\t\tthis.renderPassLight.setSize(width, height);\r\n\t\tthis.renderPassMask.setSize(width, height);\r\n\t\tthis.blurPass.setSize(width, height);\r\n\r\n\t\twidth = this.blurPass.renderTargetX.width;\r\n\t\theight = this.blurPass.renderTargetX.height;\r\n\r\n\t\tthis.renderTargetMask.setSize(width, height);\r\n\t\tthis.renderTargetX.setSize(width, height);\r\n\t\tthis.renderTargetY.setSize(width, height);\r\n\r\n\t}\r\n\r\n}\r\n" + "content": "import {\r\n\tColor,\r\n\tLinearFilter,\r\n\tMeshBasicMaterial,\r\n\tRGBFormat,\r\n\tScene,\r\n\tVector3,\r\n\tWebGLRenderTarget\r\n} from \"three\";\r\n\r\nimport { CombineMaterial, GodRaysMaterial } from \"../materials\";\r\nimport { RenderPass } from \"./render.js\";\r\nimport { BlurPass } from \"./blur.js\";\r\nimport { Pass } from \"./pass.js\";\r\n\r\n/**\r\n * Clamps a given value.\r\n *\r\n * @private\r\n * @static\r\n * @param {Number} value - The value to clamp.\r\n * @param {Number} min - The lowest possible value.\r\n * @param {Number} max - The highest possible value.\r\n * @return {Number} The clamped value.\r\n */\r\n\r\nfunction clamp(value, min, max) {\r\n\r\n\treturn Math.max(min, Math.min(max, value));\r\n\r\n}\r\n\r\n/**\r\n * A crepuscular rays pass.\r\n */\r\n\r\nexport class GodRaysPass extends Pass {\r\n\r\n\t/**\r\n\t * Constructs a new god rays pass.\r\n\t *\r\n\t * @param {Scene} scene - The main scene.\r\n\t * @param {Camera} camera - The main camera.\r\n\t * @param {Object3D} lightSource - The main light source.\r\n\t * @param {Object} [options] - The options.\r\n\t * @param {Number} [options.density=0.96] - The density of the light rays.\r\n\t * @param {Number} [options.decay=0.93] - An illumination decay factor.\r\n\t * @param {Number} [options.weight=0.4] - A light ray weight factor.\r\n\t * @param {Number} [options.exposure=0.6] - A constant attenuation coefficient.\r\n\t * @param {Number} [options.clampMax=1.0] - An upper bound for the saturation of the overall effect.\r\n\t * @param {Number} [options.intensity=1.0] - A constant factor for additive blending.\r\n\t * @param {Number} [options.resolutionScale=0.5] - The render texture resolution scale, relative to the screen render size.\r\n\t * @param {Number} [options.kernelSize=KernelSize.LARGE] - The blur kernel size.\r\n\t * @param {Number} [options.samples=60] - The number of samples per pixel.\r\n\t * @param {Number} [options.screenMode=true] - Whether the screen blend mode should be used for combining the god rays texture with the scene colors.\r\n\t */\r\n\r\n\tconstructor(scene, camera, lightSource, options = {}) {\r\n\r\n\t\tsuper();\r\n\r\n\t\t/**\r\n\t\t * The name of this pass.\r\n\t\t */\r\n\r\n\t\tthis.name = \"GodRaysPass\";\r\n\r\n\t\t/**\r\n\t\t * This pass renders to the write buffer.\r\n\t\t */\r\n\r\n\t\tthis.needsSwap = true;\r\n\r\n\t\t/**\r\n\t\t * A scene that only contains the light source.\r\n\t\t *\r\n\t\t * @type {Scene}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.lightScene = new Scene();\r\n\r\n\t\t/**\r\n\t\t * The main scene.\r\n\t\t *\r\n\t\t * @type {Scene}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.mainScene = scene;\r\n\r\n\t\t/**\r\n\t\t * The main camera.\r\n\t\t *\r\n\t\t * @type {Camera}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.mainCamera = camera;\r\n\r\n\t\t/**\r\n\t\t * A pass that only renders the light source.\r\n\t\t *\r\n\t\t * @type {RenderPass}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.renderPassLight = new RenderPass(this.lightScene, this.mainCamera);\r\n\r\n\t\t/**\r\n\t\t * A pass that renders the masked scene over the light.\r\n\t\t *\r\n\t\t * @type {RenderPass}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.renderPassMask = new RenderPass(this.mainScene, this.mainCamera, {\r\n\t\t\toverrideMaterial: new MeshBasicMaterial({ color: 0x000000 }),\r\n\t\t\tclearColor: new Color(0x000000)\r\n\t\t});\r\n\r\n\t\tthis.renderPassMask.clear = false;\r\n\r\n\t\t/**\r\n\t\t * A blur pass.\r\n\t\t *\r\n\t\t * @type {BlurPass}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.blurPass = new BlurPass(options);\r\n\r\n\t\t/**\r\n\t\t * A render target.\r\n\t\t *\r\n\t\t * @type {WebGLRenderTarget}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.renderTargetX = this.blurPass.renderTargetX.clone();\r\n\r\n\t\tthis.renderTargetX.texture.name = \"GodRays.TargetX\";\r\n\r\n\t\t/**\r\n\t\t * A second render target.\r\n\t\t *\r\n\t\t * @type {WebGLRenderTarget}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.renderTargetY = this.blurPass.renderTargetY.clone();\r\n\r\n\t\tthis.renderTargetY.texture.name = \"GodRays.TargetY\";\r\n\r\n\t\t/**\r\n\t\t * A render target for the masked light scene.\r\n\t\t *\r\n\t\t * @type {WebGLRenderTarget}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.renderTargetMask = new WebGLRenderTarget(1, 1, {\r\n\t\t\tminFilter: LinearFilter,\r\n\t\t\tmagFilter: LinearFilter\r\n\t\t});\r\n\r\n\t\tthis.renderTargetMask.texture.name = \"GodRays.Mask\";\r\n\t\tthis.renderTargetMask.texture.generateMipmaps = false;\r\n\r\n\t\t/**\r\n\t\t * The light source.\r\n\t\t *\r\n\t\t * @type {Object3D}\r\n\t\t */\r\n\r\n\t\tthis.lightSource = lightSource;\r\n\r\n\t\t/**\r\n\t\t * The light position in screen space.\r\n\t\t *\r\n\t\t * @type {Vector3}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.screenPosition = new Vector3();\r\n\r\n\t\t/**\r\n\t\t * A god rays shader material.\r\n\t\t *\r\n\t\t * @type {GodRaysMaterial}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.godRaysMaterial = new GodRaysMaterial();\r\n\t\tthis.godRaysMaterial.uniforms.lightPosition.value = this.screenPosition;\r\n\r\n\t\tif(options.exposure !== undefined) { this.godRaysMaterial.uniforms.exposure.value = options.exposure; }\r\n\t\tif(options.density !== undefined) { this.godRaysMaterial.uniforms.density.value = options.density; }\r\n\t\tif(options.decay !== undefined) { this.godRaysMaterial.uniforms.decay.value = options.decay; }\r\n\t\tif(options.weight !== undefined) { this.godRaysMaterial.uniforms.weight.value = options.weight; }\r\n\t\tif(options.clampMax !== undefined) { this.godRaysMaterial.uniforms.clampMax.value = options.clampMax; }\r\n\r\n\t\tthis.samples = options.samples;\r\n\r\n\t\t/**\r\n\t\t * A combine shader material.\r\n\t\t *\r\n\t\t * @type {CombineMaterial}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.combineMaterial = new CombineMaterial((options.screenMode !== undefined) ? options.screenMode : true);\r\n\r\n\t\tthis.intensity = options.intensity;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * The resolution scale.\r\n\t *\r\n\t * @type {Number}\r\n\t * @default 0.5\r\n\t */\r\n\r\n\tget resolutionScale() { return this.blurPass.resolutionScale; }\r\n\r\n\t/**\r\n\t * You need to call {@link EffectComposer#setSize} after changing this value.\r\n\t *\r\n\t * @type {Number}\r\n\t */\r\n\r\n\tset resolutionScale(x) {\r\n\r\n\t\tthis.blurPass.resolutionScale = x;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * The blur kernel size.\r\n\t *\r\n\t * @type {KernelSize}\r\n\t * @default KernelSize.LARGE\r\n\t */\r\n\r\n\tget kernelSize() { return this.blurPass.kernelSize; }\r\n\r\n\t/**\r\n\t * @type {KernelSize}\r\n\t */\r\n\r\n\tset kernelSize(x) {\r\n\r\n\t\tthis.blurPass.kernelSize = x;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * The overall intensity of the effect.\r\n\t *\r\n\t * @type {Number}\r\n\t * @default 1.0\r\n\t */\r\n\r\n\tget intensity() { return this.combineMaterial.uniforms.opacity2.value; }\r\n\r\n\t/**\r\n\t * @type {Number}\r\n\t */\r\n\r\n\tset intensity(x) {\r\n\r\n\t\tif(typeof x === \"number\") {\r\n\r\n\t\t\tthis.combineMaterial.uniforms.opacity2.value = x;\r\n\r\n\t\t}\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * The number of samples per pixel.\r\n\t *\r\n\t * @type {Number}\r\n\t * @default 60\r\n\t */\r\n\r\n\tget samples() { return Number.parseInt(this.godRaysMaterial.defines.NUM_SAMPLES_INT); }\r\n\r\n\t/**\r\n\t * This value must be carefully chosen. A higher value directly increases the\r\n\t * GPU load.\r\n\t *\r\n\t * @type {Number}\r\n\t */\r\n\r\n\tset samples(x) {\r\n\r\n\t\tif(typeof x === \"number\") {\r\n\r\n\t\t\tx = Math.floor(x);\r\n\r\n\t\t\tthis.godRaysMaterial.defines.NUM_SAMPLES_FLOAT = x.toFixed(1);\r\n\t\t\tthis.godRaysMaterial.defines.NUM_SAMPLES_INT = x.toFixed(0);\r\n\t\t\tthis.godRaysMaterial.needsUpdate = true;\r\n\r\n\t\t}\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Renders the scene.\r\n\t *\r\n\t * The god rays pass has four phases:\r\n\t *\r\n\t * Mask Phase:\r\n\t * First, the light source is rendered. Then the scene is rendered into the\r\n\t * same buffer using a mask override material with depth test enabled.\r\n\t *\r\n\t * Preliminary Blur Phase:\r\n\t * The masked scene is blurred.\r\n\t *\r\n\t * God Rays Phase:\r\n\t * The blurred scene is blurred again, but this time along radial lines\r\n\t * towards the light source.\r\n\t *\r\n\t * Composite Phase:\r\n\t * The final result is combined with the read buffer.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {WebGLRenderTarget} readBuffer - The read buffer.\r\n\t * @param {WebGLRenderTarget} writeBuffer - The write buffer.\r\n\t */\r\n\r\n\trender(renderer, readBuffer, writeBuffer) {\r\n\r\n\t\tconst quad = this.quad;\r\n\t\tconst scene = this.scene;\r\n\t\tconst camera = this.camera;\r\n\t\tconst mainScene = this.mainScene;\r\n\r\n\t\tconst lightSource = this.lightSource;\r\n\t\tconst screenPosition = this.screenPosition;\r\n\r\n\t\tconst godRaysMaterial = this.godRaysMaterial;\r\n\t\tconst combineMaterial = this.combineMaterial;\r\n\r\n\t\tconst renderTargetMask = this.renderTargetMask;\r\n\t\tconst renderTargetX = this.renderTargetX;\r\n\t\tconst renderTargetY = this.renderTargetY;\r\n\r\n\t\tlet background, parent;\r\n\r\n\t\t// Compute the screen light position and translate it to [0, 1].\r\n\t\tscreenPosition.copy(lightSource.position).project(this.mainCamera);\r\n\t\tscreenPosition.x = clamp((screenPosition.x + 1.0) * 0.5, 0.0, 1.0);\r\n\t\tscreenPosition.y = clamp((screenPosition.y + 1.0) * 0.5, 0.0, 1.0);\r\n\r\n\t\t// Render the masked scene.\r\n\t\tparent = lightSource.parent;\r\n\t\tbackground = mainScene.background;\r\n\t\tmainScene.background = null;\r\n\t\tthis.lightScene.add(lightSource);\r\n\r\n\t\tthis.renderPassLight.render(renderer, renderTargetMask);\r\n\t\tthis.renderPassMask.render(renderer, renderTargetMask);\r\n\r\n\t\tif(parent !== null) {\r\n\r\n\t\t\tparent.add(lightSource);\r\n\r\n\t\t}\r\n\r\n\t\tmainScene.background = background;\r\n\r\n\t\t// Convolution phase.\r\n\t\tthis.blurPass.render(renderer, renderTargetMask, renderTargetX);\r\n\r\n\t\t// God rays pass.\r\n\t\tquad.material = godRaysMaterial;\r\n\t\tgodRaysMaterial.uniforms.tDiffuse.value = renderTargetX.texture;\r\n\t\trenderer.render(scene, camera, renderTargetY);\r\n\r\n\t\t// Final pass - composite god rays onto colours.\r\n\t\tquad.material = combineMaterial;\r\n\t\tcombineMaterial.uniforms.texture1.value = readBuffer.texture;\r\n\t\tcombineMaterial.uniforms.texture2.value = renderTargetY.texture;\r\n\r\n\t\trenderer.render(scene, camera, this.renderToScreen ? null : writeBuffer);\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Adjusts the format of the render targets.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {Boolean} alpha - Whether the renderer uses the alpha channel or not.\r\n\t */\r\n\r\n\tinitialise(renderer, alpha) {\r\n\r\n\t\tthis.renderPassLight.initialise(renderer, alpha);\r\n\t\tthis.renderPassMask.initialise(renderer, alpha);\r\n\t\tthis.blurPass.initialise(renderer, alpha);\r\n\r\n\t\tif(!alpha) {\r\n\r\n\t\t\tthis.renderTargetMask.texture.format = RGBFormat;\r\n\t\t\tthis.renderTargetX.texture.format = RGBFormat;\r\n\t\t\tthis.renderTargetY.texture.format = RGBFormat;\r\n\r\n\t\t}\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Updates this pass with the renderer's size.\r\n\t *\r\n\t * @param {Number} width - The width.\r\n\t * @param {Number} height - The height.\r\n\t */\r\n\r\n\tsetSize(width, height) {\r\n\r\n\t\tthis.renderPassLight.setSize(width, height);\r\n\t\tthis.renderPassMask.setSize(width, height);\r\n\t\tthis.blurPass.setSize(width, height);\r\n\r\n\t\twidth = this.blurPass.renderTargetX.width;\r\n\t\theight = this.blurPass.renderTargetX.height;\r\n\r\n\t\tthis.renderTargetMask.setSize(width, height);\r\n\t\tthis.renderTargetX.setSize(width, height);\r\n\t\tthis.renderTargetY.setSize(width, height);\r\n\r\n\t}\r\n\r\n}\r\n" }, { - "__docId__": 212, + "__docId__": 213, "kind": "function", "static": true, "variation": null, @@ -5681,7 +5698,7 @@ "generator": false }, { - "__docId__": 213, + "__docId__": 214, "kind": "class", "static": true, "variation": null, @@ -5700,7 +5717,7 @@ ] }, { - "__docId__": 214, + "__docId__": 215, "kind": "constructor", "static": false, "variation": null, @@ -5875,7 +5892,7 @@ "generator": false }, { - "__docId__": 215, + "__docId__": 216, "kind": "member", "static": false, "variation": null, @@ -5892,7 +5909,24 @@ } }, { - "__docId__": 216, + "__docId__": 217, + "kind": "member", + "static": false, + "variation": null, + "name": "needsSwap", + "memberof": "src/passes/god-rays.js~GodRaysPass", + "longname": "src/passes/god-rays.js~GodRaysPass#needsSwap", + "access": null, + "description": "This pass renders to the write buffer.", + "lineNumber": 72, + "type": { + "types": [ + "boolean" + ] + } + }, + { + "__docId__": 218, "kind": "member", "static": false, "variation": null, @@ -5901,7 +5935,7 @@ "longname": "src/passes/god-rays.js~GodRaysPass#lightScene", "access": "private", "description": "A scene that only contains the light source.", - "lineNumber": 75, + "lineNumber": 81, "type": { "nullable": null, "types": [ @@ -5912,7 +5946,7 @@ } }, { - "__docId__": 217, + "__docId__": 219, "kind": "member", "static": false, "variation": null, @@ -5921,7 +5955,7 @@ "longname": "src/passes/god-rays.js~GodRaysPass#mainScene", "access": "private", "description": "The main scene.", - "lineNumber": 84, + "lineNumber": 90, "type": { "nullable": null, "types": [ @@ -5932,7 +5966,7 @@ } }, { - "__docId__": 218, + "__docId__": 220, "kind": "member", "static": false, "variation": null, @@ -5941,7 +5975,7 @@ "longname": "src/passes/god-rays.js~GodRaysPass#mainCamera", "access": "private", "description": "The main camera.", - "lineNumber": 93, + "lineNumber": 99, "type": { "nullable": null, "types": [ @@ -5952,7 +5986,7 @@ } }, { - "__docId__": 219, + "__docId__": 221, "kind": "member", "static": false, "variation": null, @@ -5961,7 +5995,7 @@ "longname": "src/passes/god-rays.js~GodRaysPass#renderPassLight", "access": "private", "description": "A pass that only renders the light source.", - "lineNumber": 102, + "lineNumber": 108, "type": { "nullable": null, "types": [ @@ -5972,7 +6006,7 @@ } }, { - "__docId__": 220, + "__docId__": 222, "kind": "member", "static": false, "variation": null, @@ -5981,7 +6015,7 @@ "longname": "src/passes/god-rays.js~GodRaysPass#renderPassMask", "access": "private", "description": "A pass that renders the masked scene over the light.", - "lineNumber": 111, + "lineNumber": 117, "type": { "nullable": null, "types": [ @@ -5992,7 +6026,7 @@ } }, { - "__docId__": 221, + "__docId__": 223, "kind": "member", "static": false, "variation": null, @@ -6001,7 +6035,7 @@ "longname": "src/passes/god-rays.js~GodRaysPass#blurPass", "access": "private", "description": "A blur pass.", - "lineNumber": 125, + "lineNumber": 131, "type": { "nullable": null, "types": [ @@ -6012,7 +6046,7 @@ } }, { - "__docId__": 222, + "__docId__": 224, "kind": "member", "static": false, "variation": null, @@ -6021,7 +6055,7 @@ "longname": "src/passes/god-rays.js~GodRaysPass#renderTargetX", "access": "private", "description": "A render target.", - "lineNumber": 134, + "lineNumber": 140, "type": { "nullable": null, "types": [ @@ -6032,7 +6066,7 @@ } }, { - "__docId__": 223, + "__docId__": 225, "kind": "member", "static": false, "variation": null, @@ -6041,7 +6075,7 @@ "longname": "src/passes/god-rays.js~GodRaysPass#renderTargetY", "access": "private", "description": "A second render target.", - "lineNumber": 145, + "lineNumber": 151, "type": { "nullable": null, "types": [ @@ -6052,7 +6086,7 @@ } }, { - "__docId__": 224, + "__docId__": 226, "kind": "member", "static": false, "variation": null, @@ -6061,7 +6095,7 @@ "longname": "src/passes/god-rays.js~GodRaysPass#renderTargetMask", "access": "private", "description": "A render target for the masked light scene.", - "lineNumber": 156, + "lineNumber": 162, "type": { "nullable": null, "types": [ @@ -6072,7 +6106,7 @@ } }, { - "__docId__": 225, + "__docId__": 227, "kind": "member", "static": false, "variation": null, @@ -6081,7 +6115,7 @@ "longname": "src/passes/god-rays.js~GodRaysPass#lightSource", "access": null, "description": "The light source.", - "lineNumber": 170, + "lineNumber": 176, "type": { "nullable": null, "types": [ @@ -6092,7 +6126,7 @@ } }, { - "__docId__": 226, + "__docId__": 228, "kind": "member", "static": false, "variation": null, @@ -6101,7 +6135,7 @@ "longname": "src/passes/god-rays.js~GodRaysPass#screenPosition", "access": "private", "description": "The light position in screen space.", - "lineNumber": 179, + "lineNumber": 185, "type": { "nullable": null, "types": [ @@ -6112,7 +6146,7 @@ } }, { - "__docId__": 227, + "__docId__": 229, "kind": "member", "static": false, "variation": null, @@ -6121,7 +6155,7 @@ "longname": "src/passes/god-rays.js~GodRaysPass#godRaysMaterial", "access": "private", "description": "A god rays shader material.", - "lineNumber": 188, + "lineNumber": 194, "type": { "nullable": null, "types": [ @@ -6132,7 +6166,7 @@ } }, { - "__docId__": 228, + "__docId__": 230, "kind": "member", "static": false, "variation": null, @@ -6141,7 +6175,7 @@ "longname": "src/passes/god-rays.js~GodRaysPass#samples", "access": null, "description": null, - "lineNumber": 197, + "lineNumber": 203, "undocument": true, "type": { "types": [ @@ -6150,7 +6184,7 @@ } }, { - "__docId__": 229, + "__docId__": 231, "kind": "member", "static": false, "variation": null, @@ -6159,7 +6193,7 @@ "longname": "src/passes/god-rays.js~GodRaysPass#combineMaterial", "access": "private", "description": "A combine shader material.", - "lineNumber": 206, + "lineNumber": 212, "type": { "nullable": null, "types": [ @@ -6170,7 +6204,7 @@ } }, { - "__docId__": 230, + "__docId__": 232, "kind": "member", "static": false, "variation": null, @@ -6179,7 +6213,7 @@ "longname": "src/passes/god-rays.js~GodRaysPass#intensity", "access": null, "description": null, - "lineNumber": 208, + "lineNumber": 214, "undocument": true, "type": { "types": [ @@ -6188,7 +6222,7 @@ } }, { - "__docId__": 231, + "__docId__": 233, "kind": "get", "static": false, "variation": null, @@ -6197,7 +6231,7 @@ "longname": "src/passes/god-rays.js~GodRaysPass#resolutionScale", "access": null, "description": "The resolution scale.", - "lineNumber": 219, + "lineNumber": 225, "unknown": [ { "tagName": "@default", @@ -6215,7 +6249,7 @@ "generator": false }, { - "__docId__": 232, + "__docId__": 234, "kind": "set", "static": false, "variation": null, @@ -6224,7 +6258,7 @@ "longname": "src/passes/god-rays.js~GodRaysPass#resolutionScale", "access": null, "description": "You need to call {@link EffectComposer#setSize} after changing this value.", - "lineNumber": 227, + "lineNumber": 233, "type": { "nullable": null, "types": [ @@ -6236,7 +6270,7 @@ "generator": false }, { - "__docId__": 233, + "__docId__": 235, "kind": "get", "static": false, "variation": null, @@ -6245,7 +6279,7 @@ "longname": "src/passes/god-rays.js~GodRaysPass#kernelSize", "access": null, "description": "The blur kernel size.", - "lineNumber": 240, + "lineNumber": 246, "unknown": [ { "tagName": "@default", @@ -6263,7 +6297,7 @@ "generator": false }, { - "__docId__": 234, + "__docId__": 236, "kind": "set", "static": false, "variation": null, @@ -6272,7 +6306,7 @@ "longname": "src/passes/god-rays.js~GodRaysPass#kernelSize", "access": null, "description": "", - "lineNumber": 246, + "lineNumber": 252, "type": { "nullable": null, "types": [ @@ -6284,7 +6318,7 @@ "generator": false }, { - "__docId__": 235, + "__docId__": 237, "kind": "get", "static": false, "variation": null, @@ -6293,7 +6327,7 @@ "longname": "src/passes/god-rays.js~GodRaysPass#intensity", "access": null, "description": "The overall intensity of the effect.", - "lineNumber": 259, + "lineNumber": 265, "unknown": [ { "tagName": "@default", @@ -6311,7 +6345,7 @@ "generator": false }, { - "__docId__": 236, + "__docId__": 238, "kind": "set", "static": false, "variation": null, @@ -6320,7 +6354,7 @@ "longname": "src/passes/god-rays.js~GodRaysPass#intensity", "access": null, "description": "", - "lineNumber": 265, + "lineNumber": 271, "type": { "nullable": null, "types": [ @@ -6332,7 +6366,7 @@ "generator": false }, { - "__docId__": 237, + "__docId__": 239, "kind": "get", "static": false, "variation": null, @@ -6341,7 +6375,7 @@ "longname": "src/passes/god-rays.js~GodRaysPass#samples", "access": null, "description": "The number of samples per pixel.", - "lineNumber": 282, + "lineNumber": 288, "unknown": [ { "tagName": "@default", @@ -6359,7 +6393,7 @@ "generator": false }, { - "__docId__": 238, + "__docId__": 240, "kind": "set", "static": false, "variation": null, @@ -6368,7 +6402,7 @@ "longname": "src/passes/god-rays.js~GodRaysPass#samples", "access": null, "description": "This value must be carefully chosen. A higher value directly increases the\nGPU load.", - "lineNumber": 291, + "lineNumber": 297, "type": { "nullable": null, "types": [ @@ -6380,7 +6414,7 @@ "generator": false }, { - "__docId__": 239, + "__docId__": 241, "kind": "method", "static": false, "variation": null, @@ -6389,7 +6423,7 @@ "longname": "src/passes/god-rays.js~GodRaysPass#render", "access": null, "description": "Renders the scene.\n\nThe god rays pass has four phases:\n\nMask Phase:\n First, the light source is rendered. Then the scene is rendered into the\n same buffer using a mask override material with depth test enabled.\n\nPreliminary Blur Phase:\n The masked scene is blurred.\n\nGod Rays Phase:\n The blurred scene is blurred again, but this time along radial lines\n towards the light source.\n\nComposite Phase:\n The final result is combined with the read buffer.", - "lineNumber": 329, + "lineNumber": 335, "params": [ { "nullable": null, @@ -6425,7 +6459,7 @@ "generator": false }, { - "__docId__": 240, + "__docId__": 242, "kind": "method", "static": false, "variation": null, @@ -6434,7 +6468,7 @@ "longname": "src/passes/god-rays.js~GodRaysPass#initialise", "access": null, "description": "Adjusts the format of the render targets.", - "lineNumber": 394, + "lineNumber": 400, "params": [ { "nullable": null, @@ -6460,7 +6494,7 @@ "generator": false }, { - "__docId__": 241, + "__docId__": 243, "kind": "method", "static": false, "variation": null, @@ -6469,7 +6503,7 @@ "longname": "src/passes/god-rays.js~GodRaysPass#setSize", "access": null, "description": "Updates this pass with the renderer's size.", - "lineNumber": 417, + "lineNumber": 423, "params": [ { "nullable": null, @@ -6495,7 +6529,7 @@ "generator": false }, { - "__docId__": 242, + "__docId__": 244, "kind": "file", "static": true, "variation": null, @@ -6508,7 +6542,7 @@ "content": "/**\r\n * A compilation of the post processing passes.\r\n *\r\n * @module postprocessing/passes\r\n */\r\n\r\nexport { BloomPass } from \"./bloom.js\";\r\nexport { BlurPass } from \"./blur.js\";\r\nexport { BokehPass } from \"./bokeh.js\";\r\nexport { Bokeh2Pass } from \"./bokeh2.js\";\r\nexport { ClearPass } from \"./clear.js\";\r\nexport { ClearMaskPass } from \"./clear-mask.js\";\r\nexport { DotScreenPass } from \"./dot-screen.js\";\r\nexport { DepthPass } from \"./depth.js\";\r\nexport { FilmPass } from \"./film.js\";\r\nexport { GlitchMode, GlitchPass } from \"./glitch.js\";\r\nexport { GodRaysPass } from \"./god-rays.js\";\r\nexport { MaskPass } from \"./mask.js\";\r\nexport { Pass } from \"./pass.js\";\r\nexport { PixelationPass } from \"./pixelation.js\";\r\nexport { RenderPass } from \"./render.js\";\r\nexport { SavePass } from \"./save.js\";\r\nexport { ShaderPass } from \"./shader.js\";\r\nexport { ShockWavePass } from \"./shock-wave.js\";\r\nexport { SMAAPass } from \"./smaa.js\";\r\nexport { TexturePass } from \"./texture.js\";\r\nexport { ToneMappingPass } from \"./tone-mapping.js\";\r\n" }, { - "__docId__": 243, + "__docId__": 245, "kind": "file", "static": true, "variation": null, @@ -6521,7 +6555,7 @@ "content": "import { Pass } from \"./pass.js\";\r\n\r\n/**\r\n * A mask pass.\r\n */\r\n\r\nexport class MaskPass extends Pass {\r\n\r\n\t/**\r\n\t * Constructs a new mask pass.\r\n\t *\r\n\t * @param {Scene} scene - The scene to render.\r\n\t * @param {Camera} camera - The camera to use.\r\n\t */\r\n\r\n\tconstructor(scene, camera) {\r\n\r\n\t\tsuper(scene, camera, null);\r\n\r\n\t\t/**\r\n\t\t * The name of this pass.\r\n\t\t */\r\n\r\n\t\tthis.name = \"MaskPass\";\r\n\r\n\t\t/**\r\n\t\t * Inverse flag.\r\n\t\t *\r\n\t\t * @type {Boolean}\r\n\t\t * @default false\r\n\t\t */\r\n\r\n\t\tthis.inverse = false;\r\n\r\n\t\t/**\r\n\t\t * Stencil buffer clear flag.\r\n\t\t *\r\n\t\t * @type {Boolean}\r\n\t\t * @default true\r\n\t\t */\r\n\r\n\t\tthis.clearStencil = true;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Creates a stencil bit mask.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {WebGLRenderTarget} readBuffer - The read buffer.\r\n\t * @param {WebGLRenderTarget} writeBuffer - The write buffer.\r\n\t */\r\n\r\n\trender(renderer, readBuffer, writeBuffer) {\r\n\r\n\t\tconst context = renderer.context;\r\n\t\tconst state = renderer.state;\r\n\r\n\t\tconst scene = this.scene;\r\n\t\tconst camera = this.camera;\r\n\r\n\t\tconst writeValue = this.inverse ? 0 : 1;\r\n\t\tconst clearValue = 1 - writeValue;\r\n\r\n\t\t// Don't update color or depth.\r\n\t\tstate.buffers.color.setMask(false);\r\n\t\tstate.buffers.depth.setMask(false);\r\n\r\n\t\t// Lock the buffers.\r\n\t\tstate.buffers.color.setLocked(true);\r\n\t\tstate.buffers.depth.setLocked(true);\r\n\r\n\t\t// Configure the stencil.\r\n\t\tstate.buffers.stencil.setTest(true);\r\n\t\tstate.buffers.stencil.setOp(context.REPLACE, context.REPLACE, context.REPLACE);\r\n\t\tstate.buffers.stencil.setFunc(context.ALWAYS, writeValue, 0xffffffff);\r\n\t\tstate.buffers.stencil.setClear(clearValue);\r\n\r\n\t\t// Clear the stencil.\r\n\t\tif(this.clearStencil) {\r\n\r\n\t\t\trenderer.setRenderTarget(readBuffer);\r\n\t\t\trenderer.clearStencil();\r\n\r\n\t\t\trenderer.setRenderTarget(writeBuffer);\r\n\t\t\trenderer.clearStencil();\r\n\r\n\t\t}\r\n\r\n\t\t// Draw the mask into both buffers.\r\n\t\trenderer.render(scene, camera, readBuffer);\r\n\t\trenderer.render(scene, camera, writeBuffer);\r\n\r\n\t\t// Unlock the buffers.\r\n\t\tstate.buffers.color.setLocked(false);\r\n\t\tstate.buffers.depth.setLocked(false);\r\n\r\n\t\t// Only render where the stencil is set to 1.\r\n\t\tstate.buffers.stencil.setFunc(context.EQUAL, 1, 0xffffffff);\r\n\t\tstate.buffers.stencil.setOp(context.KEEP, context.KEEP, context.KEEP);\r\n\r\n\t}\r\n\r\n}\r\n" }, { - "__docId__": 244, + "__docId__": 246, "kind": "class", "static": true, "variation": null, @@ -6540,7 +6574,7 @@ ] }, { - "__docId__": 245, + "__docId__": 247, "kind": "constructor", "static": false, "variation": null, @@ -6575,7 +6609,7 @@ "generator": false }, { - "__docId__": 246, + "__docId__": 248, "kind": "member", "static": false, "variation": null, @@ -6592,7 +6626,7 @@ } }, { - "__docId__": 247, + "__docId__": 249, "kind": "member", "static": false, "variation": null, @@ -6618,7 +6652,7 @@ } }, { - "__docId__": 248, + "__docId__": 250, "kind": "member", "static": false, "variation": null, @@ -6644,7 +6678,7 @@ } }, { - "__docId__": 249, + "__docId__": 251, "kind": "method", "static": false, "variation": null, @@ -6689,7 +6723,7 @@ "generator": false }, { - "__docId__": 250, + "__docId__": 252, "kind": "file", "static": true, "variation": null, @@ -6702,7 +6736,7 @@ "content": "import { Scene, Mesh, OrthographicCamera, PlaneBufferGeometry } from \"three\";\r\n\r\n/**\r\n * An abstract pass.\r\n *\r\n * Passes that do not rely on the depth buffer should explicitly disable the\r\n * depth test and depth write in their respective shader materials.\r\n *\r\n * This class implements a {@link Pass#dispose} method that frees memory on\r\n * demand.\r\n */\r\n\r\nexport class Pass {\r\n\r\n\t/**\r\n\t * Constructs a new pass.\r\n\t *\r\n\t * @param {Scene} [scene] - The scene to render.\r\n\t * @param {Camera} [camera] - The camera.\r\n\t * @param {Mesh} [quad] - A quad that fills the screen to render 2D filter effects. Set this to null, if you don't need it (see {@link RenderPass}).\r\n\t */\r\n\r\n\tconstructor(\r\n\t\tscene = new Scene(),\r\n\t\tcamera = new OrthographicCamera(-1, 1, 1, -1, 0, 1),\r\n\t\tquad = new Mesh(new PlaneBufferGeometry(2, 2), null)\r\n\t) {\r\n\r\n\t\t/**\r\n\t\t * The name of this pass.\r\n\t\t *\r\n\t\t * @type {String}\r\n\t\t */\r\n\r\n\t\tthis.name = \"Pass\";\r\n\r\n\t\t/**\r\n\t\t * The scene to render.\r\n\t\t *\r\n\t\t * @type {Scene}\r\n\t\t * @protected\r\n\t\t * @default new Scene()\r\n\t\t */\r\n\r\n\t\tthis.scene = scene;\r\n\r\n\t\t/**\r\n\t\t * The camera.\r\n\t\t *\r\n\t\t * @type {Camera}\r\n\t\t * @protected\r\n\t\t * @default new OrthographicCamera(-1, 1, 1, -1, 0, 1)\r\n\t\t */\r\n\r\n\t\tthis.camera = camera;\r\n\r\n\t\t/**\r\n\t\t * A quad mesh that fills the screen.\r\n\t\t *\r\n\t\t * Assign your shader material to this mesh!\r\n\t\t *\r\n\t\t * @type {Mesh}\r\n\t\t * @protected\r\n\t\t * @default new Mesh(new PlaneBufferGeometry(2, 2), null)\r\n\t\t * @example this.quad.material = this.myMaterial;\r\n\t\t */\r\n\r\n\t\tthis.quad = quad;\r\n\r\n\t\tif(this.quad !== null) {\r\n\r\n\t\t\tthis.quad.frustumCulled = false;\r\n\r\n\t\t\tif(this.scene !== null) {\r\n\r\n\t\t\t\tthis.scene.add(this.quad);\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Indicates whether the read and write buffers should be swapped after this\r\n\t\t * pass has finished rendering.\r\n\t\t *\r\n\t\t * Set this to true if this pass renders to the write buffer so that a\r\n\t\t * following pass can find the result in the read buffer.\r\n\t\t *\r\n\t\t * @type {Boolean}\r\n\t\t * @default false\r\n\t\t */\r\n\r\n\t\tthis.needsSwap = false;\r\n\r\n\t\t/**\r\n\t\t * Enabled flag.\r\n\t\t *\r\n\t\t * @type {Boolean}\r\n\t\t * @default true\r\n\t\t */\r\n\r\n\t\tthis.enabled = true;\r\n\r\n\t\t/**\r\n\t\t * Render to screen flag.\r\n\t\t *\r\n\t\t * @type {Boolean}\r\n\t\t * @default false\r\n\t\t */\r\n\r\n\t\tthis.renderToScreen = false;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Renders the effect.\r\n\t *\r\n\t * This is an abstract method that must be overridden.\r\n\t *\r\n\t * @abstract\r\n\t * @throws {Error} An error is thrown if the method is not overridden.\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {WebGLRenderTarget} readBuffer - A read buffer. Contains the result of the previous pass.\r\n\t * @param {WebGLRenderTarget} writeBuffer - A write buffer. Normally used as the render target when the read buffer is used as input.\r\n\t * @param {Number} [delta] - The delta time.\r\n\t * @param {Boolean} [maskActive] - Indicates whether a stencil test mask is active or not.\r\n\t */\r\n\r\n\trender(renderer, readBuffer, writeBuffer, delta, maskActive) {\r\n\r\n\t\tthrow new Error(\"Render method not implemented!\");\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Updates this pass with the renderer's size.\r\n\t *\r\n\t * You may override this method in case you want to be informed about the main\r\n\t * render size.\r\n\t *\r\n\t * The {@link EffectComposer} calls this method before this pass is\r\n\t * initialised and every time its own size is updated.\r\n\t *\r\n\t * @param {Number} width - The renderer's width.\r\n\t * @param {Number} height - The renderer's height.\r\n\t * @example this.myRenderTarget.setSize(width, height);\r\n\t */\r\n\r\n\tsetSize(width, height) {}\r\n\r\n\t/**\r\n\t * Performs initialisation tasks.\r\n\t *\r\n\t * By overriding this method you gain access to the renderer. You'll also be\r\n\t * able to configure your custom render targets to use the appropriate format\r\n\t * (RGB or RGBA).\r\n\t *\r\n\t * The provided renderer can be used to warm up special off-screen render\r\n\t * targets by performing a preliminary render operation.\r\n\t *\r\n\t * The {@link EffectComposer} calls this method when this pass is added to its\r\n\t * queue.\r\n\t *\r\n\t * @method initialise\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {Boolean} alpha - Whether the renderer uses the alpha channel or not.\r\n\t * @example if(!alpha) { this.myRenderTarget.texture.format = RGBFormat; }\r\n\t */\r\n\r\n\tinitialise(renderer, alpha) {}\r\n\r\n\t/**\r\n\t * Performs a shallow search for properties that define a dispose method and\r\n\t * deletes them. The pass will be inoperative after this method was called!\r\n\t *\r\n\t * Disposable objects:\r\n\t * - render targets\r\n\t * - materials\r\n\t * - textures\r\n\t *\r\n\t * The {@link EffectComposer} calls this method when it is being destroyed.\r\n\t * You may, however, use it independently to free memory when you are certain\r\n\t * that you don't need this pass anymore.\r\n\t */\r\n\r\n\tdispose() {\r\n\r\n\t\tconst keys = Object.keys(this);\r\n\r\n\t\tlet key;\r\n\r\n\t\tfor(key of keys) {\r\n\r\n\t\t\tif(this[key] !== null && typeof this[key].dispose === \"function\") {\r\n\r\n\t\t\t\tthis[key].dispose();\r\n\t\t\t\tthis[key] = null;\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}\r\n\r\n}\r\n" }, { - "__docId__": 251, + "__docId__": 253, "kind": "class", "static": true, "variation": null, @@ -6718,7 +6752,7 @@ "interface": false }, { - "__docId__": 252, + "__docId__": 254, "kind": "constructor", "static": false, "variation": null, @@ -6763,7 +6797,7 @@ "generator": false }, { - "__docId__": 253, + "__docId__": 255, "kind": "member", "static": false, "variation": null, @@ -6783,7 +6817,7 @@ } }, { - "__docId__": 254, + "__docId__": 256, "kind": "member", "static": false, "variation": null, @@ -6809,7 +6843,7 @@ } }, { - "__docId__": 255, + "__docId__": 257, "kind": "member", "static": false, "variation": null, @@ -6835,7 +6869,7 @@ } }, { - "__docId__": 256, + "__docId__": 258, "kind": "member", "static": false, "variation": null, @@ -6864,7 +6898,7 @@ } }, { - "__docId__": 257, + "__docId__": 259, "kind": "member", "static": false, "variation": null, @@ -6890,7 +6924,7 @@ } }, { - "__docId__": 258, + "__docId__": 260, "kind": "member", "static": false, "variation": null, @@ -6916,7 +6950,7 @@ } }, { - "__docId__": 259, + "__docId__": 261, "kind": "member", "static": false, "variation": null, @@ -6942,7 +6976,7 @@ } }, { - "__docId__": 260, + "__docId__": 262, "kind": "method", "static": false, "variation": null, @@ -7016,7 +7050,7 @@ "generator": false }, { - "__docId__": 261, + "__docId__": 263, "kind": "method", "static": false, "variation": null, @@ -7054,7 +7088,7 @@ "generator": false }, { - "__docId__": 262, + "__docId__": 264, "kind": "method", "static": false, "variation": null, @@ -7098,7 +7132,7 @@ "generator": false }, { - "__docId__": 263, + "__docId__": 265, "kind": "method", "static": false, "variation": null, @@ -7112,7 +7146,7 @@ "generator": false }, { - "__docId__": 264, + "__docId__": 266, "kind": "file", "static": true, "variation": null, @@ -7125,7 +7159,7 @@ "content": "import { PixelationMaterial } from \"../materials\";\r\nimport { Pass } from \"./pass.js\";\r\n\r\n/**\r\n * A pixelation pass.\r\n */\r\n\r\nexport class PixelationPass extends Pass {\r\n\r\n\t/**\r\n\t * Constructs a new pixelation pass.\r\n\t *\r\n\t * @param {Number} [granularity=30.0] - The intensity of the effect.\r\n\t */\r\n\r\n\tconstructor(granularity = 30.0) {\r\n\r\n\t\tsuper();\r\n\r\n\t\t/**\r\n\t\t * The name of this pass.\r\n\t\t */\r\n\r\n\t\tthis.name = \"PixelationPass\";\r\n\r\n\t\t/**\r\n\t\t * This pass renders to the write buffer.\r\n\t\t */\r\n\r\n\t\tthis.needsSwap = true;\r\n\r\n\t\t/**\r\n\t\t * A pixelation shader material.\r\n\t\t *\r\n\t\t * @type {PixelationMaterial}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.pixelationMaterial = new PixelationMaterial();\r\n\r\n\t\tthis.granularity = granularity;\r\n\r\n\t\tthis.quad.material = this.pixelationMaterial;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * The pixel granularity.\r\n\t *\r\n\t * @type {Number}\r\n\t * @default 30.0\r\n\t */\r\n\r\n\tget granularity() { return this.pixelationMaterial.granularity; }\r\n\r\n\t/**\r\n\t * A higher value yields coarser visuals.\r\n\t *\r\n\t * @type {Number}\r\n\t */\r\n\r\n\tset granularity(x) {\r\n\r\n\t\tif(typeof x === \"number\") {\r\n\r\n\t\t\tx = Math.floor(x);\r\n\r\n\t\t\tif(x % 2 > 0) {\r\n\r\n\t\t\t\tx += 1;\r\n\r\n\t\t\t}\r\n\r\n\t\t\tthis.pixelationMaterial.granularity = x;\r\n\r\n\t\t}\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Renders the effect.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {WebGLRenderTarget} readBuffer - The read buffer.\r\n\t * @param {WebGLRenderTarget} writeBuffer - The write buffer.\r\n\t */\r\n\r\n\trender(renderer, readBuffer, writeBuffer) {\r\n\r\n\t\tthis.pixelationMaterial.uniforms.tDiffuse.value = readBuffer.texture;\r\n\r\n\t\trenderer.render(this.scene, this.camera, this.renderToScreen ? null : writeBuffer);\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Updates this pass with the renderer's size.\r\n\t *\r\n\t * @param {Number} width - The width.\r\n\t * @param {Number} height - The height.\r\n\t */\r\n\r\n\tsetSize(width, height) {\r\n\r\n\t\tthis.pixelationMaterial.setResolution(width, height);\r\n\r\n\t}\r\n\r\n}\r\n" }, { - "__docId__": 265, + "__docId__": 267, "kind": "class", "static": true, "variation": null, @@ -7144,7 +7178,7 @@ ] }, { - "__docId__": 266, + "__docId__": 268, "kind": "constructor", "static": false, "variation": null, @@ -7171,7 +7205,7 @@ "generator": false }, { - "__docId__": 267, + "__docId__": 269, "kind": "member", "static": false, "variation": null, @@ -7188,7 +7222,7 @@ } }, { - "__docId__": 268, + "__docId__": 270, "kind": "member", "static": false, "variation": null, @@ -7205,7 +7239,7 @@ } }, { - "__docId__": 269, + "__docId__": 271, "kind": "member", "static": false, "variation": null, @@ -7225,7 +7259,7 @@ } }, { - "__docId__": 270, + "__docId__": 272, "kind": "member", "static": false, "variation": null, @@ -7243,7 +7277,7 @@ } }, { - "__docId__": 271, + "__docId__": 273, "kind": "get", "static": false, "variation": null, @@ -7270,7 +7304,7 @@ "generator": false }, { - "__docId__": 272, + "__docId__": 274, "kind": "set", "static": false, "variation": null, @@ -7291,7 +7325,7 @@ "generator": false }, { - "__docId__": 273, + "__docId__": 275, "kind": "method", "static": false, "variation": null, @@ -7336,7 +7370,7 @@ "generator": false }, { - "__docId__": 274, + "__docId__": 276, "kind": "method", "static": false, "variation": null, @@ -7371,7 +7405,7 @@ "generator": false }, { - "__docId__": 275, + "__docId__": 277, "kind": "file", "static": true, "variation": null, @@ -7384,7 +7418,7 @@ "content": "import { ClearPass } from \"./clear.js\";\r\nimport { Pass } from \"./pass.js\";\r\n\r\n/**\r\n * A pass that renders a given scene directly on screen or into the read buffer\r\n * for further processing.\r\n */\r\n\r\nexport class RenderPass extends Pass {\r\n\r\n\t/**\r\n\t * Constructs a new render pass.\r\n\t *\r\n\t * @param {Scene} scene - The scene to render.\r\n\t * @param {Camera} camera - The camera to use to render the scene.\r\n\t * @param {Object} [options] - Additional options.\r\n\t * @param {Material} [options.overrideMaterial=null] - An override material for the scene.\r\n\t * @param {Color} [options.clearColor=null] - An override clear color.\r\n\t * @param {Number} [options.clearAlpha=1.0] - An override clear alpha.\r\n\t * @param {Boolean} [options.clearDepth=false] - Whether depth should be cleared explicitly.\r\n\t * @param {Boolean} [options.clear=true] - Whether all buffers should be cleared.\r\n\t */\r\n\r\n\tconstructor(scene, camera, options = {}) {\r\n\r\n\t\tsuper(scene, camera, null);\r\n\r\n\t\t/**\r\n\t\t * The name of this pass.\r\n\t\t */\r\n\r\n\t\tthis.name = \"RenderPass\";\r\n\r\n\t\t/**\r\n\t\t * A clear pass.\r\n\t\t *\r\n\t\t * @type {ClearPass}\r\n\t\t */\r\n\r\n\t\tthis.clearPass = new ClearPass(options);\r\n\r\n\t\t/**\r\n\t\t * An override material.\r\n\t\t *\r\n\t\t * @type {Material}\r\n\t\t * @default null\r\n\t\t */\r\n\r\n\t\tthis.overrideMaterial = (options.overrideMaterial !== undefined) ? options.overrideMaterial : null;\r\n\r\n\t\t/**\r\n\t\t * Indicates whether the depth buffer should be cleared explicitly.\r\n\t\t *\r\n\t\t * @type {Boolean}\r\n\t\t * @default false\r\n\t\t */\r\n\r\n\t\tthis.clearDepth = (options.clearDepth !== undefined) ? options.clearDepth : false;\r\n\r\n\t\t/**\r\n\t\t * Indicates whether the color, depth and stencil buffers should be cleared.\r\n\t\t *\r\n\t\t * Even with clear set to true you can prevent specific buffers from being\r\n\t\t * cleared by setting either the autoClearColor, autoClearStencil or\r\n\t\t * autoClearDepth properties of the renderer to false.\r\n\t\t *\r\n\t\t * @type {Boolean}\r\n\t\t * @default true\r\n\t\t */\r\n\r\n\t\tthis.clear = (options.clear !== undefined) ? options.clear : true;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Renders the scene.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {WebGLRenderTarget} readBuffer - The read buffer.\r\n\t */\r\n\r\n\trender(renderer, readBuffer) {\r\n\r\n\t\tconst scene = this.scene;\r\n\t\tconst target = this.renderToScreen ? null : readBuffer;\r\n\r\n\t\tif(this.clear) {\r\n\r\n\t\t\tthis.clearPass.render(renderer, target);\r\n\r\n\t\t} else if(this.clearDepth) {\r\n\r\n\t\t\trenderer.setRenderTarget(target);\r\n\t\t\trenderer.clearDepth();\r\n\r\n\t\t}\r\n\r\n\t\tscene.overrideMaterial = this.overrideMaterial;\r\n\t\trenderer.render(scene, this.camera, target);\r\n\t\tscene.overrideMaterial = null;\r\n\r\n\t}\r\n\r\n}\r\n" }, { - "__docId__": 276, + "__docId__": 278, "kind": "class", "static": true, "variation": null, @@ -7403,7 +7437,7 @@ ] }, { - "__docId__": 277, + "__docId__": 279, "kind": "constructor", "static": false, "variation": null, @@ -7508,7 +7542,7 @@ "generator": false }, { - "__docId__": 278, + "__docId__": 280, "kind": "member", "static": false, "variation": null, @@ -7525,7 +7559,7 @@ } }, { - "__docId__": 279, + "__docId__": 281, "kind": "member", "static": false, "variation": null, @@ -7545,7 +7579,7 @@ } }, { - "__docId__": 280, + "__docId__": 282, "kind": "member", "static": false, "variation": null, @@ -7571,7 +7605,7 @@ } }, { - "__docId__": 281, + "__docId__": 283, "kind": "member", "static": false, "variation": null, @@ -7597,7 +7631,7 @@ } }, { - "__docId__": 282, + "__docId__": 284, "kind": "member", "static": false, "variation": null, @@ -7623,7 +7657,7 @@ } }, { - "__docId__": 283, + "__docId__": 285, "kind": "method", "static": false, "variation": null, @@ -7658,7 +7692,7 @@ "generator": false }, { - "__docId__": 284, + "__docId__": 286, "kind": "file", "static": true, "variation": null, @@ -7671,7 +7705,7 @@ "content": "import { LinearFilter, RGBFormat, WebGLRenderTarget } from \"three\";\r\nimport { CopyMaterial } from \"../materials\";\r\nimport { Pass } from \"./pass.js\";\r\n\r\n/**\r\n * A pass that renders the result from a previous pass to another render target.\r\n */\r\n\r\nexport class SavePass extends Pass {\r\n\r\n\t/**\r\n\t * Constructs a new save pass.\r\n\t *\r\n\t * @param {WebGLRenderTarget} [renderTarget] - The render target to use for saving the read buffer.\r\n\t * @param {Boolean} [resize=true] - Whether the render target should adjust to the size of the read/write buffer.\r\n\t */\r\n\r\n\tconstructor(renderTarget, resize = true) {\r\n\r\n\t\tsuper();\r\n\r\n\t\t/**\r\n\t\t * The name of this pass.\r\n\t\t */\r\n\r\n\t\tthis.name = \"SavePass\";\r\n\r\n\t\t/**\r\n\t\t * Copy shader material.\r\n\t\t *\r\n\t\t * @type {CopyMaterial}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.material = new CopyMaterial();\r\n\r\n\t\tthis.quad.material = this.material;\r\n\r\n\t\t/**\r\n\t\t * The render target.\r\n\t\t *\r\n\t\t * @type {WebGLRenderTarget}\r\n\t\t */\r\n\r\n\t\tthis.renderTarget = (renderTarget !== undefined) ? renderTarget : new WebGLRenderTarget(1, 1, {\r\n\t\t\tminFilter: LinearFilter,\r\n\t\t\tmagFilter: LinearFilter,\r\n\t\t\tstencilBuffer: false,\r\n\t\t\tdepthBuffer: false\r\n\t\t});\r\n\r\n\t\tthis.renderTarget.texture.name = \"Save.Target\";\r\n\t\tthis.renderTarget.texture.generateMipmaps = false;\r\n\r\n\t\t/**\r\n\t\t * Indicates whether the render target should be resized when the size of\r\n\t\t * the composer's read/write buffer changes.\r\n\t\t *\r\n\t\t * @type {Boolean}\r\n\t\t * @default true\r\n\t\t */\r\n\r\n\t\tthis.resize = resize;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Saves the read buffer.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {WebGLRenderTarget} readBuffer - The read buffer.\r\n\t */\r\n\r\n\trender(renderer, readBuffer) {\r\n\r\n\t\tthis.material.uniforms.tDiffuse.value = readBuffer.texture;\r\n\r\n\t\trenderer.render(this.scene, this.camera, this.renderTarget);\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Adjusts the format of the render target.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {Boolean} alpha - Whether the renderer uses the alpha channel or not.\r\n\t */\r\n\r\n\tinitialise(renderer, alpha) {\r\n\r\n\t\tif(!alpha) {\r\n\r\n\t\t\tthis.renderTarget.texture.format = RGBFormat;\r\n\r\n\t\t}\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Updates this pass with the renderer's size.\r\n\t *\r\n\t * @param {Number} width - The width.\r\n\t * @param {Number} height - The height.\r\n\t */\r\n\r\n\tsetSize(width, height) {\r\n\r\n\t\tif(this.resize) {\r\n\r\n\t\t\twidth = Math.max(1, width);\r\n\t\t\theight = Math.max(1, height);\r\n\r\n\t\t\tthis.renderTarget.setSize(width, height);\r\n\r\n\t\t}\r\n\r\n\t}\r\n\r\n}\r\n" }, { - "__docId__": 285, + "__docId__": 287, "kind": "class", "static": true, "variation": null, @@ -7690,7 +7724,7 @@ ] }, { - "__docId__": 286, + "__docId__": 288, "kind": "constructor", "static": false, "variation": null, @@ -7727,7 +7761,7 @@ "generator": false }, { - "__docId__": 287, + "__docId__": 289, "kind": "member", "static": false, "variation": null, @@ -7744,7 +7778,7 @@ } }, { - "__docId__": 288, + "__docId__": 290, "kind": "member", "static": false, "variation": null, @@ -7764,7 +7798,7 @@ } }, { - "__docId__": 289, + "__docId__": 291, "kind": "member", "static": false, "variation": null, @@ -7784,7 +7818,7 @@ } }, { - "__docId__": 290, + "__docId__": 292, "kind": "member", "static": false, "variation": null, @@ -7810,7 +7844,7 @@ } }, { - "__docId__": 291, + "__docId__": 293, "kind": "method", "static": false, "variation": null, @@ -7845,7 +7879,7 @@ "generator": false }, { - "__docId__": 292, + "__docId__": 294, "kind": "method", "static": false, "variation": null, @@ -7880,7 +7914,7 @@ "generator": false }, { - "__docId__": 293, + "__docId__": 295, "kind": "method", "static": false, "variation": null, @@ -7915,7 +7949,7 @@ "generator": false }, { - "__docId__": 294, + "__docId__": 296, "kind": "file", "static": true, "variation": null, @@ -7928,7 +7962,7 @@ "content": "import { Pass } from \"./pass.js\";\r\n\r\n/**\r\n * A shader pass.\r\n *\r\n * Used to render any shader material as a 2D filter.\r\n */\r\n\r\nexport class ShaderPass extends Pass {\r\n\r\n\t/**\r\n\t * Constructs a new shader pass.\r\n\t *\r\n\t * @param {ShaderMaterial} material - The shader material to use.\r\n\t * @param {String} [textureID=\"tDiffuse\"] - The texture uniform identifier.\r\n\t */\r\n\r\n\tconstructor(material, textureID = \"tDiffuse\") {\r\n\r\n\t\tsuper();\r\n\r\n\t\t/**\r\n\t\t * The name of this pass.\r\n\t\t */\r\n\r\n\t\tthis.name = \"ShaderPass\";\r\n\r\n\t\t/**\r\n\t\t * This pass renders to the write buffer.\r\n\t\t */\r\n\r\n\t\tthis.needsSwap = true;\r\n\r\n\t\t/**\r\n\t\t * The shader material to use for rendering.\r\n\t\t *\r\n\t\t * @type {ShaderMaterial}\r\n\t\t */\r\n\r\n\t\tthis.material = material;\r\n\r\n\t\tthis.quad.material = this.material;\r\n\r\n\t\t/**\r\n\t\t * The name of the color sampler uniform of the given material.\r\n\t\t *\r\n\t\t * @type {String}\r\n\t\t * @default \"tDiffuse\"\r\n\t\t */\r\n\r\n\t\tthis.textureID = textureID;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Renders the effect.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {WebGLRenderTarget} readBuffer - The read buffer.\r\n\t * @param {WebGLRenderTarget} writeBuffer - The write buffer.\r\n\t */\r\n\r\n\trender(renderer, readBuffer, writeBuffer) {\r\n\r\n\t\tif(this.material.uniforms[this.textureID] !== undefined) {\r\n\r\n\t\t\tthis.material.uniforms[this.textureID].value = readBuffer.texture;\r\n\r\n\t\t}\r\n\r\n\t\trenderer.render(this.scene, this.camera, this.renderToScreen ? null : writeBuffer);\r\n\r\n\t}\r\n\r\n}\r\n" }, { - "__docId__": 295, + "__docId__": 297, "kind": "class", "static": true, "variation": null, @@ -7947,7 +7981,7 @@ ] }, { - "__docId__": 296, + "__docId__": 298, "kind": "constructor", "static": false, "variation": null, @@ -7984,7 +8018,7 @@ "generator": false }, { - "__docId__": 297, + "__docId__": 299, "kind": "member", "static": false, "variation": null, @@ -8001,7 +8035,7 @@ } }, { - "__docId__": 298, + "__docId__": 300, "kind": "member", "static": false, "variation": null, @@ -8018,7 +8052,7 @@ } }, { - "__docId__": 299, + "__docId__": 301, "kind": "member", "static": false, "variation": null, @@ -8038,7 +8072,7 @@ } }, { - "__docId__": 300, + "__docId__": 302, "kind": "member", "static": false, "variation": null, @@ -8064,7 +8098,7 @@ } }, { - "__docId__": 301, + "__docId__": 303, "kind": "method", "static": false, "variation": null, @@ -8109,7 +8143,7 @@ "generator": false }, { - "__docId__": 302, + "__docId__": 304, "kind": "file", "static": true, "variation": null, @@ -8122,7 +8156,7 @@ "content": "import { Vector3 } from \"three\";\r\nimport { CopyMaterial, ShockWaveMaterial } from \"../materials\";\r\nimport { Pass } from \"./pass.js\";\r\n\r\n/**\r\n * Half PI.\r\n *\r\n * @type {Number}\r\n * @private\r\n * @static\r\n * @final\r\n */\r\n\r\nconst HALF_PI = Math.PI * 0.5;\r\n\r\n/**\r\n * A vector.\r\n *\r\n * @type {Vector3}\r\n * @private\r\n * @static\r\n * @final\r\n */\r\n\r\nconst v = new Vector3();\r\n\r\n/**\r\n * A vector.\r\n *\r\n * @type {Vector3}\r\n * @private\r\n * @static\r\n * @final\r\n */\r\n\r\nconst ab = new Vector3();\r\n\r\n/**\r\n * A shock wave pass.\r\n */\r\n\r\nexport class ShockWavePass extends Pass {\r\n\r\n\t/**\r\n\t * Constructs a new shock wave pass.\r\n\t *\r\n\t * @param {Camera} camera - The main camera.\r\n\t * @param {Vector3} [epicenter] - The world position of the shock wave epicenter.\r\n\t * @param {Object} [options] - The options.\r\n\t * @param {Number} [options.speed=1.0] - The animation speed.\r\n\t * @param {Number} [options.maxRadius=1.0] - The extent of the shock wave.\r\n\t * @param {Number} [options.waveSize=0.2] - The wave size.\r\n\t * @param {Number} [options.amplitude=0.05] - The distortion amplitude.\r\n\t */\r\n\r\n\tconstructor(camera, epicenter = new Vector3(), options = {}) {\r\n\r\n\t\tsuper();\r\n\r\n\t\t/**\r\n\t\t * The name of this pass.\r\n\t\t */\r\n\r\n\t\tthis.name = \"ShockWavePass\";\r\n\r\n\t\t/**\r\n\t\t * This pass renders to the write buffer.\r\n\t\t */\r\n\r\n\t\tthis.needsSwap = true;\r\n\r\n\t\t/**\r\n\t\t * The main camera.\r\n\t\t *\r\n\t\t * @type {Object3D}\r\n\t\t */\r\n\r\n\t\tthis.mainCamera = camera;\r\n\r\n\t\t/**\r\n\t\t * The epicenter.\r\n\t\t *\r\n\t\t * @type {Vector3}\r\n\t\t * @example shockWavePass.epicenter = myMesh.position;\r\n\t\t */\r\n\r\n\t\tthis.epicenter = epicenter;\r\n\r\n\t\t/**\r\n\t\t * The object position in screen space.\r\n\t\t *\r\n\t\t * @type {Vector3}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.screenPosition = new Vector3();\r\n\r\n\t\t/**\r\n\t\t * The speed of the shock wave animation.\r\n\t\t *\r\n\t\t * @type {Number}\r\n\t\t * @default 2.0\r\n\t\t */\r\n\r\n\t\tthis.speed = (options.speed !== undefined) ? options.speed : 2.0;\r\n\r\n\t\t/**\r\n\t\t * A time accumulator.\r\n\t\t *\r\n\t\t * @type {Number}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.time = 0.0;\r\n\r\n\t\t/**\r\n\t\t * Indicates whether the shock wave animation is active.\r\n\t\t *\r\n\t\t * @type {Boolean}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.active = false;\r\n\r\n\t\t/**\r\n\t\t * A shock wave shader material.\r\n\t\t *\r\n\t\t * @type {ShockWaveMaterial}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.shockWaveMaterial = new ShockWaveMaterial(options);\r\n\r\n\t\tthis.shockWaveMaterial.uniforms.center.value = this.screenPosition;\r\n\r\n\t\t/**\r\n\t\t * A copy shader material.\r\n\t\t *\r\n\t\t * @type {CopyMaterial}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.copyMaterial = new CopyMaterial();\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Emits the shock wave.\r\n\t */\r\n\r\n\texplode() {\r\n\r\n\t\tthis.time = 0.0;\r\n\t\tthis.active = true;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Renders the effect.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {WebGLRenderTarget} readBuffer - The read buffer.\r\n\t * @param {WebGLRenderTarget} writeBuffer - The write buffer.\r\n\t * @param {Number} delta - The render delta time.\r\n\t */\r\n\r\n\trender(renderer, readBuffer, writeBuffer, delta) {\r\n\r\n\t\tconst epicenter = this.epicenter;\r\n\t\tconst mainCamera = this.mainCamera;\r\n\t\tconst screenPosition = this.screenPosition;\r\n\r\n\t\tconst shockWaveMaterial = this.shockWaveMaterial;\r\n\t\tconst uniforms = shockWaveMaterial.uniforms;\r\n\t\tconst center = uniforms.center;\r\n\t\tconst radius = uniforms.radius;\r\n\t\tconst maxRadius = uniforms.maxRadius;\r\n\t\tconst waveSize = uniforms.waveSize;\r\n\r\n\t\tthis.copyMaterial.uniforms.tDiffuse.value = readBuffer.texture;\r\n\t\tthis.quad.material = this.copyMaterial;\r\n\r\n\t\tif(this.active) {\r\n\r\n\t\t\t// Calculate direction vectors.\r\n\t\t\tmainCamera.getWorldDirection(v);\r\n\t\t\tab.copy(mainCamera.position).sub(epicenter);\r\n\r\n\t\t\t// Don't render the effect if the object is behind the camera.\r\n\t\t\tif(v.angleTo(ab) > HALF_PI) {\r\n\r\n\t\t\t\t// Scale the effect based on distance to the object.\r\n\t\t\t\tuniforms.cameraDistance.value = mainCamera.position.distanceTo(epicenter);\r\n\r\n\t\t\t\t// Calculate the screen position of the epicenter.\r\n\t\t\t\tscreenPosition.copy(epicenter).project(mainCamera);\r\n\t\t\t\tcenter.value.x = (screenPosition.x + 1.0) * 0.5;\r\n\t\t\t\tcenter.value.y = (screenPosition.y + 1.0) * 0.5;\r\n\r\n\t\t\t\tuniforms.tDiffuse.value = readBuffer.texture;\r\n\t\t\t\tthis.quad.material = shockWaveMaterial;\r\n\r\n\t\t\t}\r\n\r\n\t\t\t// Update the shock wave radius based on time.\r\n\t\t\tthis.time += delta;\r\n\t\t\tradius.value = this.time * this.speed - waveSize.value;\r\n\r\n\t\t\tif(radius.value >= (maxRadius.value + waveSize.value) * 2) {\r\n\r\n\t\t\t\tthis.active = false;\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\trenderer.render(this.scene, this.camera, this.renderToScreen ? null : writeBuffer);\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Updates this pass with the renderer's size.\r\n\t *\r\n\t * @param {Number} width - The width.\r\n\t * @param {Number} height - The height.\r\n\t */\r\n\r\n\tsetSize(width, height) {\r\n\r\n\t\tthis.shockWaveMaterial.uniforms.aspect.value = width / height;\r\n\r\n\t}\r\n\r\n}\r\n" }, { - "__docId__": 303, + "__docId__": 305, "kind": "variable", "static": true, "variation": null, @@ -8155,7 +8189,7 @@ } }, { - "__docId__": 304, + "__docId__": 306, "kind": "variable", "static": true, "variation": null, @@ -8188,7 +8222,7 @@ } }, { - "__docId__": 305, + "__docId__": 307, "kind": "variable", "static": true, "variation": null, @@ -8221,7 +8255,7 @@ } }, { - "__docId__": 306, + "__docId__": 308, "kind": "class", "static": true, "variation": null, @@ -8240,7 +8274,7 @@ ] }, { - "__docId__": 307, + "__docId__": 309, "kind": "constructor", "static": false, "variation": null, @@ -8333,7 +8367,7 @@ "generator": false }, { - "__docId__": 308, + "__docId__": 310, "kind": "member", "static": false, "variation": null, @@ -8350,7 +8384,7 @@ } }, { - "__docId__": 309, + "__docId__": 311, "kind": "member", "static": false, "variation": null, @@ -8367,7 +8401,7 @@ } }, { - "__docId__": 310, + "__docId__": 312, "kind": "member", "static": false, "variation": null, @@ -8387,7 +8421,7 @@ } }, { - "__docId__": 311, + "__docId__": 313, "kind": "member", "static": false, "variation": null, @@ -8410,7 +8444,7 @@ } }, { - "__docId__": 312, + "__docId__": 314, "kind": "member", "static": false, "variation": null, @@ -8430,7 +8464,7 @@ } }, { - "__docId__": 313, + "__docId__": 315, "kind": "member", "static": false, "variation": null, @@ -8456,7 +8490,7 @@ } }, { - "__docId__": 314, + "__docId__": 316, "kind": "member", "static": false, "variation": null, @@ -8476,7 +8510,7 @@ } }, { - "__docId__": 315, + "__docId__": 317, "kind": "member", "static": false, "variation": null, @@ -8496,7 +8530,7 @@ } }, { - "__docId__": 316, + "__docId__": 318, "kind": "member", "static": false, "variation": null, @@ -8516,7 +8550,7 @@ } }, { - "__docId__": 317, + "__docId__": 319, "kind": "member", "static": false, "variation": null, @@ -8536,7 +8570,7 @@ } }, { - "__docId__": 318, + "__docId__": 320, "kind": "method", "static": false, "variation": null, @@ -8550,7 +8584,7 @@ "generator": false }, { - "__docId__": 319, + "__docId__": 321, "kind": "member", "static": false, "variation": null, @@ -8568,7 +8602,7 @@ } }, { - "__docId__": 320, + "__docId__": 322, "kind": "member", "static": false, "variation": null, @@ -8586,7 +8620,7 @@ } }, { - "__docId__": 321, + "__docId__": 323, "kind": "method", "static": false, "variation": null, @@ -8641,7 +8675,7 @@ "generator": false }, { - "__docId__": 322, + "__docId__": 324, "kind": "member", "static": false, "variation": null, @@ -8659,7 +8693,7 @@ } }, { - "__docId__": 323, + "__docId__": 325, "kind": "member", "static": false, "variation": null, @@ -8677,7 +8711,7 @@ } }, { - "__docId__": 324, + "__docId__": 326, "kind": "method", "static": false, "variation": null, @@ -8712,7 +8746,7 @@ "generator": false }, { - "__docId__": 325, + "__docId__": 327, "kind": "file", "static": true, "variation": null, @@ -8725,7 +8759,7 @@ "content": "import {\r\n\tLinearFilter,\r\n\tNearestFilter,\r\n\tRGBAFormat,\r\n\tRGBFormat,\r\n\tTexture,\r\n\tWebGLRenderTarget\r\n} from \"three\";\r\n\r\nimport { SMAABlendMaterial, SMAAColorEdgesMaterial, SMAAWeightsMaterial } from \"../materials\";\r\nimport { Pass } from \"./pass.js\";\r\n\r\n/**\r\n * Subpixel Morphological Antialiasing (SMAA) v2.8.\r\n *\r\n * Preset: SMAA 1x Medium (with color edge detection).\r\n * https://github.com/iryoku/smaa/releases/tag/v2.8\r\n */\r\n\r\nexport class SMAAPass extends Pass {\r\n\r\n\t/**\r\n\t * Constructs a new SMAA pass.\r\n\t *\r\n\t * @param {Image} Image - This pass requires an Image class to create internal textures. Provide window.Image in a browser environment.\r\n\t */\r\n\r\n\tconstructor(Image) {\r\n\r\n\t\tsuper();\r\n\r\n\t\t/**\r\n\t\t * The name of this pass.\r\n\t\t */\r\n\r\n\t\tthis.name = \"SMAAPass\";\r\n\r\n\t\t/**\r\n\t\t * This pass renders to the write buffer.\r\n\t\t */\r\n\r\n\t\tthis.needsSwap = true;\r\n\r\n\t\t/**\r\n\t\t * A render target for the color edge detection.\r\n\t\t *\r\n\t\t * @type {WebGLRenderTarget}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.renderTargetColorEdges = new WebGLRenderTarget(1, 1, {\r\n\t\t\tminFilter: LinearFilter,\r\n\t\t\tformat: RGBFormat,\r\n\t\t\tstencilBuffer: false,\r\n\t\t\tdepthBuffer: false\r\n\t\t});\r\n\r\n\t\tthis.renderTargetColorEdges.texture.name = \"SMAA.ColorEdges\";\r\n\t\tthis.renderTargetColorEdges.texture.generateMipmaps = false;\r\n\r\n\t\t/**\r\n\t\t * A render target for the SMAA weights.\r\n\t\t *\r\n\t\t * @type {WebGLRenderTarget}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.renderTargetWeights = this.renderTargetColorEdges.clone();\r\n\r\n\t\tthis.renderTargetWeights.texture.name = \"SMAA.Weights\";\r\n\t\tthis.renderTargetWeights.texture.format = RGBAFormat;\r\n\r\n\t\t/**\r\n\t\t * SMAA color edge detection shader material.\r\n\t\t *\r\n\t\t * @type {SMAAColorEdgesMaterial}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.colorEdgesMaterial = new SMAAColorEdgesMaterial();\r\n\r\n\t\t/**\r\n\t\t * SMAA weights shader material.\r\n\t\t *\r\n\t\t * @type {SMAAWeightsMaterial}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.weightsMaterial = new SMAAWeightsMaterial();\r\n\r\n\t\tconst areaImage = new Image();\r\n\t\tareaImage.src = this.weightsMaterial.areaImage;\r\n\r\n\t\tconst areaTexture = new Texture();\r\n\t\tareaTexture.image = areaImage;\r\n\t\tareaTexture.name = \"SMAA.Area\";\r\n\t\tareaTexture.minFilter = LinearFilter;\r\n\t\tareaTexture.format = RGBFormat;\r\n\t\tareaTexture.generateMipmaps = false;\r\n\t\tareaTexture.needsUpdate = true;\r\n\t\tareaTexture.flipY = false;\r\n\r\n\t\tconst searchImage = new Image();\r\n\t\tsearchImage.src = this.weightsMaterial.searchImage;\r\n\r\n\t\tconst searchTexture = new Texture();\r\n\t\tsearchTexture.image = searchImage;\r\n\t\tsearchTexture.name = \"SMAA.Search\";\r\n\t\tsearchTexture.magFilter = NearestFilter;\r\n\t\tsearchTexture.minFilter = NearestFilter;\r\n\t\tsearchTexture.generateMipmaps = false;\r\n\t\tsearchTexture.needsUpdate = true;\r\n\t\tsearchTexture.flipY = false;\r\n\r\n\t\tthis.weightsMaterial.uniforms.tDiffuse.value = this.renderTargetColorEdges.texture;\r\n\t\tthis.weightsMaterial.uniforms.tArea.value = areaTexture;\r\n\t\tthis.weightsMaterial.uniforms.tSearch.value = searchTexture;\r\n\r\n\t\t/**\r\n\t\t * SMAA blend shader material.\r\n\t\t *\r\n\t\t * @type {SMAABlendMaterial}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.blendMaterial = new SMAABlendMaterial();\r\n\r\n\t\tthis.blendMaterial.uniforms.tWeights.value = this.renderTargetWeights.texture;\r\n\r\n\t\tthis.quad.material = this.blendMaterial;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Antialiases the scene.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {WebGLRenderTarget} readBuffer - The read buffer.\r\n\t * @param {WebGLRenderTarget} writeBuffer - The write buffer.\r\n\t */\r\n\r\n\trender(renderer, readBuffer, writeBuffer) {\r\n\r\n\t\t// Detect color edges.\r\n\t\tthis.quad.material = this.colorEdgesMaterial;\r\n\t\tthis.colorEdgesMaterial.uniforms.tDiffuse.value = readBuffer.texture;\r\n\t\trenderer.render(this.scene, this.camera, this.renderTargetColorEdges, true);\r\n\r\n\t\t// Compute edge weights.\r\n\t\tthis.quad.material = this.weightsMaterial;\r\n\t\trenderer.render(this.scene, this.camera, this.renderTargetWeights, false);\r\n\r\n\t\t// Apply the antialiasing filter to the colors.\r\n\t\tthis.quad.material = this.blendMaterial;\r\n\t\tthis.blendMaterial.uniforms.tDiffuse.value = readBuffer.texture;\r\n\r\n\t\trenderer.render(this.scene, this.camera, this.renderToScreen ? null : writeBuffer);\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Updates this pass with the renderer's size.\r\n\t *\r\n\t * @param {Number} width - The width.\r\n\t * @param {Number} height - The height.\r\n\t */\r\n\r\n\tsetSize(width, height) {\r\n\r\n\t\tthis.renderTargetColorEdges.setSize(width, height);\r\n\t\tthis.renderTargetWeights.setSize(width, height);\r\n\r\n\t\tthis.colorEdgesMaterial.uniforms.texelSize.value.copy(\r\n\t\t\tthis.weightsMaterial.uniforms.texelSize.value.copy(\r\n\t\t\t\tthis.blendMaterial.uniforms.texelSize.value.set(\r\n\t\t\t\t\t1.0 / width, 1.0 / height\r\n\t\t)));\r\n\r\n\t}\r\n\r\n}\r\n" }, { - "__docId__": 326, + "__docId__": 328, "kind": "class", "static": true, "variation": null, @@ -8744,7 +8778,7 @@ ] }, { - "__docId__": 327, + "__docId__": 329, "kind": "constructor", "static": false, "variation": null, @@ -8769,7 +8803,7 @@ "generator": false }, { - "__docId__": 328, + "__docId__": 330, "kind": "member", "static": false, "variation": null, @@ -8786,7 +8820,7 @@ } }, { - "__docId__": 329, + "__docId__": 331, "kind": "member", "static": false, "variation": null, @@ -8803,7 +8837,7 @@ } }, { - "__docId__": 330, + "__docId__": 332, "kind": "member", "static": false, "variation": null, @@ -8823,7 +8857,7 @@ } }, { - "__docId__": 331, + "__docId__": 333, "kind": "member", "static": false, "variation": null, @@ -8843,7 +8877,7 @@ } }, { - "__docId__": 332, + "__docId__": 334, "kind": "member", "static": false, "variation": null, @@ -8863,7 +8897,7 @@ } }, { - "__docId__": 333, + "__docId__": 335, "kind": "member", "static": false, "variation": null, @@ -8883,7 +8917,7 @@ } }, { - "__docId__": 334, + "__docId__": 336, "kind": "member", "static": false, "variation": null, @@ -8903,7 +8937,7 @@ } }, { - "__docId__": 335, + "__docId__": 337, "kind": "method", "static": false, "variation": null, @@ -8948,7 +8982,7 @@ "generator": false }, { - "__docId__": 336, + "__docId__": 338, "kind": "method", "static": false, "variation": null, @@ -8983,7 +9017,7 @@ "generator": false }, { - "__docId__": 337, + "__docId__": 339, "kind": "file", "static": true, "variation": null, @@ -8996,7 +9030,7 @@ "content": "import { AdditiveBlending } from \"three\";\r\nimport { CopyMaterial } from \"../materials\";\r\nimport { Pass } from \"./pass.js\";\r\n\r\n/**\r\n * A pass that renders a given texture.\r\n */\r\n\r\nexport class TexturePass extends Pass {\r\n\r\n\t/**\r\n\t * Constructs a new texture pass.\r\n\t *\r\n\t * @param {Texture} texture - The texture.\r\n\t * @param {Number} [opacity=1.0] - The texture opacity.\r\n\t */\r\n\r\n\tconstructor(texture, opacity = 1.0) {\r\n\r\n\t\tsuper();\r\n\r\n\t\t/**\r\n\t\t * The name of this pass.\r\n\t\t */\r\n\r\n\t\tthis.name = \"TexturePass\";\r\n\r\n\t\t/**\r\n\t\t * A copy shader material used for rendering to texture.\r\n\t\t *\r\n\t\t * @type {CopyMaterial}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.copyMaterial = new CopyMaterial();\r\n\t\tthis.copyMaterial.blending = AdditiveBlending;\r\n\t\tthis.copyMaterial.transparent = true;\r\n\r\n\t\tthis.texture = texture;\r\n\t\tthis.opacity = opacity;\r\n\r\n\t\tthis.quad.material = this.copyMaterial;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * The texture.\r\n\t *\r\n\t * @type {Texture}\r\n\t */\r\n\r\n\tget texture() { return this.copyMaterial.uniforms.tDiffuse.value; }\r\n\r\n\t/**\r\n\t * @type {Texture}\r\n\t */\r\n\r\n\tset texture(x) {\r\n\r\n\t\tthis.copyMaterial.uniforms.tDiffuse.value = x;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * The opacity.\r\n\t *\r\n\t * @type {Number}\r\n\t * @default 1.0\r\n\t */\r\n\r\n\tget opacity() { return this.copyMaterial.uniforms.opacity.value; }\r\n\r\n\t/**\r\n\t * @type {Number}\r\n\t */\r\n\r\n\tset opacity(x) {\r\n\r\n\t\tthis.copyMaterial.uniforms.opacity.value = x;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Renders the effect.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {WebGLRenderTarget} readBuffer - The read buffer.\r\n\t */\r\n\r\n\trender(renderer, readBuffer) {\r\n\r\n\t\trenderer.render(this.scene, this.camera, this.renderToScreen ? null : readBuffer);\r\n\r\n\t}\r\n\r\n}\r\n" }, { - "__docId__": 338, + "__docId__": 340, "kind": "class", "static": true, "variation": null, @@ -9015,7 +9049,7 @@ ] }, { - "__docId__": 339, + "__docId__": 341, "kind": "constructor", "static": false, "variation": null, @@ -9052,7 +9086,7 @@ "generator": false }, { - "__docId__": 340, + "__docId__": 342, "kind": "member", "static": false, "variation": null, @@ -9069,7 +9103,7 @@ } }, { - "__docId__": 341, + "__docId__": 343, "kind": "member", "static": false, "variation": null, @@ -9089,7 +9123,7 @@ } }, { - "__docId__": 342, + "__docId__": 344, "kind": "member", "static": false, "variation": null, @@ -9107,7 +9141,7 @@ } }, { - "__docId__": 343, + "__docId__": 345, "kind": "member", "static": false, "variation": null, @@ -9125,7 +9159,7 @@ } }, { - "__docId__": 344, + "__docId__": 346, "kind": "get", "static": false, "variation": null, @@ -9146,7 +9180,7 @@ "generator": false }, { - "__docId__": 345, + "__docId__": 347, "kind": "set", "static": false, "variation": null, @@ -9167,7 +9201,7 @@ "generator": false }, { - "__docId__": 346, + "__docId__": 348, "kind": "get", "static": false, "variation": null, @@ -9194,7 +9228,7 @@ "generator": false }, { - "__docId__": 347, + "__docId__": 349, "kind": "set", "static": false, "variation": null, @@ -9215,7 +9249,7 @@ "generator": false }, { - "__docId__": 348, + "__docId__": 350, "kind": "method", "static": false, "variation": null, @@ -9250,7 +9284,7 @@ "generator": false }, { - "__docId__": 349, + "__docId__": 351, "kind": "file", "static": true, "variation": null, @@ -9263,7 +9297,7 @@ "content": "import {\r\n\tLinearFilter,\r\n\tLinearMipMapLinearFilter,\r\n\tMeshBasicMaterial,\r\n\tRGBFormat,\r\n\tWebGLRenderTarget\r\n} from \"three\";\r\n\r\nimport {\r\n\tAdaptiveLuminosityMaterial,\r\n\tCopyMaterial,\r\n\tLuminosityMaterial,\r\n\tToneMappingMaterial\r\n} from \"../materials\";\r\n\r\nimport { Pass } from \"./pass.js\";\r\n\r\n/**\r\n * Rounds the given number up to the next power of two.\r\n *\r\n * @private\r\n * @static\r\n * @param {Number} n - A number.\r\n * @return {Number} The next power of two.\r\n */\r\n\r\nfunction ceil2(n) { return Math.pow(2, Math.max(0, Math.ceil(Math.log2(n)))); }\r\n\r\n/**\r\n * A tone mapping pass that supports adaptive luminosity.\r\n *\r\n * If adaptivity is enabled, this pass generates a texture that represents the\r\n * luminosity of the current scene and adjusts it over time to simulate the\r\n * optic nerve responding to the amount of light it is receiving.\r\n *\r\n * Reference:\r\n * GDC2007 - Wolfgang Engel, Post-Processing Pipeline\r\n * http://perso.univ-lyon1.fr/jean-claude.iehl/Public/educ/GAMA/2007/gdc07/Post-Processing_Pipeline.pdf\r\n */\r\n\r\nexport class ToneMappingPass extends Pass {\r\n\r\n\t/**\r\n\t * Constructs a new tone mapping pass.\r\n\t *\r\n\t * @param {Object} [options] - The options.\r\n\t * @param {Boolean} [options.adaptive=true] - Whether the tone mapping should use an adaptive luminance map.\r\n\t * @param {Number} [options.resolution=256] - The render texture resolution.\r\n\t * @param {Number} [options.distinction=1.0] - A luminance distinction factor.\r\n\t */\r\n\r\n\tconstructor(options = {}) {\r\n\r\n\t\tsuper();\r\n\r\n\t\t/**\r\n\t\t * The name of this pass.\r\n\t\t */\r\n\r\n\t\tthis.name = \"ToneMappingPass\";\r\n\r\n\t\t/**\r\n\t\t * This pass renders to the write buffer.\r\n\t\t */\r\n\r\n\t\tthis.needsSwap = true;\r\n\r\n\t\t/**\r\n\t\t * The render target for the current luminosity.\r\n\t\t *\r\n\t\t * @type {WebGLRenderTarget}\r\n\t\t * @private\r\n\t\t * @todo Use RED format in WebGL 2.0.\r\n\t\t */\r\n\r\n\t\tthis.renderTargetLuminosity = new WebGLRenderTarget(1, 1, {\r\n\t\t\tminFilter: LinearMipMapLinearFilter,\r\n\t\t\tmagFilter: LinearFilter,\r\n\t\t\tformat: RGBFormat,\r\n\t\t\tstencilBuffer: false,\r\n\t\t\tdepthBuffer: false\r\n\t\t});\r\n\r\n\t\tthis.renderTargetLuminosity.texture.name = \"ToneMapping.Luminosity\";\r\n\r\n\t\t/**\r\n\t\t * The render target for adapted luminosity.\r\n\t\t *\r\n\t\t * @type {WebGLRenderTarget}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.renderTargetAdapted = this.renderTargetLuminosity.clone();\r\n\r\n\t\tthis.renderTargetAdapted.texture.name = \"ToneMapping.AdaptedLuminosity\";\r\n\t\tthis.renderTargetAdapted.texture.generateMipmaps = false;\r\n\t\tthis.renderTargetAdapted.texture.minFilter = LinearFilter;\r\n\r\n\t\t/**\r\n\t\t * A render target that holds a copy of the adapted limonosity.\r\n\t\t *\r\n\t\t * @type {WebGLRenderTarget}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.renderTargetPrevious = this.renderTargetAdapted.clone();\r\n\r\n\t\tthis.renderTargetPrevious.texture.name = \"ToneMapping.PreviousLuminosity\";\r\n\r\n\t\t/**\r\n\t\t * Copy shader material used for saving the luminance map.\r\n\t\t *\r\n\t\t * @type {CopyMaterial}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.copyMaterial = new CopyMaterial();\r\n\r\n\t\t/**\r\n\t\t * A luminosity shader material.\r\n\t\t *\r\n\t\t * @type {LuminosityMaterial}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.luminosityMaterial = new LuminosityMaterial();\r\n\r\n\t\tthis.luminosityMaterial.uniforms.distinction.value = (options.distinction !== undefined) ? options.distinction : 1.0;\r\n\r\n\t\t/**\r\n\t\t * An adaptive luminance shader material.\r\n\t\t *\r\n\t\t * @type {AdaptiveLuminosityMaterial}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.adaptiveLuminosityMaterial = new AdaptiveLuminosityMaterial();\r\n\r\n\t\tthis.resolution = (options.resolution !== undefined) ? options.resolution : 256;\r\n\r\n\t\t/**\r\n\t\t * A tone mapping shader material.\r\n\t\t *\r\n\t\t * @type {ToneMappingMaterial}\r\n\t\t * @private\r\n\t\t */\r\n\r\n\t\tthis.toneMappingMaterial = new ToneMappingMaterial();\r\n\r\n\t\tthis.adaptive = (options.adaptive !== undefined) ? options.adaptive : true;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * The resolution of the render targets.\r\n\t *\r\n\t * @type {Number}\r\n\t * @default 256\r\n\t */\r\n\r\n\tget resolution() { return this.renderTargetLuminosity.width; }\r\n\r\n\t/**\r\n\t * The resolution of the render targets. Must be a power of two and will be\r\n\t * rounded up if it isn't.\r\n\t *\r\n\t * @type {Number}\r\n\t */\r\n\r\n\tset resolution(x) {\r\n\r\n\t\tx = ceil2(x);\r\n\r\n\t\tthis.renderTargetLuminosity.setSize(x, x);\r\n\t\tthis.renderTargetPrevious.setSize(x, x);\r\n\t\tthis.renderTargetAdapted.setSize(x, x);\r\n\r\n\t\tthis.adaptiveLuminosityMaterial.defines.MIP_LEVEL_1X1 = (Math.round(Math.log(x)) / Math.log(2)).toFixed(1);\r\n\t\tthis.adaptiveLuminosityMaterial.needsUpdate = true;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Whether this pass uses adaptive luminosity.\r\n\t *\r\n\t * @type {Boolean}\r\n\t */\r\n\r\n\tget adaptive() { return this.toneMappingMaterial.defines.ADAPTED_LUMINANCE !== undefined; }\r\n\r\n\t/**\r\n\t * Whether this pass should use adaptive luminosity.\r\n\t *\r\n\t * @type {Boolean}\r\n\t */\r\n\r\n\tset adaptive(x) {\r\n\r\n\t\tif(x) {\r\n\r\n\t\t\tthis.toneMappingMaterial.defines.ADAPTED_LUMINANCE = \"1\";\r\n\t\t\tthis.toneMappingMaterial.uniforms.luminanceMap.value = this.renderTargetAdapted.texture;\r\n\r\n\t\t} else {\r\n\r\n\t\t\tdelete this.toneMappingMaterial.defines.ADAPTED_LUMINANCE;\r\n\t\t\tthis.toneMappingMaterial.uniforms.luminanceMap.value = null;\r\n\r\n\t\t}\r\n\r\n\t\tthis.toneMappingMaterial.needsUpdate = true;\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Renders the effect.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t * @param {WebGLRenderTarget} readBuffer - The read buffer.\r\n\t * @param {WebGLRenderTarget} writeBuffer - The write buffer.\r\n\t * @param {Number} delta - The render delta time.\r\n\t */\r\n\r\n\trender(renderer, readBuffer, writeBuffer, delta) {\r\n\r\n\t\tconst quad = this.quad;\r\n\t\tconst scene = this.scene;\r\n\t\tconst camera = this.camera;\r\n\r\n\t\tconst adaptiveLuminosityMaterial = this.adaptiveLuminosityMaterial;\r\n\t\tconst luminosityMaterial = this.luminosityMaterial;\r\n\t\tconst toneMappingMaterial = this.toneMappingMaterial;\r\n\t\tconst copyMaterial = this.copyMaterial;\r\n\r\n\t\tconst renderTargetPrevious = this.renderTargetPrevious;\r\n\t\tconst renderTargetLuminosity = this.renderTargetLuminosity;\r\n\t\tconst renderTargetAdapted = this.renderTargetAdapted;\r\n\r\n\t\tif(this.adaptive) {\r\n\r\n\t\t\t// Render the luminance of the current scene into a render target with mipmapping enabled.\r\n\t\t\tquad.material = luminosityMaterial;\r\n\t\t\tluminosityMaterial.uniforms.tDiffuse.value = readBuffer.texture;\r\n\t\t\trenderer.render(scene, camera, renderTargetLuminosity);\r\n\r\n\t\t\t// Use the new luminance values, the previous luminance and the frame delta to adapt the luminance over time.\r\n\t\t\tquad.material = adaptiveLuminosityMaterial;\r\n\t\t\tadaptiveLuminosityMaterial.uniforms.delta.value = delta;\r\n\t\t\tadaptiveLuminosityMaterial.uniforms.tPreviousLum.value = renderTargetPrevious.texture;\r\n\t\t\tadaptiveLuminosityMaterial.uniforms.tCurrentLum.value = renderTargetLuminosity.texture;\r\n\t\t\trenderer.render(scene, camera, renderTargetAdapted);\r\n\r\n\t\t\t// Copy the new adapted luminance value so that it can be used by the next frame.\r\n\t\t\tquad.material = copyMaterial;\r\n\t\t\tcopyMaterial.uniforms.tDiffuse.value = renderTargetAdapted.texture;\r\n\t\t\trenderer.render(scene, camera, renderTargetPrevious);\r\n\r\n\t\t}\r\n\r\n\t\t// Apply the tone mapping to the colours.\r\n\t\tquad.material = toneMappingMaterial;\r\n\t\ttoneMappingMaterial.uniforms.tDiffuse.value = readBuffer.texture;\r\n\r\n\t\trenderer.render(this.scene, this.camera, this.renderToScreen ? null : writeBuffer);\r\n\r\n\t}\r\n\r\n\t/**\r\n\t * Renders something into the previous luminosity texture.\r\n\t *\r\n\t * @param {WebGLRenderer} renderer - The renderer.\r\n\t */\r\n\r\n\tinitialise(renderer) {\r\n\r\n\t\tthis.quad.material = new MeshBasicMaterial({ color: 0x7fffff });\r\n\t\trenderer.render(this.scene, this.camera, this.renderTargetPrevious);\r\n\t\tthis.quad.material.dispose();\r\n\r\n\t}\r\n\r\n}\r\n" }, { - "__docId__": 350, + "__docId__": 352, "kind": "function", "static": true, "variation": null, @@ -9305,7 +9339,7 @@ "generator": false }, { - "__docId__": 351, + "__docId__": 353, "kind": "class", "static": true, "variation": null, @@ -9324,7 +9358,7 @@ ] }, { - "__docId__": 352, + "__docId__": 354, "kind": "constructor", "static": false, "variation": null, @@ -9385,7 +9419,7 @@ "generator": false }, { - "__docId__": 353, + "__docId__": 355, "kind": "member", "static": false, "variation": null, @@ -9402,7 +9436,7 @@ } }, { - "__docId__": 354, + "__docId__": 356, "kind": "member", "static": false, "variation": null, @@ -9419,7 +9453,7 @@ } }, { - "__docId__": 355, + "__docId__": 357, "kind": "member", "static": false, "variation": null, @@ -9442,7 +9476,7 @@ } }, { - "__docId__": 356, + "__docId__": 358, "kind": "member", "static": false, "variation": null, @@ -9462,7 +9496,7 @@ } }, { - "__docId__": 357, + "__docId__": 359, "kind": "member", "static": false, "variation": null, @@ -9482,7 +9516,7 @@ } }, { - "__docId__": 358, + "__docId__": 360, "kind": "member", "static": false, "variation": null, @@ -9502,7 +9536,7 @@ } }, { - "__docId__": 359, + "__docId__": 361, "kind": "member", "static": false, "variation": null, @@ -9522,7 +9556,7 @@ } }, { - "__docId__": 360, + "__docId__": 362, "kind": "member", "static": false, "variation": null, @@ -9542,7 +9576,7 @@ } }, { - "__docId__": 361, + "__docId__": 363, "kind": "member", "static": false, "variation": null, @@ -9560,7 +9594,7 @@ } }, { - "__docId__": 362, + "__docId__": 364, "kind": "member", "static": false, "variation": null, @@ -9580,7 +9614,7 @@ } }, { - "__docId__": 363, + "__docId__": 365, "kind": "member", "static": false, "variation": null, @@ -9598,7 +9632,7 @@ } }, { - "__docId__": 364, + "__docId__": 366, "kind": "get", "static": false, "variation": null, @@ -9625,7 +9659,7 @@ "generator": false }, { - "__docId__": 365, + "__docId__": 367, "kind": "set", "static": false, "variation": null, @@ -9646,7 +9680,7 @@ "generator": false }, { - "__docId__": 366, + "__docId__": 368, "kind": "get", "static": false, "variation": null, @@ -9667,7 +9701,7 @@ "generator": false }, { - "__docId__": 367, + "__docId__": 369, "kind": "set", "static": false, "variation": null, @@ -9688,7 +9722,7 @@ "generator": false }, { - "__docId__": 368, + "__docId__": 370, "kind": "method", "static": false, "variation": null, @@ -9743,7 +9777,7 @@ "generator": false }, { - "__docId__": 369, + "__docId__": 371, "kind": "method", "static": false, "variation": null, @@ -9768,7 +9802,7 @@ "generator": false }, { - "__docId__": 371, + "__docId__": 373, "kind": "external", "static": true, "variation": null, @@ -9781,7 +9815,7 @@ "builtinExternal": true }, { - "__docId__": 372, + "__docId__": 374, "kind": "external", "static": true, "variation": null, @@ -9794,7 +9828,7 @@ "builtinExternal": true }, { - "__docId__": 373, + "__docId__": 375, "kind": "external", "static": true, "variation": null, @@ -9807,7 +9841,7 @@ "builtinExternal": true }, { - "__docId__": 374, + "__docId__": 376, "kind": "external", "static": true, "variation": null, @@ -9820,7 +9854,7 @@ "builtinExternal": true }, { - "__docId__": 375, + "__docId__": 377, "kind": "external", "static": true, "variation": null, @@ -9833,7 +9867,7 @@ "builtinExternal": true }, { - "__docId__": 376, + "__docId__": 378, "kind": "external", "static": true, "variation": null, @@ -9846,7 +9880,7 @@ "builtinExternal": true }, { - "__docId__": 377, + "__docId__": 379, "kind": "external", "static": true, "variation": null, @@ -9859,7 +9893,7 @@ "builtinExternal": true }, { - "__docId__": 378, + "__docId__": 380, "kind": "external", "static": true, "variation": null, @@ -9872,7 +9906,7 @@ "builtinExternal": true }, { - "__docId__": 379, + "__docId__": 381, "kind": "external", "static": true, "variation": null, @@ -9885,7 +9919,7 @@ "builtinExternal": true }, { - "__docId__": 380, + "__docId__": 382, "kind": "external", "static": true, "variation": null, @@ -9898,7 +9932,7 @@ "builtinExternal": true }, { - "__docId__": 381, + "__docId__": 383, "kind": "external", "static": true, "variation": null, @@ -9911,7 +9945,7 @@ "builtinExternal": true }, { - "__docId__": 382, + "__docId__": 384, "kind": "external", "static": true, "variation": null, @@ -9924,7 +9958,7 @@ "builtinExternal": true }, { - "__docId__": 383, + "__docId__": 385, "kind": "external", "static": true, "variation": null, @@ -9937,7 +9971,7 @@ "builtinExternal": true }, { - "__docId__": 384, + "__docId__": 386, "kind": "external", "static": true, "variation": null, @@ -9950,7 +9984,7 @@ "builtinExternal": true }, { - "__docId__": 385, + "__docId__": 387, "kind": "external", "static": true, "variation": null, @@ -9963,7 +9997,7 @@ "builtinExternal": true }, { - "__docId__": 386, + "__docId__": 388, "kind": "external", "static": true, "variation": null, @@ -9976,7 +10010,7 @@ "builtinExternal": true }, { - "__docId__": 387, + "__docId__": 389, "kind": "external", "static": true, "variation": null, @@ -9989,7 +10023,7 @@ "builtinExternal": true }, { - "__docId__": 388, + "__docId__": 390, "kind": "external", "static": true, "variation": null, @@ -10002,7 +10036,7 @@ "builtinExternal": true }, { - "__docId__": 389, + "__docId__": 391, "kind": "external", "static": true, "variation": null, @@ -10015,7 +10049,7 @@ "builtinExternal": true }, { - "__docId__": 390, + "__docId__": 392, "kind": "external", "static": true, "variation": null, @@ -10028,7 +10062,7 @@ "builtinExternal": true }, { - "__docId__": 391, + "__docId__": 393, "kind": "external", "static": true, "variation": null, @@ -10041,7 +10075,7 @@ "builtinExternal": true }, { - "__docId__": 392, + "__docId__": 394, "kind": "external", "static": true, "variation": null, @@ -10054,7 +10088,7 @@ "builtinExternal": true }, { - "__docId__": 393, + "__docId__": 395, "kind": "external", "static": true, "variation": null, @@ -10067,7 +10101,7 @@ "builtinExternal": true }, { - "__docId__": 394, + "__docId__": 396, "kind": "external", "static": true, "variation": null, @@ -10080,7 +10114,7 @@ "builtinExternal": true }, { - "__docId__": 395, + "__docId__": 397, "kind": "external", "static": true, "variation": null, @@ -10093,7 +10127,7 @@ "builtinExternal": true }, { - "__docId__": 396, + "__docId__": 398, "kind": "external", "static": true, "variation": null, @@ -10106,7 +10140,7 @@ "builtinExternal": true }, { - "__docId__": 397, + "__docId__": 399, "kind": "external", "static": true, "variation": null, @@ -10119,7 +10153,7 @@ "builtinExternal": true }, { - "__docId__": 398, + "__docId__": 400, "kind": "external", "static": true, "variation": null, @@ -10132,7 +10166,7 @@ "builtinExternal": true }, { - "__docId__": 399, + "__docId__": 401, "kind": "external", "static": true, "variation": null, @@ -10145,7 +10179,7 @@ "builtinExternal": true }, { - "__docId__": 400, + "__docId__": 402, "kind": "external", "static": true, "variation": null, @@ -10158,7 +10192,7 @@ "builtinExternal": true }, { - "__docId__": 401, + "__docId__": 403, "kind": "external", "static": true, "variation": null, @@ -10171,7 +10205,7 @@ "builtinExternal": true }, { - "__docId__": 402, + "__docId__": 404, "kind": "external", "static": true, "variation": null, @@ -10184,7 +10218,7 @@ "builtinExternal": true }, { - "__docId__": 403, + "__docId__": 405, "kind": "external", "static": true, "variation": null, @@ -10197,7 +10231,7 @@ "builtinExternal": true }, { - "__docId__": 404, + "__docId__": 406, "kind": "external", "static": true, "variation": null, @@ -10210,7 +10244,7 @@ "builtinExternal": true }, { - "__docId__": 405, + "__docId__": 407, "kind": "external", "static": true, "variation": null, @@ -10223,7 +10257,7 @@ "builtinExternal": true }, { - "__docId__": 406, + "__docId__": 408, "kind": "external", "static": true, "variation": null, @@ -10236,7 +10270,7 @@ "builtinExternal": true }, { - "__docId__": 407, + "__docId__": 409, "kind": "external", "static": true, "variation": null, @@ -10249,7 +10283,7 @@ "builtinExternal": true }, { - "__docId__": 408, + "__docId__": 410, "kind": "external", "static": true, "variation": null, @@ -10262,7 +10296,7 @@ "builtinExternal": true }, { - "__docId__": 409, + "__docId__": 411, "kind": "external", "static": true, "variation": null, @@ -10275,7 +10309,7 @@ "builtinExternal": true }, { - "__docId__": 410, + "__docId__": 412, "kind": "external", "static": true, "variation": null, @@ -10288,7 +10322,7 @@ "builtinExternal": true }, { - "__docId__": 411, + "__docId__": 413, "kind": "external", "static": true, "variation": null, @@ -10301,7 +10335,7 @@ "builtinExternal": true }, { - "__docId__": 412, + "__docId__": 414, "kind": "external", "static": true, "variation": null, @@ -10314,7 +10348,7 @@ "builtinExternal": true }, { - "__docId__": 413, + "__docId__": 415, "kind": "external", "static": true, "variation": null, @@ -10327,7 +10361,7 @@ "builtinExternal": true }, { - "__docId__": 414, + "__docId__": 416, "kind": "external", "static": true, "variation": null, @@ -10340,7 +10374,7 @@ "builtinExternal": true }, { - "__docId__": 415, + "__docId__": 417, "kind": "external", "static": true, "variation": null, @@ -10353,7 +10387,7 @@ "builtinExternal": true }, { - "__docId__": 416, + "__docId__": 418, "kind": "external", "static": true, "variation": null, @@ -10366,7 +10400,7 @@ "builtinExternal": true }, { - "__docId__": 417, + "__docId__": 419, "kind": "external", "static": true, "variation": null, @@ -10379,7 +10413,7 @@ "builtinExternal": true }, { - "__docId__": 419, + "__docId__": 421, "kind": "external", "static": true, "variation": null, @@ -10392,7 +10426,7 @@ "builtinExternal": true }, { - "__docId__": 420, + "__docId__": 422, "kind": "external", "static": true, "variation": null, @@ -10405,7 +10439,7 @@ "builtinExternal": true }, { - "__docId__": 421, + "__docId__": 423, "kind": "external", "static": true, "variation": null, @@ -10418,7 +10452,7 @@ "builtinExternal": true }, { - "__docId__": 422, + "__docId__": 424, "kind": "external", "static": true, "variation": null, @@ -10431,7 +10465,7 @@ "builtinExternal": true }, { - "__docId__": 423, + "__docId__": 425, "kind": "external", "static": true, "variation": null, @@ -10444,7 +10478,7 @@ "builtinExternal": true }, { - "__docId__": 424, + "__docId__": 426, "kind": "external", "static": true, "variation": null, @@ -10457,7 +10491,7 @@ "builtinExternal": true }, { - "__docId__": 425, + "__docId__": 427, "kind": "external", "static": true, "variation": null, @@ -10470,7 +10504,7 @@ "builtinExternal": true }, { - "__docId__": 426, + "__docId__": 428, "kind": "external", "static": true, "variation": null, diff --git a/docs/file/src/passes/bloom.js.html b/docs/file/src/passes/bloom.js.html index 1efa1b296..168c21667 100644 --- a/docs/file/src/passes/bloom.js.html +++ b/docs/file/src/passes/bloom.js.html @@ -114,6 +114,12 @@ this.name = "BloomPass"; + /** + * This pass renders to the write buffer. + */ + + this.needsSwap = true; + /** * A blur pass. * diff --git a/docs/file/src/passes/glitch.js.html b/docs/file/src/passes/glitch.js.html index 80ae42b0c..cbec47c7a 100644 --- a/docs/file/src/passes/glitch.js.html +++ b/docs/file/src/passes/glitch.js.html @@ -220,7 +220,7 @@ } /** - * Destroys the current perturbation map and creates a new one. + * Destroys the current perturbation map and replaces it with a new one. * * @param {Number} [size=64] - The texture size. * @return {DataTexture} The perturbation texture. diff --git a/docs/file/src/passes/god-rays.js.html b/docs/file/src/passes/god-rays.js.html index e9e43c59e..6f3fda92d 100644 --- a/docs/file/src/passes/god-rays.js.html +++ b/docs/file/src/passes/god-rays.js.html @@ -146,6 +146,12 @@ this.name = "GodRaysPass"; + /** + * This pass renders to the write buffer. + */ + + this.needsSwap = true; + /** * A scene that only contains the light source. * diff --git a/docs/index.html b/docs/index.html index 29b40a7e5..557d8bf77 100644 --- a/docs/index.html +++ b/docs/index.html @@ -83,8 +83,8 @@ npm version Dependencies

A post processing library that provides the means to implement 2D filter effects for three.js.

-

Extensive Demo ∴ -API Reference

+

Extensive Demo ∴ +API Reference

Installation

npm install postprocessing
 
diff --git a/docs/package.json b/docs/package.json index eee7b2253..22ccf4066 100644 --- a/docs/package.json +++ b/docs/package.json @@ -1,6 +1,6 @@ { "name": "postprocessing", - "version": "2.1.2", + "version": "2.1.3", "description": "A post processing library that provides the means to implement 2D filter effects for three.js.", "homepage": "https://github.com/vanruesc/postprocessing", "main": "build/postprocessing.js", @@ -40,13 +40,13 @@ "scripts": { "test": "grunt --production", - "prepublishOnly": "grunt prepublish", - "postpublish": "grunt postpublish" + "prepack": "grunt prepublish", + "postpack": "grunt postpublish" }, "engines": { "node": ">=4.0.0", - "npm": ">=4.0.0" + "npm": ">=5.0.0" }, "dependencies": { @@ -59,10 +59,10 @@ "babel-preset-es2015-rollup": "3.0.x", "grunt": "1.x.x", "grunt-cli": "1.2.x", - "grunt-contrib-nodeunit": "1.0.x", - "grunt-contrib-uglify": "3.0.x", "grunt-contrib-clean": "1.1.x", "grunt-contrib-copy": "1.0.x", + "grunt-contrib-nodeunit": "1.0.x", + "grunt-contrib-uglify": "3.0.x", "grunt-esdoc": "0.x.x", "grunt-eslint": "19.0.x", "grunt-inline-import": "0.x.x", diff --git a/docs/script/search_index.js b/docs/script/search_index.js index f803c52ac..3c61b8c8e 100644 --- a/docs/script/search_index.js +++ b/docs/script/search_index.js @@ -991,13 +991,13 @@ window.esdocSearchIndex = [ ], [ "src/passes/bloom.js~bloompass#distinction", - "class/src/passes/bloom.js~BloomPass.html#instance-get-distinction", + "class/src/passes/bloom.js~BloomPass.html#instance-set-distinction", "src/passes/bloom.js~BloomPass#distinction", "member" ], [ "src/passes/bloom.js~bloompass#distinction", - "class/src/passes/bloom.js~BloomPass.html#instance-set-distinction", + "class/src/passes/bloom.js~BloomPass.html#instance-get-distinction", "src/passes/bloom.js~BloomPass#distinction", "member" ], @@ -1037,6 +1037,12 @@ window.esdocSearchIndex = [ "src/passes/bloom.js~BloomPass#name", "member" ], + [ + "src/passes/bloom.js~bloompass#needsswap", + "class/src/passes/bloom.js~BloomPass.html#instance-member-needsSwap", + "src/passes/bloom.js~BloomPass#needsSwap", + "member" + ], [ "src/passes/bloom.js~bloompass#render", "class/src/passes/bloom.js~BloomPass.html#instance-method-render", @@ -1045,13 +1051,13 @@ window.esdocSearchIndex = [ ], [ "src/passes/bloom.js~bloompass#resolutionscale", - "class/src/passes/bloom.js~BloomPass.html#instance-get-resolutionScale", + "class/src/passes/bloom.js~BloomPass.html#instance-set-resolutionScale", "src/passes/bloom.js~BloomPass#resolutionScale", "member" ], [ "src/passes/bloom.js~bloompass#resolutionscale", - "class/src/passes/bloom.js~BloomPass.html#instance-set-resolutionScale", + "class/src/passes/bloom.js~BloomPass.html#instance-get-resolutionScale", "src/passes/bloom.js~BloomPass#resolutionScale", "member" ], @@ -1081,13 +1087,13 @@ window.esdocSearchIndex = [ ], [ "src/passes/blur.js~blurpass#kernelsize", - "class/src/passes/blur.js~BlurPass.html#instance-get-kernelSize", + "class/src/passes/blur.js~BlurPass.html#instance-set-kernelSize", "src/passes/blur.js~BlurPass#kernelSize", "member" ], [ "src/passes/blur.js~blurpass#kernelsize", - "class/src/passes/blur.js~BlurPass.html#instance-set-kernelSize", + "class/src/passes/blur.js~BlurPass.html#instance-get-kernelSize", "src/passes/blur.js~BlurPass#kernelSize", "member" ], @@ -1447,13 +1453,13 @@ window.esdocSearchIndex = [ ], [ "src/passes/god-rays.js~godrayspass#kernelsize", - "class/src/passes/god-rays.js~GodRaysPass.html#instance-set-kernelSize", + "class/src/passes/god-rays.js~GodRaysPass.html#instance-get-kernelSize", "src/passes/god-rays.js~GodRaysPass#kernelSize", "member" ], [ "src/passes/god-rays.js~godrayspass#kernelsize", - "class/src/passes/god-rays.js~GodRaysPass.html#instance-get-kernelSize", + "class/src/passes/god-rays.js~GodRaysPass.html#instance-set-kernelSize", "src/passes/god-rays.js~GodRaysPass#kernelSize", "member" ], @@ -1469,6 +1475,12 @@ window.esdocSearchIndex = [ "src/passes/god-rays.js~GodRaysPass#name", "member" ], + [ + "src/passes/god-rays.js~godrayspass#needsswap", + "class/src/passes/god-rays.js~GodRaysPass.html#instance-member-needsSwap", + "src/passes/god-rays.js~GodRaysPass#needsSwap", + "member" + ], [ "src/passes/god-rays.js~godrayspass#render", "class/src/passes/god-rays.js~GodRaysPass.html#instance-method-render", @@ -1489,13 +1501,13 @@ window.esdocSearchIndex = [ ], [ "src/passes/god-rays.js~godrayspass#samples", - "class/src/passes/god-rays.js~GodRaysPass.html#instance-set-samples", + "class/src/passes/god-rays.js~GodRaysPass.html#instance-get-samples", "src/passes/god-rays.js~GodRaysPass#samples", "member" ], [ "src/passes/god-rays.js~godrayspass#samples", - "class/src/passes/god-rays.js~GodRaysPass.html#instance-get-samples", + "class/src/passes/god-rays.js~GodRaysPass.html#instance-set-samples", "src/passes/god-rays.js~GodRaysPass#samples", "member" ], @@ -1945,13 +1957,13 @@ window.esdocSearchIndex = [ ], [ "src/passes/texture.js~texturepass#texture", - "class/src/passes/texture.js~TexturePass.html#instance-get-texture", + "class/src/passes/texture.js~TexturePass.html#instance-set-texture", "src/passes/texture.js~TexturePass#texture", "member" ], [ "src/passes/texture.js~texturepass#texture", - "class/src/passes/texture.js~TexturePass.html#instance-set-texture", + "class/src/passes/texture.js~TexturePass.html#instance-get-texture", "src/passes/texture.js~TexturePass#texture", "member" ], @@ -1963,13 +1975,13 @@ window.esdocSearchIndex = [ ], [ "src/passes/tone-mapping.js~tonemappingpass#adaptive", - "class/src/passes/tone-mapping.js~ToneMappingPass.html#instance-get-adaptive", + "class/src/passes/tone-mapping.js~ToneMappingPass.html#instance-set-adaptive", "src/passes/tone-mapping.js~ToneMappingPass#adaptive", "member" ], [ "src/passes/tone-mapping.js~tonemappingpass#adaptive", - "class/src/passes/tone-mapping.js~ToneMappingPass.html#instance-set-adaptive", + "class/src/passes/tone-mapping.js~ToneMappingPass.html#instance-get-adaptive", "src/passes/tone-mapping.js~ToneMappingPass#adaptive", "member" ], diff --git a/docs/source.html b/docs/source.html index 1835a24d9..5b020a749 100644 --- a/docs/source.html +++ b/docs/source.html @@ -78,7 +78,7 @@
-

Source 235/235

+

Source 237/237

@@ -123,7 +123,7 @@ - + @@ -131,7 +131,7 @@ - + @@ -139,7 +139,7 @@ - + @@ -147,7 +147,7 @@ - + @@ -156,7 +156,7 @@ - + @@ -164,7 +164,7 @@ - + @@ -172,7 +172,7 @@ - + @@ -180,7 +180,7 @@ - + @@ -188,7 +188,7 @@ - + @@ -196,7 +196,7 @@ - + @@ -204,7 +204,7 @@ - + @@ -228,7 +228,7 @@ - + @@ -236,7 +236,7 @@ - + @@ -244,7 +244,7 @@ - + @@ -252,7 +252,7 @@ - + @@ -260,7 +260,7 @@ - + @@ -268,7 +268,7 @@ - + @@ -276,7 +276,7 @@ - + @@ -284,15 +284,15 @@ - + - - - - + + + + @@ -363,17 +363,17 @@ - + - + - - - - + + + +
100 %2/2 820 byte 482017-05-04 19:48:49 (UTC)2017-05-04 13:14:53 (UTC)
src/materials/bokeh.js100 %3/3 1881 byte 762017-05-04 20:04:28 (UTC)2017-05-04 13:14:53 (UTC)
src/materials/bokeh2.js100 %4/4 4067 byte 1282017-05-04 20:04:47 (UTC)2017-05-04 13:14:53 (UTC)
src/materials/combine.js100 %2/2 1120 byte 522017-05-04 20:05:13 (UTC)2017-05-04 13:14:53 (UTC)
src/materials/convolution.js100 %6/6 2960 byte 1242017-05-04 20:36:09 (UTC)2017-05-04 13:14:53 (UTC)
src/materials/copy.js100 %2/2 579 byte 392017-05-04 20:06:47 (UTC)2017-05-04 13:14:53 (UTC)
src/materials/depth.js100 %3/3 1004 byte 582017-05-04 20:08:47 (UTC)2017-05-04 13:14:53 (UTC)
src/materials/dot-screen.js100 %2/2 927 byte 482017-05-04 20:10:43 (UTC)2017-05-04 13:14:53 (UTC)
src/materials/film.js100 %2/2 4529 byte 1082017-05-05 10:28:48 (UTC)2017-05-04 13:14:53 (UTC)
src/materials/glitch.js100 %2/2 941 byte 532017-05-04 20:13:34 (UTC)2017-05-04 13:14:53 (UTC)
src/materials/god-rays.js100 %2/2 1220 byte 622017-05-05 10:21:21 (UTC)2017-05-04 13:14:53 (UTC)
src/materials/images/smaa/area-image.js- 1098 byte 242017-05-04 20:07:29 (UTC)2017-05-04 13:14:53 (UTC)
src/materials/luminosity.js100 %2/2 1414 byte 522017-05-05 00:33:22 (UTC)2017-05-04 13:14:53 (UTC)
src/materials/pixelation.js100 %5/5 1548 byte 842017-05-05 10:23:33 (UTC)2017-05-04 13:14:53 (UTC)
src/materials/shock-wave.js100 %2/2 1431 byte 592017-05-04 20:17:29 (UTC)2017-05-04 13:14:53 (UTC)
src/materials/smaa-blend.js100 %2/2 826 byte 442017-05-04 20:18:06 (UTC)2017-05-04 13:14:53 (UTC)
src/materials/smaa-color-edges.js100 %2/2 867 byte 492017-05-04 20:18:58 (UTC)2017-05-04 13:14:53 (UTC)
src/materials/smaa-weights.js100 %4/4 1490 byte 762017-05-04 20:22:05 (UTC)2017-05-04 13:14:53 (UTC)
src/materials/tone-mapping.js100 %2/2 848 byte 452017-05-04 20:22:49 (UTC)2017-05-04 13:14:53 (UTC)
src/passes/bloom.js BloomPass100 %14/145610 byte2572017-05-05 10:45:13 (UTC)100 %15/155699 byte2632017-05-04 20:31:04 (UTC)
src/passes/blur.jsGlitchMode GlitchPass 100 %10/105400 byte5409 byte 2552017-05-05 10:29:55 (UTC)2017-05-04 19:43:17 (UTC)
src/passes/god-rays.js GodRaysPass100 %15/1510394 byte4322017-05-05 10:30:55 (UTC)100 %16/1610483 byte4382017-05-04 21:03:06 (UTC)
src/passes/index.js