Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 #1

Open
Girish006 opened this issue Jul 21, 2016 · 1 comment

Comments

@Girish006
Copy link

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

@DerekNien
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants