Skip to content

Commit

Permalink
Fix shader has wrong parameters sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoshidza committed Apr 25, 2024
1 parent db69cdf commit 01f1a54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Graphics/Regular Render/RegularNSprites_Shader.shader
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ Shader "Universal Render Pipeline/2D/SimpleSpriteShader"
varyings.positionCS.z =
sortingData.x * _sortingGlobalData.x // layer offset
+ sortingData.y * _sortingGlobalData.y // sorting index offset
+ _sortingGlobalData.y * saturate(RemapInternal(-1, 1, 0, 1, screenClipSpacePos.y)); // screen y pos offset
+ _sortingGlobalData.y * saturate(RemapInternal(screenClipSpacePos.y, -1, 1, 0, 1)); // screen y pos offset

// tiling and offset UV
varyings.uv = TilingAndOffset(attributes.uv, uvTilingAndOffset.xy, uvTilingAndOffset.zw);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.tonymax.nsprites.foundation",
"version": "8.0.2",
"version": "8.0.3",
"displayName": "NSprites Foundation",
"description": "Contains solutions based on NSprites package such as authoring sprite data, animation, sorting, culling systems.",
"unity": "2022.2",
Expand Down

0 comments on commit 01f1a54

Please sign in to comment.