Skip to content

Commit

Permalink
Fix: Remove double rotation calculation in Bevel
Browse files Browse the repository at this point in the history
Fixes #456
  • Loading branch information
bigtimebuddy committed Apr 15, 2024
1 parent ca0c344 commit 42e1ea7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/bevel/BevelFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ export class BevelFilter extends Filter
{
options = { ...BevelFilter.DEFAULT_OPTIONS, ...options };

const rotation = (options.rotation ?? 45) * DEG_TO_RAD;

const gpuProgram = GpuProgram.from({
vertex: {
source: wgslVertex,
Expand Down Expand Up @@ -122,7 +120,7 @@ export class BevelFilter extends Filter
this.lightColor = options.lightColor ?? 0xffffff;
this.shadowColor = options.shadowColor ?? 0x000000;

Object.assign(this, options, { rotation });
Object.assign(this, options);
}

/**
Expand Down

0 comments on commit 42e1ea7

Please sign in to comment.