File tree Expand file tree Collapse file tree
Assets/Nova/Runtime/Core/Shaders Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111#if defined (_TRANSPARENCY_BY_RIM) || defined (_TINT_AREA_RIM) || defined (USE_PARALLAX_MAP)
1212#define FRAGMENT_USE_VIEW_DIR_WS
1313#endif
14- #if defined (_TRANSPARENCY_BY_RIM) || defined (_TINT_AREA_RIM) || defined (DEPTH_NORMALS_PASS) || defined (USE_PARALLAX_MAP) || defined (_VERTEX_DEFORMATION_ENABLED)
14+ #if defined (_TRANSPARENCY_BY_RIM) || defined (_TINT_AREA_RIM) || defined (DEPTH_NORMALS_PASS) || defined (USE_PARALLAX_MAP)
1515#define FRAGMENT_USE_NORMAL_WS
1616#endif
1717
1818#if defined (DEPTH_ONLY_PASS)
1919#ifndef _ALPHATEST_ENABLED
20- #ifndef _VERTEX_DEFORMATION_ENABLED
2120#undef FRAGMENT_USE_NORMAL_WS // This symbol is not necessary when drawing opaque objects.
2221#endif
2322#endif
24- #endif
2523
2624#if defined (DEPTH_ONLY_PASS) || defined (DEPTH_NORMALS_PASS)
2725#ifndef _ALPHATEST_ENABLED
Original file line number Diff line number Diff line change 4545struct AttributesDrawDepth
4646{
4747 float4 positionOS : POSITION ;
48- #ifdef FRAGMENT_USE_NORMAL_WS
48+ #if defined ( FRAGMENT_USE_NORMAL_WS) || defined (_VERTEX_DEFORMATION_ENABLED)
4949 float3 normalOS : NORMAL ;
5050 #ifdef _NORMAL_MAP_ENABLED
5151 float4 tangentOS : TANGENT ;
You can’t perform that action at this time.
0 commit comments