Skip to content

Conversation

@kblaschke
Copy link
Member

In a shader, the main function must be the last one declared. Everything following it isn't used and the HLSL compiler seems to simply ignore it. Some preset authors put credits after the closing bracket without //, which fails shader compilation in projectM. We'll now just cut off any text following the last closing bracket. One example preset is "martin - city lights.milk".

In a shader, the main function must be the last one declared. Everything following it isn't used and the HLSL compiler seems to simply ignore it. Some preset authors put credits after the closing bracket without //, which fails shader compilation in projectM. We'll now just cut off any text following the last closing bracket. One example preset is "martin - city lights.milk".
@kblaschke kblaschke requested a review from revmischa June 27, 2022 20:19
@kblaschke kblaschke merged commit 3dab0da into projectM-visualizer:master Jul 25, 2022
@kblaschke kblaschke deleted the cut-excess-shader-text branch July 25, 2022 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants