Repository navigation
fix: storm lightning shows in both eyes in VR - #545
Merged
Merged
Conversation
ThunderShader had no stereo instancing macros, so single-pass instanced drew the lightning strips only for the left eye (G1 and G2 thunderstorms). Ported from the experimental branch (9775ab3); its Bink cinema half is already in develop.
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.
What
Storm lightning shows in both eyes in VR (G1 and G2), not only in the left one.
ThunderShader.shader: stereo instancing macros (UNITY_VERTEX_INPUT_INSTANCE_ID,UNITY_VERTEX_OUTPUT_STEREO,UNITY_SETUP_INSTANCE_ID,UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO) andmulti_compile_instancing, like the other stereo-ready shaders (e.g.GothicBinkYUV.shader).Why
Lost-fixes analysis 2026-11-22 (experimental branch vs develop):
9775ab320fixed the Bink cinema and the lightning strips for single-pass instanced stereo. Only its Bink half reached main. No issue exists for it.How to test manually
Save/load
No state.
Known gaps / follow-ups
AI usage
Claude found the missing part by comparing the experimental branch with develop and ported it.