Skip to content

Commit

Permalink
Address Feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
bbazukun123 committed Feb 14, 2024
1 parent 41bf281 commit 7c58a64
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/simple-lightmap/SimpleLightmapFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import {
GpuProgram,
RenderSurface,
Texture,
// eslint-disable-next-line camelcase
v8_0_0,
} from 'pixi.js';
import { vertex, wgslVertex } from '../defaults';
import fragment from './simple-lightmap.frag';
Expand Down Expand Up @@ -71,7 +69,7 @@ export class SimpleLightmapFilter extends Filter

constructor(options: SimpleLightmapFilterOptions);
/**
* @deprecated since 8.0.0
* @deprecated since 6.0.0
*
* @param {PIXI.Texture} texture - a texture where your lightmap is rendered
* @param {Array<number>|number} [color=0x000000] - An RGBA array of the ambient color
Expand All @@ -85,12 +83,12 @@ export class SimpleLightmapFilter extends Filter
if (options instanceof Texture)
{
// eslint-disable-next-line max-len
deprecation(v8_0_0, 'SimpleLightmapFilter constructor params are now options object. See params: { lightMap, color, alpha }');
deprecation('6.0.0', 'SimpleLightmapFilter constructor params are now options object. See params: { lightMap, color, alpha }');

options = { lightMap: options };

if (args[1]) options.color = args[1];
if (args[2]) options.alpha = args[2];
if (args[1] !== undefined) options.color = args[1];
if (args[2] !== undefined) options.alpha = args[2];
}

options = { ...SimpleLightmapFilter.DEFAULT_OPTIONS, ...options };
Expand Down

0 comments on commit 7c58a64

Please sign in to comment.