From a8d6d469d57349da515759270eb31a242c795951 Mon Sep 17 00:00:00 2001 From: yum Date: Tue, 3 Jun 2025 18:24:43 -0700 Subject: Begin work on SSAO - very buggy! --- 2ner.cginc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '2ner.cginc') diff --git a/2ner.cginc b/2ner.cginc index c0f2ac1..6cea852 100644 --- a/2ner.cginc +++ b/2ner.cginc @@ -147,7 +147,7 @@ v2f vert(appdata v) { #endif o.worldPos = mul(unity_ObjectToWorld, v.vertex); o.objPos = v.vertex; - o.eyeVec.xyz = normalize(o.worldPos - _WorldSpaceCameraPos); + o.eyeVec.xyz = o.worldPos - _WorldSpaceCameraPos; o.eyeVec.w = 1; // These are used to convert normals from tangent space to world space. -- cgit v1.2.3