You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After importing the package we see shader compilation error:
Fragment program 'frag': Struct variable 'globalWaterData' is ignored. Only instancing constant buffers can have struct variables
Reason: In the Unity 2017.3 , the shader compiler requires static keyword on globally shared struct variables.
This will be integrated in the new release.
The quick fix for those who need it is to go to the WaterLib.cginc and change the line declaring data
from: WaterData globalWaterData;
to: static WaterData globalWaterData;
and reimport the shaders.
unity: 2017.3.0f3 uws version: 2.0.0b3
The text was updated successfully, but these errors were encountered:
After importing the package we see shader compilation error:
Fragment program 'frag': Struct variable 'globalWaterData' is ignored. Only instancing constant buffers can have struct variables
Reason: In the Unity 2017.3 , the shader compiler requires static keyword on globally shared struct variables.
This will be integrated in the new release.
The quick fix for those who need it is to go to the WaterLib.cginc and change the line declaring data
from:
WaterData globalWaterData;
to:
static WaterData globalWaterData;
and reimport the shaders.
unity: 2017.3.0f3
uws version: 2.0.0b3
The text was updated successfully, but these errors were encountered: