visualdesigncafe / nature-renderer

Nature Renderer is a plugin for the Unity game engine to efficiently render vegetation on your terrains.
https://visualdesigncafe.com/nature-renderer/
0 stars 0 forks source link

Error Occurred After Building Addressables #58

Closed Robyiicorporate closed 5 days ago

Robyiicorporate commented 3 weeks ago

Describe the bug An error occurred after building the addressables in Unity while using Nature Renderer. Despite following the standard procedures, I am facing an issue with shader errors related to the maximum sampler register index being exceeded.

Error Messages:

Shader error in 'NatureManufacture/URP/Foliage/Bark (Nature Renderer)': maximum ps_5_0 sampler register index (16) exceeded at line 382 (on d3d11). Shader error in 'NatureManufacture Shaders/Water/Water River Offset Vertex Color Flow': maximum ps_5_0 sampler register index (16) exceeded at line 538 (on d3d11) (repeated error).

To Reproduce Steps to reproduce the behavior: 1.Open Unity Editor and load the project. 2.Navigate to the addressables configuration and initiate a build. 3.Observe the shader compilation process. 4.Errors appear in the console related to specific shaders.

Expected behavior Expected the shaders to compile without errors and for the addressables build to complete successfully without exceeding the hardware limits for shader sampler registers.

Screenshots Screenshot 2024-06-27 132132 Screenshot 2024-06-27 132359

Project(please complete the following information):

System (please complete the following information):

maxplooi commented 5 days ago

This is an issue of Nature Manufacture's shaders, not Nature Renderer. I recommend contacting them to solve this issue.