Add Rotation properties to Flow Map, Alpha Transition, Emission, and Tint Color#180
Merged
sakumanaoki merged 7 commits intomainfrom Dec 24, 2025
Merged
Add Rotation properties to Flow Map, Alpha Transition, Emission, and Tint Color#180sakumanaoki merged 7 commits intomainfrom
sakumanaoki merged 7 commits intomainfrom
Conversation
各マップに以下のプロパティを追加: - FlowMap: _FlowMapRotation, _FlowMapRotationCoord, _FlowMapRotationOffsets - AlphaTransitionMap: _AlphaTransitionMapRotation, _AlphaTransitionMapRotationCoord, _AlphaTransitionMapRotationOffsets - AlphaTransitionMap SecondTexture: _AlphaTransitionMapSecondTextureRotation, _AlphaTransitionMapSecondTextureRotationCoord, _AlphaTransitionMapSecondTextureRotationOffsets - EmissionMap: _EmissionMapRotation, _EmissionMapRotationCoord, _EmissionMapRotationOffsets 実装内容: - UV回転処理を実装(処理順序: Rotation → Transform → Offset) - Custom Coordシステムと統合し、パーティクルごとの回転角度制御に対応 - ParticlesUberUnlit/Lit、UIParticlesUberUnlit/Litの全シェーダーに対応 - エディタGUIに各マップの回転角度とオフセット設定UIを追加 - RendererErrorHandlerに各マップのCustomCoord使用検証を追加 - 冗長なコメントを削除してコードを整理 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
変更内容: - HLSLファイルで #ifdef _BASE_MAP_ROTATION_ENABLED を if文に変更 - ParticlesUberUnlit.hlsl - ParticlesUberShadowCaster.hlsl - ParticlesUberDepthNormalsCore.hlsl - ParticlesDistortionForward.hlsl - MaterialPostProcessorからキーワード設定コードを削除 - ShaderKeywords.csからBaseMapRotationEnabled定数を削除 効果: - シェーダーバリアント数削減(コンパイル時間短縮、メモリ削減) - TintMap/FlowMap/AlphaTransitionMap/EmissionMapと実装を統一 - 既存マテリアルとの完全な互換性を維持 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
変更内容: - ParticlesUberUnlit.shader から #pragma shader_feature_local_vertex _BASE_MAP_ROTATION_ENABLED を削除(6箇所) - ParticlesUberLit.shader から削除(6箇所) - UIParticlesUberUnlit.shader から削除(1箇所) - UIParticlesUberLit.shader から削除(1箇所) - ParticlesDistortion.shader から削除(3箇所) - OptimizedShaderGenerator.cs の保護キーワードリストから削除 効果: - シェーダーバリアント数の実際の削減を実現 - コンパイル時間とメモリ使用量の改善 - BaseMapRotationは引き続きif文で動作 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
CA-Tatami
reviewed
Dec 24, 2025
CA-Tatami
approved these changes
Dec 24, 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.
概要
BaseMap にある回転のパラメータを追加しました。
追加したものは以下になります。
また、追加したロジック側に合わせて既存の BaseMap の回転処理でシェーダーバリアントを使用していたのをif文へと変更しました。
動作確認
ロジック、挙動がほぼ同じなので一部抜粋します。
Lit/Unlit
Unlit で動作確認をしています。
TintColor
TintRotate.mov
FlowMap
FlowRotate.mov
Distortion FlowMap
DistRotate.mov
確認したこと