feat: Implement Base Map Channel Selection Feature#162
Merged
Conversation
Base Mapテクスチャの特定のチャンネル(RGB/Red/Green/Blue)を選択して グレースケール変換する機能を追加。アルファチャンネルは保持される。 ## 主な変更点 ### 新機能 - BaseMapChannel enum(RGB/Red/Green/Blue) - シェーダーキーワード `_BASE_MAP_CHANNEL_ENABLED` による最適化 - Material Editor GUI でのチャンネル選択UI ### 実装詳細 - RGB(デフォルト): 元の色をそのまま使用 - Red/Green/Blue: 選択チャンネルをグレースケール化、アルファ保持 - 最適化システム対応(静的機能として分類) - 全シェーダーバリアント対応(Standard/UI Particles) ### 技術仕様 - `shader_feature_local_fragment` による条件コンパイル - 配列インデックスによる効率的なチャンネル選択 - 後方互換性維持(デフォルト: RGB = 0) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Base Map Channel選択機能(RGB/Red/Green/Blue)の説明を 英語版・日本語版READMEのBase Mapセクションに追加。 - Channel選択オプションの詳細説明 - グレースケール変換とアルファ保持の仕様 - 読みやすい文章構成に整理 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- DrawTextureとDrawTextureWithBaseMapChannelの共通ロジックをDrawTextureInternalに抽出 - 約300行の重複コードを削除 - チャンネル描画部分のみをデリゲートで切り替え可能に変更 - BaseMapChannel.csのCopyrightを2025年に更新 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
CyTakayukiKiyohara
approved these changes
Aug 18, 2025
S20817
approved these changes
Aug 18, 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.
Base Mapテクスチャの特定のチャンネル(RGB/Red/Green/Blue)を選択してグレースケール変換する機能を実装しました。
主な機能
shader_feature_local_fragmentによる条件コンパイル