Skip to content

Commit

Permalink
Remove CS temp fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ottermandias committed Oct 5, 2023
1 parent 73b4227 commit 8b5437c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Penumbra/Interop/MaterialPreview/LiveMaterialPreviewer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ public void SetMaterialParameter(uint parameterCrc, Index offset, Span<float> va

for (var i = 0; i < _shaderPackage->MaterialElementCount; ++i)
{
// TODO fix when CS updated
ref var parameter = ref ((ShaderPackage.MaterialElement*) ((byte*)_shaderPackage + 0x98))[i];
ref var parameter = ref _shaderPackage->MaterialElementsSpan[i];
if (parameter.CRC == parameterCrc)
{
if ((parameter.Offset & 0x3) != 0
Expand Down

0 comments on commit 8b5437c

Please sign in to comment.