Skip to content

Fix warnings about unused varyings#38

Merged
hccampos merged 1 commit intopnext:masterfrom
rhuitl:fix-shader-warnings
Apr 1, 2019
Merged

Fix warnings about unused varyings#38
hccampos merged 1 commit intopnext:masterfrom
rhuitl:fix-shader-warnings

Conversation

@rhuitl
Copy link
Copy Markdown
Contributor

@rhuitl rhuitl commented Apr 1, 2019

by not declaring them when they would be optimized out.

Observed on Chrome on MacOS with AMD Radeon R9 M370X.

…uld be optimized out.

Observed on Chrome on MacOS with AMD Radeon R9 M370X.
@hccampos
Copy link
Copy Markdown
Contributor

hccampos commented Apr 1, 2019

Thank you @rhuitl ! This will be a pain to maintain, but it is indeed pretty annoying to get all those warnings.

@hccampos hccampos merged commit 1e74717 into pnext:master Apr 1, 2019
@rhuitl
Copy link
Copy Markdown
Contributor Author

rhuitl commented Apr 1, 2019

Yes I know! It's really annoying but I don't know a better solution at the moment. Maybe reducing the preprocessor complexity in the first place, e.g. have more different sets of shaders and use Webpack to @import common code parts.

@rhuitl rhuitl deleted the fix-shader-warnings branch April 1, 2019 17:12
@hccampos
Copy link
Copy Markdown
Contributor

hccampos commented Apr 1, 2019

Also released in v0.0.19 @rhuitl

hccampos pushed a commit that referenced this pull request Apr 3, 2019
…#40)

Otherwise IE11 fails to compile the shader with "syntax error, unexpected IDENT_TOK".

This has been introduced by my changes for #38.

This solution is not pretty, but the related code in the shader is dead anyways - required uniforms are not in the material (yet?).
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