Skip to content

Commit

Permalink
#154 グラデーション処理をv2へ移行(WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
ienaga committed Sep 14, 2024
1 parent eaac1c5 commit 01b5670
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const execute = (stops: number[], interpolation: number): ITextureObject
blendOneZeroService();

const maxLength = $getGradientLUTGeneratorMaxLength();
for (let begin = stops[0]; begin < stopsLength; begin += maxLength - 1) {
for (let begin = 0; begin < stopsLength; begin += maxLength - 1) {

const end: number = Math.min(begin + maxLength, stopsLength);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ export const execute = (
is_linear_space: boolean
): ShaderManager => {

const key1: string = ("00" + stops_length).slice(-3);
const key2: string = is_linear_space ? "y" : "n";
const key: string = `l${key1}${key2}`;
const key1 = ("00" + stops_length).slice(-3);
const key2 = is_linear_space ? "y" : "n";
const key = `l${key1}${key2}`;

if ($collection.has(key)) {
return $collection.get(key) as NonNullable<ShaderManager>;
Expand Down

0 comments on commit 01b5670

Please sign in to comment.