fix: Resolve texture bleeding issue in Texture2D Array mode for Random Row Selection#156
Merged
Merged
Conversation
Random Row Selection 機能において、Texture2D Array 使用時に隣接するテクスチャとブレンドされる問題を修正。 修正内容: - Texture2D Array モードでのみ、progress値を最も近い整数に丸める処理を追加 - floor(progress + 0.5) により適切な整数インデックスを保証 - 他のモード(Texture2D、3D Texture)への影響なし 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
S20817
approved these changes
Jul 23, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Random Row Selection機能において、Texture2D Array使用時に隣接するテクスチャとブレンドされる問題を修正しました。
テスト実行済みです。
問題の詳細
根本原因
FlipBookProgress関数が浮動小数点値を返すSAMPLE_TEXTURE2D_ARRAYは整数インデックスを期待するが、浮動小数点値によりGPUが隣接テクスチャ間で自動補間を実行修正内容
_BASE_MAP_MODE_2D_ARRAY)でのみ適用される修正floor(progress + 0.5)により最も近い整数に丸める処理を追加技術的詳細