Lowpoly-Water-Unity icon indicating copy to clipboard operation
Lowpoly-Water-Unity copied to clipboard

Shader error in 'FX/FlatShadedWaterWithEdgeBlend': undeclared identifier 'unity_ObjectToWorld' at line 83 (on d3d11) Compiling Vertex program with WATER_EDGEBLEND_ON Platform defines: UNITY_NO_SCREENSPACE_SHADOWS UNITY_ENABLE_REFLECTION_BUFFERS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING

Open Girish006 opened this issue 9 years ago • 1 comments

I'm getting this error, can u please have a look at it..

Girish006 avatar Jul 21 '16 07:07 Girish006

I fixed the problem in Unity 5.3 (Not Unity 5.4) by replacing unity_ObjectToWorld with _Object2World and unity_WorldToObject with _World2Object in FlatShadedWaterWithEdgeBlend.shader file (You can see the comments at the beginning of FlatShadedWaterWithEdgeBlend.shader)

DerekNien avatar Aug 26 '16 13:08 DerekNien