This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma kernel CSMain | |
float4 _FrustumPlanes[6]; // 视锥体的六个面 | |
float3 _BoundMin; // 物体包围盒最小点 | |
float3 _BoundMax; // 物体包围盒最大点 | |
StructuredBuffer<float4x4> _AllMatricesBuffer; // 所有物体的复合变换矩阵 | |
AppendStructuredBuffer<uint> _VisibleIDsBuffer; // 可见物体实例ID | |
bool IsOutsideThePlane(float4 plane, float3 position) | |
{ |