* @classdesc * ReflectionEffect * * @class * @param reflectivity How visible reflections should be over the map, between 0 and 1 * @param blur how blurry the reflection should be, between 0 and 1
()
| 59246 | |
| 59247 | |
| 59248 | function ReflectionEffect() { |
| 59249 | var _this; |
| 59250 | |
| 59251 | var reflectivity = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0.5; |
| 59252 | var blur = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.5; |
| 59253 | |
| 59254 | _classCallCheck(this, ReflectionEffect); |
| 59255 | |
| 59256 | _this = _possibleConstructorReturn(this, _getPrototypeOf(ReflectionEffect).call(this)); |
| 59257 | _this.reflectivity = reflectivity; |
| 59258 | _this.blur = blur; |
| 59259 | _this.framebuffer = null; |
| 59260 | |
| 59261 | _this.setNeedsRedraw(); |
| 59262 | |
| 59263 | return _this; |
| 59264 | } |
| 59265 | |
| 59266 | _createClass(ReflectionEffect, [{ |
| 59267 | key: "getShaders", |
nothing calls this directly
no test coverage detected