diff options
Diffstat (limited to 'pbr.cginc')
| -rwxr-xr-x[-rw-r--r--] | pbr.cginc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pbr.cginc b/pbr.cginc index 076cf65..b7392f7 100644..100755 --- a/pbr.cginc +++ b/pbr.cginc @@ -24,7 +24,7 @@ struct Pbr { float cl_strength; float3 cl_color; #endif -#if defined(_IMPOSTORS) +#if defined(_IMPOSTORS_DEPTH) float3 objPos; float debug; // TODO rm #endif @@ -170,8 +170,10 @@ Pbr getPbr(v2f i) { pbr.normal = imp.normal; pbr.smoothness = imp.smoothness; pbr.metallic = imp.metallic; +#if defined(_IMPOSTORS_DEPTH) pbr.objPos = imp.objPos; pbr.debug = imp.debug; +#endif #else pbr.albedo = _MainTex.Sample(aniso16_trilinear_repeat_s, uv_parallax * _MainTex_ST.xy + _MainTex_ST.zw); pbr.albedo *= _Color; |
