Facepunch / sbox-issues

175 stars 12 forks source link

[Shadergraph] Triplanar shader appears black in -X -Y -Z #5371

Closed Jammie3d closed 4 months ago

Jammie3d commented 5 months ago

Describe the bug

When using the Texture Triplanar node in shadergraph it results in one quarter of the model rendering in black.

It seems like it happens on the negative X, Y and Z side only.

To Reproduce

shadergraph:H4sIAAAAAAAACmVQy26DMBD8lz1DA7SKVG5RcuHQUtH0VFXRAhtiydjIj6oV4t+7ThClqizZ3vHs7IxHULolC/n7CKdGouUrHOnLeUNHIwaJCg1EUPTYET/16MgIlHbT0ufGin6QNB8nJ3hrtNTmblAdN71iwA3k4xTBW8EnPGMfZPbM8kH3QGf00jGURtcV2kxXV4Qt5M54imBviKcWavCBt6pmn9kBWL9oSTlxFmEeJCzzoq1wQisu44f7LIrTNGPiKmdFNsxeXJQDNsJ9Q54uUKV9d1EU6L/gEzmUNzBZwF1fC3ZQNo309jqWG/6YCtlWptJtEsWPWwZ3sqZWh+/5F6L07hZ79jpNH9MPbXUZtrQBAAA=

Expected behavior

The preview sphere should have correct looking shading at all angles.

Media/Files

image

Additional context

No response

Jammie3d commented 4 months ago

Sorted, thanks ziks!