فهرست منبع

Fixed GeometryBufferRenderer to calculate world position when having position or bump defined.

Julien MOREAU-MATHIS 5 سال پیش
والد
کامیت
321c326b9c
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/Shaders/geometry.vertex.fx

+ 1 - 1
src/Shaders/geometry.vertex.fx

@@ -132,7 +132,7 @@ void main(void)
 		#endif
 	#endif
 
-	#ifdef POSITION
+	#if defined(POSITION) || defined(BUMP)
 	vPositionW = pos.xyz / pos.w;
 	#endif