MCPcopy Create free account
hub / github.com/microsoft/SandDance / ReflectionEffect

Function ReflectionEffect

docs/tests/v2/es6/js/sanddance.js:59248–59264  ·  view source on GitHub ↗

* @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

()

Source from the content-addressed store, hash-verified

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",

Callers

nothing calls this directly

Calls 3

_classCallCheckFunction · 0.70
_getPrototypeOfFunction · 0.70

Tested by

no test coverage detected