기술 자료

Unity Engine

Unity Engine

VertexNormal

The render request outputs the interpolated vertex normal.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
경고
Removed. The RenderRequest struct is obsolete, use the function overload with RequestData of supported types such as RenderPipeline.StandardRequest
VertexNormal = 3

Remarks

It outputs a buffer that maps the the world space vertex normal (excluding normal maps) at each pixel. The normal is stored as an rgb value, packed to 0...1 range. Alpha is undefined. It can be unpacked using normal = packedNormal * 2.0F - 1.0F. The buffer will be generated from the camera used in the request.